OSDN Git Service

2005-01-11 Bastian Blank <waldi@debian.org>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2005-01-11  Bastian Blank  <waldi@debian.org>
2
3         * system-linux-s390.ads: Define Preallocated_Stacks.
4         * system-linux-s390x.ads: Likewise.
5
6 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
7
8         * gnat_ugn.texi: Fix texi errors with null variables.
9
10 2005-01-03  Thomas Quinot  <quinot@adacore.com>
11
12         * gen-soccon.c: New utility program to generate g-soccon.ads
13         automatically.
14
15         * socket.c, gsocket.h: Split inclusion of system header files into a
16         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
17
18         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
19         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
20         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
21         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
22         should not be edited by hand anymore, but should be regenerated using
23         gen-soccon.
24
25 2005-01-03  Robert Dewar  <dewar@adacore.com>
26             Ed Schonberg  <schonberg@adacore.com>
27             Vincent Celier  <celier@adacore.com>
28
29         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
30         on/off, since this is an obsolescent feature, for which we now generate
31         a warning.
32
33         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
34         warning mode is set and obsolescent usage of this attribute occurs.
35         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
36         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
37         predates, and partly motivates, the adoption of the AI.
38         Implement new Ada 2005 attribute Mod
39
40         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
41         attribute Mod.
42
43         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
44
45         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
46         pragma restrictions.
47         New entry for Ada 2005 attribute Mod.
48
49         * par-prag.adb: 
50         Add recognition of new pragma Restrictions No_Dependence
51         Recognize restriction No_Obsolescent_Features at parse time
52
53         * bcheck.adb: Add circuitry for checking for consistency of
54         No_Dependence restrictions.
55
56         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
57         restrictions.
58
59         * restrict.ads, restrict.adb: Add subprograms to deal with
60         No_Dependence restrictions.
61
62         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
63         restrictions.
64
65         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
66         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
67
68         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
69         dummy parameter to scng instantiation.
70         Needed for new restriction No_Obsolescent_Features
71
72         * scn.adb: (Obsolescent_Check): New procedure
73         Needed for new restriction No_Obsolescent_Features
74
75         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
76         specified by AI-285, needed for implementation of AI-388 (adding greek
77         pi to Ada.Numerics).
78         Add new generic formal to scng, needed for new restriction
79         No_Obsolescent_Features.
80
81         * s-rident.ads: Add new restriction No_Obsolescent_Features.
82
83         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
84         restrictions lines.
85         (Scan_ALI): When finding an unexpected character on an R line, raise
86         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
87         Ignore_Errors is True, default restrictions are set and scanning of the
88         ALI file continues with the next line. Also, when Bad_R_Line is raised
89         and Ignore_Errors is True, skip to the end of le line.
90
91         * sem_ch10.adb: Check that explicit with's do not violate
92         No_Dependence restrictions.
93         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
94         illegal context clauses containing child units of instance.
95
96         * sem_prag.adb: Processing and checking for new No_Dependence
97         restrictions.
98         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
99         analyze and check the External argument.
100
101         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
102
103 2005-01-03  Robert Dewar  <dewar@adacore.com>
104
105         * atree.adb: Add a fifth component to entities
106         This allows us to add 32 flags and four new fields
107
108         * atree.ads: Add a fifth component to entities
109         This allows us to add 32 flags and four new fields
110
111         * einfo.ads, einfo.adb: Document new fields and new flags now available
112         Add routines for printing new fields
113
114         * treepr.adb: Call routines to print out additional fields if present
115
116 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
117
118         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
119         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
120
121         * Makefile.in: Add support to build shared Ada libraries on solaris x86
122         Remove gpr2make, replaced by gprmake.
123         Remove references to gnatmem and libaddr2line.
124         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
125         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
126         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
127         a-numaux-darwin.ads and a-numaux-darwin.adb
128         Enable mlib-tgt-lynxos.adb on lynxos.
129
130         * Make-lang.in: Remove rules for gpr2make.
131         When generating sdefault.adb, do not call Relocate_Path
132         on S3 for function Target_Name, as it is not a path.
133         Remove references to gnatmem and libaddr2line.
134
135         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
136         files.
137
138 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
139
140         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
141         address is incompatible with its base type alignment constraints when
142         this can be decided statically.
143
144 2005-01-03  Olivier Hainque  <hainque@adacore.com>
145
146         * decl.c (compatible_signatures_p): New function. The intended purpose
147         is to check if two function signatures for a call-site and a callee are
148         compatible enough for the call to be valid. The underlying purpose is
149         to check if a call to a mapped builtin is using the right interface.
150         The current code actually does not check antyhing - this a placeholder
151         for future refinements.
152         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
153         builtin calls for convention Intrinsic.
154
155         * gigi.h (builtin_decl_for): Declare (new function).
156
157         * utils.c (gnat_install_builtins): Install the target specific builtins.
158         (builtin_decl_for): New function, provide a dummy body for now.
159
160 2005-01-03  Geert Bosch  <bosch@adacore.com>
161
162         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
163         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
164         (Pred): Implement in terms of Succ.
165         
166         * trans.c (convert_with_check): Reimplement conversion of float to
167         integer.
168
169 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
170             Vincent Celier  <celier@adacore.com>
171
172         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
173         bounds can be negative, and must be declared Int, not Nat.
174
175         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
176         array is checked after using the index in the array.
177
178         * makegpr.adb (Add_Switches): Check if there is a package for the
179         processor. If there is no package, do not look for switches.
180
181 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
182
183         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
184         generation of predefined stream operations (specs and bodies) should
185         proceed. Under various restrictions these subprograms must not be
186         generated.
187
188 2005-01-03  Thomas Quinot  <quinot@adacore.com>
189
190         * exp_dist.adb: 
191         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
192         amount of PCS-specific code in RACW stubs generation.
193         (Copy_Specification): Set Etype on copied formal parameter entities, as
194         this information is needed for PolyORB stubs generation.
195         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
196         variable Dynamic_Async.
197         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
198         (Build_RPC_Receiver_Specification): Make generic again, as recent
199         changes have allowed RPC receivers to have the same profile for both
200         variants of the PCS.
201         Reorganise RPC receiver generation to reduce differences between the
202         structure of GARLIC and PolyORB RPC receivers.
203         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
204         PCS-specific.
205         Simplify elaboration code for RCI packages.
206
207         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
208         generation to reduce differences between the structure of GARLIC and
209         PolyORB RPC receivers.
210
211         * s-stratt.adb: Fix typo in comment.
212
213 2005-01-03  Thomas Quinot  <quinot@adacore.com>
214
215         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
216         copied from Make_Init_Call).
217
218         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
219         reads and assignments on a temporary variable declared with appropriate
220         discriminants.
221
222 2005-01-03  Robert Dewar  <dewar@adacore.com>
223
224         * i-c.adb (To_C): Raise CE if string is null and Append_Null
225
226 2005-01-03  Robert Dewar  <dewar@adacore.com>
227
228         * i-cstrin.adb (Update): Do not append a null in form called with a
229         String. This avoids unintended behavior.
230
231 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
232
233         PR ada/17527
234         * init.c: Fix warnings on Free BSD section.
235
236 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
237
238         PR ada/16949
239         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
240         xsinfo.adb).
241
242 2005-01-03  Vincent Celier  <celier@adacore.com>
243
244         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
245         libraries when Unique_Compile is True (-u switch).
246         (Gnatmake): ditto.
247
248 2005-01-03  Robert Dewar  <dewar@adacore.com>
249
250         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
251         upper case letter or underscore after W, as allowed by spec.
252
253 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
254
255         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
256         darwin port by using proper type definitions from header files.
257         Use SIGTERM instead of SIGABRT for SIGADAABORT.
258
259 2005-01-03  Robert Dewar  <dewar@adacore.com>
260
261         * par.adb: Enhance error message handling for configuration file
262         pragmas.
263
264 2005-01-03  Robert Dewar  <dewar@adacore.com>
265
266         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
267         removed during the previous update (test properly for case of dividing
268         largest negative number by -1, which generates overflow).
269
270 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
271             Sergey Rybin  <rybin@adacore.com>
272
273         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
274         to use as the defining identifier for a formal package.
275         (Remove_Parent): If the instance takes place within (an instance of)
276         a sibling, preserve private declarations of common parent.
277
278 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
279
280         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
281         to determine whether one of the operands is a fixed-point type for
282         which a user-defined multiplication or division operation might be
283         defined.
284
285         * sem_res.adb (Valid_Conversion): The legality rules for conversions
286         of access types are symmetric in Ada 2005: either designated type can
287         be unconstrained.
288
289 2005-01-03  Vincent Celier  <celier@adacore.com>
290
291         * s-fileio.adb (Temp_File_Record): Change length of string component
292         Name from L_tmpnam + 1 to max_path_len + 1.
293
294 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
295
296         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
297         Self_Id.Deferral_Level = 0.
298         (Do_Pending_Action): Move this function to the spec.
299
300         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
301         Do_Pending_Action explicitely when needed, in case we're using
302         No_Abort restrictions.
303
304         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
305         deferral level since it will not get changed by the generated code.
306         Keeping a default value of 1 would prevent some operations (e.g.
307         select or delay) to proceed successfully.
308
309 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
310             Robert Dewar  <dewar@adacore.com>
311             Cyrille Comar  <comar@adacore.com>
312
313         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
314         porting guide chapter (vms version).
315         Revised doc title (removed "for native platforms") and subtitle.
316         Add discussion on warning flag for obsolescent features. First we
317         note that it applies to obsolete GNAT features, which was previously
318         omitted. Second we contrast the behavior with that of the new
319         Ada 2005 AI-368 restriction No_Obsolescent_Features.
320         Preliminary rewriting of GNAT & libraries chapter in order to take
321         into account default project locations & new project manager
322         capabilities.
323
324 2005-01-03  Robert Dewar  <dewar@adacore.com>
325
326         * cstand.adb (Create_Operators): Clean up format and documentation of
327         unary and binary operator result tables. No change in code, just
328         reformatting and addition of comments.
329
330         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
331         sem_ch2.adb: Minor reformatting
332
333         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
334         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
335         comments for Tree_Read and Tree_Write.
336
337 2005-01-03  Pascal Obry  <obry@adacore.com>
338
339         * exp_attr.ads: Minor reformatting.
340
341 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
342
343         * comperr.adb (Compiler_Abort): Add specialized message for GAP
344         versions.
345
346 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
347
348         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
349         whether the ancestor type is private, as may be the case with nested
350         instantiations.
351
352 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
353
354         PR ada/19128
355         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
356
357 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
358
359         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
360         * utils2.c (build_unary_op): Likewise.
361
362 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
363
364         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
365
366 2004-12-19  Richard Henderson  <rth@redhat.com>
367
368         * trans.c (gigi): Update gimplify_body call.
369
370 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
371
372         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
373
374 2004-12-07  Ed Falis  <falis@adacore.com>
375
376         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
377         current task being suspended.
378
379         * init.c (__gnat_clear_exception): added to reset VxWorks exception
380         count.
381         (__gnat_map_signal): removed test for current task being suspended.
382
383 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
384
385         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
386         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
387         targets (such as AAMP).
388
389 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
390
391         * atree.adb (Visit_Itype): Create a new name for the generated itype,
392         because the back-end may otherwise treat it as a redefinition of the
393         old symbol.
394
395 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
396
397         * back_end.adb (Scan_Back_End_Switches): Accept --param.
398
399         * lang-specs.h: Accept --param.
400
401 2004-12-07  Vincent Celier  <celier@adacore.com>
402
403         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
404         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
405         Current_Body_Suffix => Ada_Body_Suffix).
406         Take into account Externally_Built attribute.
407
408         * clean.adb (In_Extension_Chain): Always return False when one of the
409         parameter is No_Project.
410         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
411         Ada_Language_Index).
412         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
413         Process_Languages for procedure Parse).
414
415         * gnatcmd.adb (Carg_Switches): New table.
416         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
417         Adapt to name changes in package Prj (Current_Spec_Suffix =>
418         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
419
420         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
421         Header_Num and function Hash are now declared in package Prj,
422         not Prj.Com.
423
424         * prj.adb (Suffix_Of): New function.
425         (Set (Suffix)): New procedure.
426         (Hash): One function moved from Prj.Com
427         (Is_Present, Language_Processing_Data_Of): New functions
428         (Set): Two new procedures
429         (Add_Language_Name, Display_Language_Name): New procedures
430
431         * prj.ads: (Suffix_Of): New function
432         (Set (Suffix)): New procedure
433         Add several types and tables for multi-language support.
434         (Header_Num): Type moved from Prj.Com
435         (Hash): Two functions moved from Prj.Com
436         (Is_Present, Language_Processing_Data_Of): New functions
437         (Set): Two new procedures
438         (Add_Language_Name, Display_Language_Name): New procedures
439         (Naming): Component name changes:
440         Current_Spec_Suffix => Ada_Spec_Suffix,
441         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
442         Impl_Suffixes, Supp_Suffixes.
443         (Project_Data): New components: Externally_Built, Supp_Languages,
444         First_Language_Processing, Supp_Language_Processing, Default_Linker,
445         Default_Linker_Path.
446
447         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
448         new package Language_Processing with its attributes (Compiler_Driver,
449         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
450         Binder_Driver, Default_Linker).
451
452         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
453         (Header_Num): Type moved to package Prj
454
455         * prj-env.adb: Adapt to name changes in package Prj
456         (Current_Spec_Suffix => Ada_Spec_Suffix,
457         Current_Body_Suffix => Ada_Body_Suffix).
458
459         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
460         default to the project path, except the "-" is one of the directories
461         in env var ADA_PROJECT_PATH.
462         (Current_Project_Path): Global variable, replacing Project_Path
463         that was in the body of Prj.Part.
464         (Project_Path): New function
465         (Set_Project_Path): New procedure
466         Initialize Current_Project_Path during elaboration of the package
467         Remove dependency on Prj.Com, no longer needed
468
469         * prj-ext.ads (Project_Path): New function
470         (Set_Project_Path): New procedure
471
472         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
473         suffix is defined for language <lang>.
474         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
475         accessing directly the components of Naming.
476         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
477         Reorganise of this package.
478         Break procedure Check in several procedures.
479
480         * prj-nmsc.ads: Replace all procedures (Ada_Check,
481         Other_Languages_Check and Language_Independent_Check) with a single
482         procedure Check.
483
484         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
485         Process_Languages, no longer needed.
486
487         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
488         Current_Project_Path.
489         Remove elaboration code, moved to the body of Prj.Ext
490         Use new function Prj.Ext.Project_Path instead of old variable
491         Project_Path.
492         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
493         When comparing with project paths on the stack, first put the resolved
494         path in canonical case.
495         (Parse_Single_Project): Set the path name of the project file in the
496         tree to the normalized path.
497
498         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
499         parameter Process_Languages, no longer needed.
500         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
501         Other_Languages_Check.
502
503         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
504         to store the resolved canonical path of the project file.
505         Remove dependency to Prj.Com, no longer needed
506
507         * prj-util.adb: Adapt to name changes in package Prj
508         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
509         Ada_Body_Suffix).
510
511         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
512         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
513         Externally_Built, Include_Option, Language_Processing.
514
515         * makegpr.adb: Numerous changes due to changes in packages
516         Prj and Prj.Nmsc.
517
518         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
519         default to the project path, except whe "-" is one of the directories
520         in env var ADA_PROJECT_PATH.
521         (Gnatls): In verbose mode, add the new section "Project Search Path:"
522
523 2004-12-07  Robert Dewar  <dewar@adacore.com>
524
525         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
526
527         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
528         set -gnatR3m mode.
529
530         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
531         flag. No longer needed now that we handle this in gnat1drv.adb.
532
533         * repinfo.ads: Minor reformatting
534
535 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
536             Olivier Hainque  <hainque@adacore.com>
537             Eric Botcazou  <ebotcazou@adacore.com>
538
539         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
540         TYPE_SIZE_UNIT of result type if SIZE is not specified.
541         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
542         of a bitfield, which we know is useless and causes trouble because of
543         alignment implications.
544
545         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
546         BSS sections.
547         (process_attributes): Clear DECL_COMMON again when a section attribute
548         is present.
549         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
550         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
551         (create_field_decl): Special case ADDRESSABLE negative to mean
552         "no bitfield creation", to be used by make_aligning_type. Don't
553         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
554         fields claimed addressable still have to be bitfields. Use
555         value_factor_p instead of a raw binop construction to check for the
556         position's alignment.
557
558 2004-12-07  Geert Bosch  <bosch@adacore.com>
559
560         * eval_fat.adb: Revert previous change.
561
562 2004-12-07  Thomas Quinot  <quinot@adacore.com>
563             Ed Schonberg  <schonberg@adacore.com>
564
565         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
566         with an implicit dereference as its prefix, use
567         Insert_Explicit_Dereference instead of merely rewriting the prefix into
568         an explicit dereference. This ensures that a reference to the original
569         prefix is generated, if appropriate.
570
571         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
572         dereference is rewritten to an explicit one, generate a reference to
573         the entity denoted by its prefix using the original prefix node, so
574         the dereference can be properly recorded as a read of the denoted
575         access value, if appropriate.
576
577         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
578         emitting 'assigned but never read' warning on a variable on the basis
579         that it has an access type.
580         (Check_References): Emit unreferenced warning when the scope is a
581         subprogram body.
582
583 2004-12-07  Robert Dewar  <dewar@adacore.com>
584             Ed Schonberg  <schonberg@adacore.com>
585
586         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
587         intrinsic
588
589         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
590         leaving call unchanged.
591         This deals with the case where the pragma Import specified
592         an external name, to be handled by the back end.
593
594         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
595         subprogram which is Imported with convention Intrinsic if an
596         External_Name argument is specified.
597         (Process_Import_Or_Interface): Properly diagnose link name argument.
598         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
599         with Sem_Ch6.Cannot_Inline.
600         (Process_Inline): Provide separate warning for inapplicable inline
601         pragma.
602         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
603         treatment is uniform on different targets.
604
605 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
606
607         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
608         construct is rewritten, preserve end label to permit source navigation.
609
610 2004-12-07  Thomas Quinot  <quinot@adacore.com>
611
612         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
613         Specific_Build_Stub_Target): New subprograms.
614         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
615         the PCS implementation used, using the above PCS-customized subprograms.
616         Minor reformatting.
617         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
618         for generation of DSA code targeted to the PolyORB PCS.
619         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
620         implementation of the partition communication subsystem in ancillary
621         subprograms.
622         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
623         PolyORB_Support.Build_Stub_Type): New subrograms containing the
624         PCS-specific part of Add_Stub_Type.
625         (Insert_Partition_Check): Use runtime library function to perform
626         E.4(19) check.
627
628         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
629         (RE_Same_Partition): New entity, from s-parint.
630
631         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
632
633 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
634
635         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
636         Output the copyright message on a separate line from the version
637         message.
638
639 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
640
641         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
642         compile-time warning.
643
644 2004-12-07  Robert Dewar  <dewar@adacore.com>
645
646         * g-regpat.adb: (Match): Change a misuse of or to or else
647
648 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
649
650         * lib-xref.adb:
651         (Generate_Reference): Handle properly a reference to an entry formal,
652          when an accept statement has a pragma Unreferenced for it.
653
654         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
655         and the Has_Pragma_Unreferenced flag for each formal before analyzing
656         the body, to ensure that warnings are properly emitted for each accept
657         statement of a given task entry.
658
659 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
660
661         * Makefile.in: Add support for foreign threads on VMS.
662
663 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
664
665         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
666         Remove.
667         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
668
669         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
670
671         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
672         exception.
673         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
674
675 2004-12-07  Robert Dewar  <dewar@adacore.com>
676
677         * nlists.adb (Prepend_Debug): Remove parameters and nest within
678         Prepend.
679         (Remove_Next_Debug): Same fix
680
681         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
682         maintain back pointers now, though we did not used to, and comments
683         were out of date).
684         (Prepend): Remove pragma Inline.
685         (Remove_Next): Same cleanup
686
687 2004-12-07  Thomas Quinot  <quinot@adacore.com>
688
689         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
690         used to record an implicit dereference as a read operation on its
691         prefix when operating under -gnatc. Necessary to avoid spurious
692         'variable assigned but never read' warnings in that mode.
693         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
694         is a non-overloaded implicit dereference, call the above subprogram to
695         ensure proper recording of references.
696
697 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
698
699         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
700         to be resolved later as part of Analyze_Iteration_Scheme's call to
701         Make_Index.
702
703 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
704
705         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
706         prefix is not a scalar type, place error message on prefix, not on
707         type entity.
708
709 2004-12-07  Bernard Banner  <banner@adacore.com>
710
711         * vxaddr2line.adb: Add support for x86 vxworks
712
713 2004-12-07  Thomas Quinot  <quinot@adacore.com>
714
715         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
716         documentation of the behaviour of these functions when passed an IP
717         address that has no record in the system hosts database and no reverse
718         record in the DNS.
719
720         * cstand.adb, a-tags.ads: Fix typos in comment.
721
722 2004-12-07  Robert Dewar  <dewar@adacore.com>
723
724         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
725         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
726         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
727         s-poosiz.ads: Minor reformatting
728
729         * make.adb: Minor reformatting
730         Add some ??? comments asking for more comments
731
732         * s-poosiz.adb: Minor reformatting
733         Add comments on alignment requirement
734
735         * sinfo.ads: Remove obsolete comment and fix typo.
736
737 2004-12-07  Vincent Celier  <celier@adacore.com>
738             Sergey Rybin  <rybin@adacore.com>
739
740         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
741         Files" with the new tool and package names.
742         Reformatting to suppress most of the warnings for line too long
743         Document the new section "Project Search Path:" in the output of
744         gnatls -v.
745         Add gnatmetric section
746
747 2004-12-07  Vincent Celier  <celier@adacore.com>
748
749         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
750         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
751         and -eit to -ept. Added qualifier
752         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
753
754 2004-11-27  Andreas Schwab  <schwab@suse.de>
755
756         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
757
758 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
759
760         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
761         internal implementation unit GNAT.Sockets.Thin,
762         as their usage for sockets is non-portable (using the read and write
763         functions from the system runtime library is fine on UNIX but won't
764         work under Windows).
765
766         * mingw32.h: Update copyright notice.
767
768 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
769
770         * ada-tree.h: Minor reformatting of previous change to avoid lines
771         longer than 79 characters.
772
773 2004-11-25  Olivier Hainque  <hainque@adacore.com>
774
775         * tb-gcc.c: GCC infrastructure based implementation of
776         __gnat_backtrace.
777
778 2004-11-24  Steven Bosscher  <stevenb@suse.de>
779
780         * misc.c (gnat_post_options): Don't clear
781         flag_inline_functions.
782
783 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
784
785         PR ada/17986
786         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
787         tree.
788
789 2004-11-21  Andreas Jaeger  <aj@suse.de>
790
791         * stylesw.adb: Change Style_Check_Subprogram_Order to
792         Style_Check_Order_Subprograms.
793
794 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
795
796         * adaint.h, adaint.c
797         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
798         to avoid warnings.
799         Add also a cast to kill another warning.
800         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
801         parameter with the priority class of the parent process instead of
802         always using the NORMAL_PRIORITY_CLASS.
803         (__gnat_dup): New function.
804         (__gnat_dup2): New function.
805         (__gnat_is_symbolic_link): Enable the effective body of this
806         function when __APPLE__ is defined.
807
808         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
809         Update comments.
810
811 2004-11-18  Olivier Hainque  <hainque@adacore.com>
812
813         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
814         address of which may be used to represent "others" and "all others"
815         choices in exception tables, instead of the current harcoded
816         (void *)0 and (void *)1.
817         (Setup_Exception): Do nothing in the GNAT SJLJ case.
818
819         * gigi.h (others_decl, all_others_decl): New decls representing the
820         new Others_Value and All_Others_Value objects.
821         (struct attrib): Rename "arg" component as "args", since GCC expects a
822         list of arguments in there.
823
824         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
825         corresponding objects exported by a-exexpr, instead of hardcoded dummy
826         addresses.
827
828         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
829         others_decl and all_others_decl instead of hardcoded dummy addresses
830         to represent "others" and "all others" choices, which is cleaner and
831         more flexible with respect to the possible eh pointer encoding policies.
832
833         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
834         (process_attributes): Account for the naming change of the "args"
835         attribute list entry component.
836
837         * decl.c (build_attr_list): Rename into prepend_attributes to allow
838         cumulating attributes for different entities into a single list.
839         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
840         attributes for the current entity and propagate first subtype
841         attributes to other subtypes.
842         <E_Procedure>: Attribute arguments are attr->args and not
843         attr->arg any more.
844         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
845         argument provided, as this is what GCC expects. Use NULL_TREE instead
846         of 0 for trees.
847
848 2004-11-18  Robert Dewar  <dewar@adacore.com>
849
850         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
851         Minor reformatting througout (including new function specs)
852         Add ??? comments asking for clarification.
853
854 2004-11-18  Thomas Quinot  <quinot@adacore.com>
855
856         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
857         incomplete duplicate implementation of this subprogram from butil.
858
859 2004-11-18  Thomas Quinot  <quinot@adacore.com>
860
861         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
862         procedures factors the common processing for building an RPC receiver
863         for an RCI package or an RACW type.
864         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
865         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
866         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
867         in use.
868         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
869         Add_RACW_Features.
870         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
871         Add_RAST_Features.
872         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
873         distribution subprogram identifiers that are either subprogram numbers
874         or strings.
875         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
876         string distribution identifiers assigned to a given subprogram.
877         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
878         (Add_RAS_Dereference_TSS): Add comments.
879         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
880         is not referenced yet because it will be used by the PolyORB DSA
881         implementation.
882         (Insert_Partition_Check): Remove fossile code.
883         (First_RCI_Subprogram_Id): Document this constant.
884         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
885         RAS_Access TSS.
886         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
887         replaced with calls to Get_Library_Unit_Name_String. Previously there
888         were several instances of the same code in different locations in the
889         compiler; this checkin completes the replacement of all of these
890         instances with calls to a common subprogram.
891         Minor reformatting.
892
893         * sem_dist.adb: Remove comment noting that RPC receiver generation
894         should be disabled for RACWs that implement RASs.
895         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
896
897         * sem_util.ads, sem_util.adb (Has_Stream): New function
898         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
899         qualified name of a library unit into the name buffer.
900         (Note_Possible_Modification): Generate a reference only
901         if the context comes from source.
902
903         * snames.ads (PCS_Names): New subtype corresponding to names of
904         supported implementations of the Partition Communication Subsystem
905         (PCS) (i.e. the runtime library support modules for the distributed
906         systems annex).
907
908 2004-11-18  Robert Dewar  <dewar@adacore.com>
909             Ed Schonberg  <schonberg@adacore.com>
910
911         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
912         (Has_Rep_Pragma): New function
913         (Has_Attribute_Definition_Clause): New function
914         (Record_Rep_Pragma): Moved here from sem_ch13.adb
915         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
916
917         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
918
919         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
920         (Expand_Pragma_Psect_Object): New procedure
921         These procedures contain the revised and cleaned up processing for
922         these two pragmas. This processing was formerly in Sem_Prag, but
923         is more appropriately moved here. The cleanup involves making sure
924         that the pragmas are properly attached to the tree, and that no
925         nodes are improperly shared.
926
927         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
928         pragmas to Exp_Prag, which is more appropriate.
929         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
930         check for duplicates Remove use of Is_Psected flag, no longer needed.
931         Use new Make_String_Literal function with string.
932
933         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
934         that are functions return universal values, that have to be converted
935         to the context type.
936         Use new Make_String_Literal function with string.
937         (Get_Stream_Convert_Pragma): New function, replaces the use of
938         Get_Rep_Pragma, which had to be kludged to work in this case.
939
940         * freeze.adb: Use new Has_Rep_Pragma function
941
942         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
943         function with string.
944         Use new Has_Rep_Pragma function.
945
946         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
947         string argument.
948
949 2004-11-18  Robert Dewar  <dewar@adacore.com>
950
951         * errout.ads, errout.adb: (First_Sloc): New function
952
953         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
954         check (-gnatyx) instead of being included as a redundant construct
955         warning.
956
957         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
958         Style_Check_Order_Subprograms.
959
960         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
961         stylesw.adb: Add Style_Check_Xtra_Parens
962
963         * usage.adb: Add line for -gnatyx (check extra parens)
964
965         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
966
967 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
968             Robert Dewar  <dewar@adacore.com>
969
970         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
971         discriminant of a constrained subtype, analyze the copy of the
972         corresponding constraint, because in some cases it may be only
973         partially analyzed.
974         Removes long-lived ??? comments.
975
976         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
977         handled controlled or secondary-stack expressions within the
978         iteration_scheme of a loop.
979
980         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
981         bounds that may contain functions calls, to prevent memory leaks when
982         the bound contains a call to a function that uses the secondary stack.
983         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
984         generate temporaries for loop bounds that might contain function calls
985         that require secondary stack and/or finalization actions.
986
987         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
988         selected component and the selector is overloadable (not just a
989         function) treat as function call, Analyze_Call will disambiguate if
990         necessary.
991         (Analyze_Selected_Component): Do not generate an actual subtype for the
992         selected component if expansion is disabled. The actual subtype is only
993         needed for constraint checks.
994         (Analyze_Allocator): If restriction No_Streams is set, then do
995         not permit objects to be declared of a stream type, or of a
996         composite type containing a stream.
997
998         * restrict.ads: Remove the a-stream entry from Unit_Array, since
999         No_Streams no longer prohibits with'ing this package.
1000
1001         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
1002         discriminants, but the parent base has unknown discriminants, there is
1003         no discriminant constraint to inherit. Such a discrepancy can arise
1004         when the actual for a formal type with unknown discriminants is a
1005         similar private type whose full view has discriminants.
1006         (Analyze_Object_Declaration): If restriction No_Streams is set, then
1007         do not permit objects to be declared of a stream type, or of a
1008         composite type containing a stream.
1009
1010 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
1011
1012         * exp_dbug.ads: Update documentation to reflect simpler encoding for
1013         protected operations.
1014
1015         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
1016         generated name, it complicates decoding in gdb and hinders debugging
1017         of protected operations.
1018         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
1019         flag for the protected entry barrier function.
1020         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
1021         flag for the protected entry function.
1022
1023 2004-11-18  Nicolas Setton  <setton@adacore.com>
1024
1025         * expect.c: Define __unix__ when __APPLE__ is defined.
1026
1027         * Makefile.in: Inform the value of the variable GMEM_LIB in the
1028         Darwin-specific section.
1029
1030         * lang-specs.h: Change the placement of the %1 marker.
1031         Works around the fact that gcc adds -fPIC by default under Darwin.
1032
1033 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
1034
1035         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
1036         type of the object with the packed array type, set the Analyzed flag
1037         on the object if it is an entity or simple indexed component, to avoid
1038         spurious type errors.
1039
1040 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
1041
1042         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
1043         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
1044         separate line from the version message.
1045
1046 2004-11-18  Ed Falis  <falis@adacore.com>
1047
1048         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
1049         vthreads.
1050         (init_float): Eliminate initialization of floating point status for
1051         AE653. The instructions have no effect for vThreads.
1052
1053 2004-11-18  Vincent Celier  <celier@adacore.com>
1054
1055         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
1056         gnatbind is invoked with -shared.
1057
1058 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
1059
1060         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
1061         for Detect_Blocking which is redundant with the check done within the
1062         procedure Protected_Single_Entry_Call.
1063         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
1064         Detect_Blocking which is redundant with the check done within the
1065         procedure Protected_Single_Entry_Call.
1066
1067 2004-11-18  Vincent Celier  <celier@adacore.com>
1068
1069         * makegpr.adb (Compile): Put the compiling switches (in package
1070         Compiler and on the command line) immediately after "-c", instead of
1071         at the end of the command line invocation of the compiler, when
1072         compiling a non-Ada file.
1073         (Build_Global_Archive): When there is no need to rebuild the archive,
1074         set Global_Archive_Exists, so that the archive is passed to the linker
1075         if one is needed.
1076
1077 2004-11-18  Robert Dewar  <dewar@adacore.com>
1078             Sergey Rybin  <rybin@adacore.com>
1079
1080         * gnat_ugn.texi:
1081         Remove extra paren check from list of checks for redundant constructs
1082         Add documentation of new -gnatyx style check (check extra parens)
1083         Remove paragraph about gnatelim debug options.
1084
1085         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
1086         objects rather than forbidding dependencies on the package Ada.Streams.
1087
1088         * sinfo.ads: Add ??? note that we should document pragmas passed to
1089         back end.
1090
1091         * g-expect.ads: Fix a few typos in the comments.
1092
1093 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1094
1095         * misc.c (gnat_handle_option): Use %< and %> for quoting in
1096         warning message.
1097
1098 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1099
1100         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
1101
1102 2004-11-07  Andreas Schwab  <schwab@suse.de>
1103
1104         * Makefile.in (install-gnatlib): Remove spurious hyphen.
1105
1106 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
1107
1108         PR ada/18228
1109         * Makefile.in (darwin): Set soext to .dylib.
1110
1111 2004-10-26  Vincent Celier  <celier@gnat.com>
1112             Thomas Quinot   <quinot@act-europe.fr>
1113
1114         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
1115         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
1116         there is no use of GNAT.Sockets.Constants.
1117         Remove remaining pragma Import for C_Write
1118         Remove C_Read and C_Write from internal implementation unit
1119         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
1120         the read and write functions from the system runtime library is fine
1121         on UNIX but won't work under Windows).
1122
1123         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
1124         (Check_Selector): Use C_Recv instead of C_Read.
1125         Selectors are the GNAT.Sockets abstraction to perform a select()
1126         call on a set of descriptors. To allow abortion of an ongoing
1127         select operation, some data is written to a dedicated socket that
1128         is always monitored.
1129         Under Windows, the write and read library functions cannot operate
1130         on sockets, so we need to use send and recv instead, which is portable
1131         across all supported platforms.
1132
1133         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
1134         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
1135         (using the read and write functions from the system runtime library is
1136         fine on UNIX but won't work under Windows).
1137
1138 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
1139
1140         * mlib-tgt-darwin.adb: New file.
1141
1142         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1143         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1144         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1145         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
1146         subprogram body.
1147
1148         * Makefile.in: Add support for building shared libraries under Darwin.
1149         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
1150         the low level EH init subprogram to be called from __gnat_initialize.
1151
1152         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
1153         indicates which options to pass to the archive indexer.
1154
1155         * mlib-utl.adb: Add support for calling ranlib with additional
1156         options. This is needed for instance under Mac OS X.
1157         (Ranlib_Options): New global variable, used to store the potential
1158         options to pass to ranlib.
1159         (Ar): Use Ranlib_Options when spawning ranlib.
1160         (Initialize): Set the value of ranlib option.
1161
1162 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
1163
1164         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
1165         instead of 8K, to reflect the real potential needs for stack-checking
1166         in the ZCX case.
1167
1168 2004-10-26  Pascal Obry  <obry@gnat.com>
1169
1170         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
1171
1172         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
1173         Windows only the initial thread stack size can be set so it is good to
1174         start we a low stack size.
1175         The OS will adjust the size as needed.
1176
1177 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
1178             Nicolas Setton  <setton@act-europe.fr>
1179
1180         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
1181         "__unix__" instead of "unix".
1182         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
1183         sections were just mistakenly ignored. The former is
1184         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
1185         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
1186         of hpux. This prevents an unwanted definition of the symbol
1187         convert_addresses in adaint.o.
1188
1189 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
1190
1191         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
1192         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
1193
1194 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
1195
1196         * a-filico.ads, a-filico.adb: fix incorrect header.
1197
1198 2004-10-26  Javier Miranda  <miranda@gnat.com>
1199
1200         * a-ststio.ads: Fix typo in identifier
1201
1202 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1203
1204         * sem_ch4.adb: Minor reformatting.
1205
1206 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1207
1208         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
1209         enabled, check the result of unary and binary operations when the
1210         expression is the right-hand side of an assignment.
1211
1212 2004-10-26  Vincent Celier  <celier@gnat.com>
1213
1214         * clean.adb (Delete): Do not output warnings when in quiet output and
1215         not in verbose mode.
1216         (Force_Deletions): New Boolean flag, defaulted to False
1217         (Delete): Only delete a file if it is writable, and when
1218         Force_Deletions is True.
1219         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
1220         (Usage): Line for new switch -f
1221         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
1222         own.
1223
1224 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
1225
1226         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
1227         JM type only if its size matches that of the wrapper.  When a size is
1228         prescribed and the field is not aliased, remove the wrapper of a JM
1229         type only if the size is not greater than that of the packed array.
1230         (gnat_to_gnu_entity): Change the extension of packed array wrappers
1231         from LJM to JM.
1232
1233 2004-10-26  Geert Bosch  <bosch@gnat.com>
1234
1235         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
1236         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
1237         (Pred): Implement in terms of Succ.
1238
1239 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1240
1241         * exp_aggr.adb (Safe_Component): An aggregate component that is an
1242         unchecked conversion is safe for in-place use if the expression of the
1243         conversion is safe.
1244         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
1245         be expandable in place even if the aggregate does not come from source.
1246         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
1247         designated object of an allocator in place, rather than building it
1248         first on the stack. The previous scheme forces a full copy of the array,
1249         and may be altogether unsusable if the size of the array is too large
1250         for stack allocation.
1251
1252 2004-10-26  Robert Dewar  <dewar@gnat.com>
1253
1254         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
1255         compares if the component is atomic.
1256
1257         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
1258         array assignment if the component type is atomic.
1259
1260 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1261             Eric Botcazou  <ebotcazou@act-europe.fr>
1262
1263         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
1264         is aliased and is a by_reference type, do not pass by copy.
1265         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
1266         detect whether the call is in the right side of an assignment or
1267         the expression of an object declaration.  Recurse on component
1268         association within aggregates.
1269         Call it in the condition that determines whether the temporary is
1270         necessary for correct stack-checking.
1271
1272 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1273
1274         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
1275         RACW_Type, used in the PolyORB version.
1276         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
1277         version and the GARLIC version.
1278
1279         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
1280         Rename RCI_Info to RCI_Locator for better consistency between the
1281         GARLIC and PolyORB versions of the distributed systems annex.
1282         (DSA_Implementation_Name): This enumeration lists the possible
1283         implementations of the Partition Communication Subsystem for the
1284         Distributed Systems Annex (DSA). The three available implementations
1285         are the dummy stub implementation (No_DSA), and two versions based on
1286         two different distribution runtime libraries: GARLIC and PolyORB. Both
1287         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
1288         technology.
1289         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
1290         that organization.
1291
1292         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
1293         between the GARLIC and PolyORB versions of the distributed systems
1294         annex.
1295         Remove RE_Unbounded_Reclaim_Pool since it is unused.
1296
1297 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
1298
1299         * gnat1drv.adb: Suppress calling the back end when
1300         Frontend_Layout_On_Target is true.
1301
1302 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1303
1304         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
1305         Set_Read_Only): New subprograms.
1306         These new routines allow the user to set or unset the Owner execute
1307         and Owner write permission flags on a file.
1308
1309         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
1310         GNAT.OS_Lib.Set_Executable instead of rolling our own.
1311
1312 2004-10-26  Matthew Gingell  <gingell@gnat.com>
1313
1314         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
1315
1316 2004-10-26  Pascal Obry  <obry@gnat.com>
1317
1318         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
1319         memory before the faulting page we properly test the process read
1320         access for this address using appropriate Win32 routine.
1321         (HPUX sections): guard with "__hpux__" instead of "hpux".
1322
1323 2004-10-26  Robert Dewar  <dewar@gnat.com>
1324
1325         * lib-xref.adb (Generate_Reference): Don't complain about reference to
1326         entry parameter if pragma Unreferenced set, since we do not properly
1327         handle the case of multiple parameters.
1328
1329 2004-10-26  Vincent Celier  <celier@gnat.com>
1330
1331         * prj-env.adb: (Contains_ALI_Files): New Boolean function
1332         (Ada_Objects_Path.Add): For a library project, add to the object path
1333         the library directory only if there is no object directory or if the
1334         library directory contains ALI files.
1335         (Set_Ada_Paths.Add.Recursive_Add): Ditto
1336
1337 2004-10-26  Vincent Celier  <celier@gnat.com>
1338
1339         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
1340         extension of library projects.
1341
1342         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
1343         path defaults to ".:<prefix>/lib/gnat".
1344         (Parse): For an extending all project, allow direct import of a project
1345         that is virtually extended.
1346
1347         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
1348         the specified name is directly imported, return its ID. Otherwise, if
1349         an extension of this project is imported, return the ID of the
1350         extension.
1351
1352 2004-10-26  Robert Dewar  <dewar@gnat.com>
1353
1354         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
1355         (Sub3): New procedure, used by Scaled_Divide
1356         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
1357         correct more than one instance of failure to propagate carries
1358         correctly.
1359         (Double_Divide): Handle overflow case of largest negative number
1360         divided by minus one.
1361
1362         * s-arit64.ads (Double_Divide): Document that overflow can occur in
1363         the case of a quotient value out of range.
1364         Fix comments.
1365
1366 2004-10-26  Robert Dewar  <dewar@gnat.com>
1367
1368         * s-bitops.adb (Bit_Eq): Remove redundant check.
1369
1370         * s-bitops.ads: Minor comment updates
1371         Change some occurrences of Address to System.Address
1372
1373         * s-carsi8.ads: Fix minor cut-and-paste error in comments
1374
1375 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1376
1377         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
1378         accessibility check to prefix that is a protected operation.
1379
1380 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1381
1382         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
1383         empty, post message on stub.
1384
1385 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1386             Javier Miranda  <miranda@gnat.com>
1387
1388         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
1389         current instance appears within a unit that is directly in the context
1390         of the main unit.
1391         Used to determine whether the body of the instance should be analyzed
1392         immediately after its spec, to make its subprogram bodies available
1393         for front-end inlining.
1394         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
1395         constraint is not allowed on the component type (AARM 12.5.3(3))
1396
1397 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
1398
1399         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1400         'Storage_Pool): enhance, document & limit detection of non-sharable
1401         internal pools.
1402
1403         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
1404
1405         * s-pooglo.ads: Add more documentation now that this pool is properly
1406         documented.
1407
1408 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1409
1410         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
1411         or protected type with discriminants, do not constrain the
1412         corresponding record type if the subtype declaration has no
1413         discriminant constraints. This can be the case in source code, or in
1414         the subtype declaration created to rename an actual type within an
1415         instantiation.
1416
1417 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1418
1419         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
1420         different kind of stub (possibly wrong name for file), do not check
1421         for conformance.
1422         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
1423         includes call to some function that returns an unconstrained type, do
1424         not inline.
1425
1426 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1427
1428         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
1429         appear in the code for the main unit. Dependencies among units in the
1430         context of the main unit are established when those other units are
1431         compiled. Otherwise spurious elaboration constraints can generate
1432         incorrect elaboration circularities.
1433
1434 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1435             Ed Schonberg   <schonberg@gnat.com>
1436
1437         * sem_util.adb (Is_Aliased_View): Defend against the case where this
1438         subprogram is called with a parameter that is not an object name. This
1439         situation arises for some cases of illegal code, which is diagnosed
1440         later, and in this case it is wrong to call Is_Aliased, as that might
1441         cause a compiler crash.
1442         (Explain_Limited_Type): Refine previous fix to include
1443         inherited components of derived types, to provide complete information.
1444
1445         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
1446         is the prival for a protected object.
1447         It is necessary to mark this entity as a variable, in addition to
1448         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
1449         modified to avoid checking the Aliased flag on entities that are not
1450         objects. (Checking that flag for non-objects is erroneous and could
1451         lead to a compiler crash).
1452
1453 2004-10-26  Robert Dewar  <dewar@gnat.com>
1454
1455         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
1456         X_Frac = 0.5, then we know that the number X must be positive.
1457         (Succ): Remove the same redundant test, and also fix the primary test
1458         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
1459         Minor reformatting
1460         (Decompose): Add fuller comments to spec
1461
1462 2004-10-26  Pascal Obry  <obry@gnat.com>
1463
1464         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
1465         validity (process must have read access). Set to 0 in all other cases.
1466         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
1467         violation on Win32.
1468         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
1469         segmentation violation.
1470
1471 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
1472
1473         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
1474         whose type is a constructed subtype of an aliased object with an
1475         unconstrained nominal subtype, convert the actual to the constructed
1476         subtype before taking its address.
1477
1478 2004-10-26  Vincent Celier  <celier@gnat.com>
1479
1480         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
1481         (Is_Path_Name_Case_Sensitive): New function
1482
1483         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
1484         (Base_Name, Simple_Name, Current_Directory, Compose,
1485         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
1486         the result.
1487
1488 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
1489             Vasiliy Fofanov  <fofanov@act-europe.fr>
1490             Vincent Celier   <celier@gnat.com>
1491
1492         * gnat_ugn.texi: Generalize "finding memory problems" section into a
1493         "memory management issues" section and document some of the useful
1494         memory pools provided as part of the GNAT library.
1495         Remove "virtual" from declaration of A::method2 in
1496         the simple example of Ada/C++ mixed system.
1497         Library Projects may be virtually extended: their virtual extensions
1498         are not Library Projects.
1499         Added section on extending project hierarchies.
1500
1501 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1502
1503         * adaint.c (__gnat_get_libraries_from_registry): Cast value
1504         to LPBYTE.
1505         (__gnat_portable_spawn): Remove const.
1506
1507         * mingw32.h (MAXPATHLEN): Check for previous definition.
1508
1509 2004-10-17  Matthias Klose  <doko@debian.org>
1510
1511         * gnatvsn.ads: Set gnat library version to 4.0.
1512
1513 2004-10-05  Vincent Celier  <celier@gnat.com>
1514
1515         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
1516
1517 2004-10-04  Laurent GUERBY <laurent@guerby.net>
1518
1519         PR ada/15156
1520         * Makefile.in: Define and use RANLIB_FLAGS.
1521
1522 2004-10-04  Pascal Obry  <obry@gnat.com>
1523
1524         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
1525         other x86 platforms).
1526
1527 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
1528
1529         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
1530         in general and triggers stack alignment adjustment for thread entry
1531         points on targets where this is necessary.
1532
1533 2004-10-04  Bernard Banner  <banner@gnat.com>
1534
1535         PR ada/13897
1536
1537         * Makefile.in: Add section for powerpc linux
1538         Add variant i-vxwork-x86.ads
1539
1540         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
1541
1542 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
1543
1544         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
1545         table registration calls when need be. Ensures no reference to the crt
1546         ctors symbol are issued in the SJLJ case, which avoids possible
1547         undefined symbol errors in the case of modules to be statically linked
1548         with the kernel.
1549
1550 2004-10-04  Javier Miranda  <miranda@gnat.com>
1551
1552         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
1553         in-line the code corresponding to subprogram Analyze_Actuals. In
1554         addition, analyze the actuals only in case of subprogram call.
1555
1556 2004-10-04  Ed Falis  <falis@gnat.com>
1557
1558         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
1559
1560 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
1561
1562         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
1563         in the documentation.
1564
1565 2004-10-04  Robert Dewar  <dewar@gnat.com>
1566
1567         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
1568         IF and CASE.
1569         (Analyze_Block_Statement): Add circuitry to detect following dead code
1570         (Check_Unreachable_Code): Handle case of block exit
1571
1572 2004-10-04  Robert Dewar  <dewar@gnat.com>
1573
1574         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
1575         (XMatchD): Avoid warning for Logic_Error call
1576
1577 2004-10-04  Robert Dewar  <dewar@gnat.com>
1578
1579         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
1580         consider expressions buried within a procedure actual to be an actual.
1581         This caused some blowups with uses of packed slices within a procedure
1582         actual.
1583
1584 2004-10-04  Robert Dewar  <dewar@gnat.com>
1585
1586         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
1587         longer need to be initialized to zero.
1588         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
1589         initialized to zero.
1590
1591         * checks.adb (Expr_Known_Valid): Packed arrays are now always
1592         considered valid, even if the representation is modular. That's correct
1593         now that we no longer initialize packed modular arrays to zero.
1594
1595         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
1596         suffixes. These are now documented as the only cases in which the
1597         debugger ignores outer records.
1598         Previously, the spec allowed arbitrary suffixes for this purpose.
1599         Change name of LJM to JM for packed array pad records
1600         Create separate section on packed array handling, and add a whole new
1601         set of comments to this section describing the situation with packed
1602         modular types and justification requirements depending on endianness.
1603
1604 2004-10-04  Robert Dewar  <dewar@gnat.com>
1605
1606         * a-except.adb: Add a comment for last change
1607
1608         * einfo.ads: Minor spelling correction in comment
1609
1610         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
1611
1612         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
1613         messages.
1614
1615         * sem_util.ads: Minor comment update
1616
1617 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1618
1619         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
1620         Inline_Always when in Configurable_Run_Time mode.
1621
1622         * sem_prag.adb (Process_Convention): If entity is an inherited
1623         subprogram, apply convention to parent subprogram if in same scope.
1624         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
1625         when in Configurable_Run_Time mode.
1626
1627 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1628
1629         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
1630         class_wide type after component list has been inherited.
1631
1632 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1633
1634         * sem_ch12.adb (Check_Generic_Actuals): New predicate
1635         Denotes_Previous_Actual, to handle properly the case of a private
1636         actual that is also the component type of a subsequent array actual.
1637         The visibility status of the first actual is not affected when the
1638         second is installed.
1639         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
1640         make fully recursive the treatment of formals of packages declared
1641         with a box.
1642         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
1643         the above on exit from an instantiation.
1644         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
1645         current instantiation which is now complete.
1646         (Analyze_Package_Instantiation): No instantiated body is needed if the
1647         main unit is generic. Efficient, and avoid anomalies when a instance
1648         appears in a package accessed through rtsfind.
1649
1650 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1651
1652         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
1653         do not generate a declaration for a temporary if the call is part of a
1654         library-level instantiation.
1655
1656 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1657
1658         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
1659         searching for a limited component to flag.
1660
1661         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
1662         expansion of Input, to account for the fact that the implicit call
1663         generated by the attribute reference must freeze the user-defined
1664         stream subprogram. This is only relevant to 'Input, because it can
1665         appear in an object declaration, prior to the body of the subprogram.
1666
1667         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
1668         expansion can proceed and further errors uncovered.
1669         (Minor clean up): Fix cases of using | instead of \ for continuation
1670         messages.
1671
1672 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1673
1674         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
1675
1676         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
1677         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
1678         Use gcc_assert and gcc_unreachable.
1679
1680         * decl.c (gnat_to_gnu_entity, case object): Check and process a
1681         specified alignment before validating size.
1682         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
1683         stripped-down declaration for the type of the inner field when making
1684         a JM type.
1685
1686         * utils.c (finish_record_type): Do not compute the size in units
1687         incrementally. Instead compute it once for the rep clause case.
1688         Use gcc_assert and gcc_unreachable.
1689
1690 2004-10-04  Vincent Celier  <celier@gnat.com>
1691
1692         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
1693         in file name.
1694         (Is_Valid_Path_Name): Take '/' as a directory separator.
1695
1696 2004-10-04  Vincent Celier  <celier@gnat.com>
1697
1698         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
1699         (Extended_Project) only if Extended_Project is defined, to avoid
1700         assertion error.
1701         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
1702         resolved path.
1703         (Parse_Single_Project): Ditto.
1704
1705         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
1706         Add_To_Project_Path for virtual projects.
1707
1708 2004-10-04  Vincent Celier  <celier@gnat.com>
1709
1710         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1711         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1712         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
1713         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
1714         parameter Options_2.
1715
1716         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
1717         Build_Dynamic_Library with an empty Options_2.
1718
1719         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
1720         default anymore.
1721
1722         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
1723         directory separator, if any.
1724         (Gprmake): Do not allow mains on the command line for library projects.
1725         Do not attempt to link when the project is a library project.
1726         (Library_Opts): New table to store Library_Options.
1727         (Build_Library): If Library_Options is specified, pass these options
1728         when building a shared library.
1729
1730 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
1731
1732         * s-tposen.adb (Service_Entry): The object must be always unlocked at
1733         the end of this procedure now that the unlock operation was inserted
1734         by the expander.
1735
1736 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
1737
1738         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
1739         corresponding to the Preallocated_Stacks flags in System.
1740         (Get_Target_Parameters): Including the processing for
1741         Preallocated_Stacks.
1742
1743         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
1744         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
1745         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
1746         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
1747         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
1748         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
1749         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
1750         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
1751         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
1752         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
1753         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
1754         used to signal whether the compiler creates the required stacks and
1755         descriptors for the different tasks (when True) or it is done by the
1756         underlying operating system at run time (when False).
1757         It is initially set to False in all targets.
1758
1759         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
1760         if it is supported by the target.
1761         (Make_Task_Create_Call): Pass the stack address if it has been
1762         previously created. Otherwise pass a Null_Address.
1763
1764         * snames.adb: Add _stack.
1765
1766         * snames.ads: Add Name_uStack. Required to allow the expander to
1767         statically allocated task stacks.
1768
1769         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
1770         Stack_Address argument.
1771         Check that its value is equal to Null_Address because this target does
1772         not support the static stack allocation.
1773
1774 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
1775
1776         * usage.adb: Change "pragma inline" to "pragma Inline" in information
1777         and error messages
1778
1779 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
1780
1781         * exp_dist.adb: Split declaration of asynchronous flag out of
1782         Add_RACW_Read_Attribute.
1783         Minor reformatting for better alignment with PolyORB version.
1784         Store the entity for the asynchronous flag of an RACW, rather than the
1785         expression, in the asynchronous flags table. This will allow this flag
1786         to be used in other subprograms beside Add_RACW_Read_Attribute.
1787
1788 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
1789
1790         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
1791         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1792         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
1793         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
1794         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
1795         sockets constant MSG_NOSIGNAL (Linux-specific).
1796         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
1797         all Send operations.
1798         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
1799         from trigerring SIGPIPE.
1800         Rename components to avoid clash with Ada 2005 possible reserved
1801         word 'interface'.
1802         (Check_Selector): When the select system call returns with an error
1803         condition, propagate Socket_Error to the caller.
1804
1805 2004-10-01  Jan Hubicka  <jh@suse.cz>
1806
1807         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
1808
1809 2004-09-23  Robert Dewar  <dewar@gnat.com>
1810
1811         PR ada/17540
1812
1813         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
1814         instead do this at freeze time (we won't do it if there is an address
1815         clause).
1816         Change "pragma inline" to "pragma Inline" in information and error
1817         messages.
1818         Minor reformatting.
1819
1820         * freeze.adb (Check_Address_Clause): Remove previous change, not the
1821         right way of doing things after all.
1822         (Freeze_Entity): For object, set Is_Public for imported entities
1823         unless there is an address clause present.
1824
1825 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
1826
1827         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
1828         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
1829         ensures proper handling of types with rep clauses, which might have
1830         their TYPE_SIZE set already.
1831
1832 2004-09-21  Robert Dewar  <dewar@gnat.com>
1833
1834         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
1835         packed array types in both little- and big-endian cases. This change
1836         ensures that we no longer count on the unused bits being initialized
1837         for such types (and in particular ensures that equality testing will
1838         only read the relevant bits).
1839         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1840         These changes mean that we no longer need to initialize small packed
1841         arrays.
1842         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
1843         optimization to an LJM field as to its parent field.
1844
1845         * ada-tree.h, trans.c, utils.c, utils2.c:
1846         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1847
1848 2004-09-20  Jan Hubicka  <jh@suse.cz>
1849
1850         * utils.c (gnat_finalize): Remove.
1851         (end_subprog_body): Directly call cgraph_finalize_function;
1852         do not lower the nested functions.
1853
1854 2004-09-20  Robert Dewar  <dewar@gnat.com>
1855
1856         PR ada/17540
1857
1858         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
1859         if an address clause is present, since that means that the Import
1860         should be ignored.
1861
1862 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
1863
1864         * 5tsystem.ads: Removed, no longer used.
1865
1866 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
1867             Zack Weinberg  <zack@codesourcery.com>
1868
1869         * ada-tree.def: Use tree_code_class enumeration constants
1870         instead of code letters.
1871         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
1872         Update for new tree-class enumeration constants.
1873
1874 2004-09-17  Vincent Celier  <celier@gnat.com>
1875
1876         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
1877         capabilities of the general project manager.
1878
1879 2004-09-09  Vincent Celier  <celier@gnat.com>
1880
1881         * a-direct.ads: Add pragma Ada_05
1882         (Directory_Entry_Type): Give default value to component Kind to avoid
1883         not initialized warnings.
1884
1885         * a-direct.adb (Current_Directory): Remove directory separator at the
1886         end.
1887         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
1888         an existing directory.
1889         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
1890         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
1891         Convert the result to File_Size.
1892
1893         * prj.ads: (Project_Error): New exception
1894
1895         * prj-attr.adb: Except in procedure Initialize, Fail comes from
1896         Prj.Com, not from Osint.
1897         (Attrs, Package_Attributes): Tables moved to private part of spec
1898         (Add_Attribute, Add_Unknown_Package): Moved to new child package
1899         Prj.Attr.PM.
1900         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
1901         Prj.Project_Error after call to Fail.
1902         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
1903         Fail. Check that package name is not already in use.
1904
1905         * prj-attr.ads: Comment updates to indicate that all subprograms may be
1906         used by tools, not only by the project manager, and to indicate that
1907         exception Prj.Prj_Error may be raised in case of problem.
1908         (Add_Unknown_Package, Add_Attribute): Moved to new child package
1909         Prj.Attr.PM.
1910         (Attrs, Package_Attributes): Table instantiations moved from the body to
1911         the private part to be accessible from Prj.Attr.PM body.
1912
1913         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
1914         from new package Prj.Attr.PM.
1915         (Parse_Attribute_Declaration): Call Add_Attribute from new package
1916         Prj.Attr.PM.
1917
1918         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
1919
1920         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
1921         instead of Elaboration_Checks).
1922
1923         * a-calend.adb: Minor reformatting
1924
1925 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1926
1927         * gigi.h (maybe_pad_type): New declaration.
1928         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
1929
1930         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
1931
1932         * cuintp.c: Convert to use buildN.
1933
1934         * decl.c (maybe_pad_type): No longer static.
1935         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
1936         target pointer.
1937         Convert to use buildN.
1938
1939         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
1940         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
1941         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
1942         RHS.
1943         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
1944         (gnat_gimplify_expr, case ADDR_EXPR): New case.
1945         Convert to use buildN.
1946
1947         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
1948         TREE_READONLY for const.
1949         Convert to use buildN.
1950
1951         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
1952         (create_var_decl): Refine when TREE_STATIC is set.
1953         Convert to use buildN.
1954
1955 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
1956
1957         * gnat_ugn.texi: Delete text relating to checking of ali and object
1958         consistency.
1959
1960         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
1961         routines.
1962
1963 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
1964
1965         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
1966         pragmas recognized by GNAT.
1967
1968         * gnat_rm.texi: Document pragma Detect_Blocking.
1969
1970         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
1971         raise Program_Error if called from a protected operation.
1972
1973         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
1974         the protected action nesting level.
1975         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
1976         protected action nesting level.
1977         (Unlock): When pragma Detect_Blocking is active decrease the protected
1978         action nesting level.
1979
1980         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
1981         Protected_Action_Nesting.
1982
1983         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
1984         Common_ATCB record. It contains the dynamic level of protected action
1985         nesting for each task. It is needed for checking whether potentially
1986         blocking operations are called from protected operations.
1987         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
1988         Detect_Blocking is active or not in the partition.
1989
1990         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
1991         raise Program_Error if called from a protected operation.
1992         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
1993         Program_Error if called from a protected operation.
1994         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
1995         Program_Error if called from a protected operation.
1996
1997         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
1998         raise Program_Error if called from a protected operation.
1999
2000         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
2001         raise Program_Error if called from a protected operation, and increase
2002         the protected action nesting level.
2003         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
2004         Program_Error if called from a protected operation, and increase the
2005         protected action nesting level.
2006         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
2007         protected action nesting level.
2008
2009         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
2010         raise Program_Error if called from a protected operation, and increase
2011         the protected action nesting level.
2012         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
2013         Program_Error if called from a protected operation, and increase the
2014         protected action nesting level.
2015         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
2016         raise Program_Error if called from a protected operation.
2017         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
2018         active, raise Program_Error if called from a protected operation.
2019         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
2020         protected action nesting level.
2021
2022         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
2023         insertion of the statement raising Program_Error. The run time
2024         contains the required machinery for handling that.
2025
2026         * sem_util.ads: Change comment associated to procedure
2027         Check_Potentially_Blocking_Operation.
2028         This procedure does not insert a call for raising the exception because
2029         that is currently done by the run time.
2030
2031         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
2032
2033         * init.c: Add the global variable __gl_detect_blocking that indicates
2034         whether pragma Detect_Blocking is active (1) or not (0). Needed for
2035         making the pragma available at run time.
2036         (__gnat_set_globals): Pass and update the detect_blocking parameter.
2037
2038         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
2039         pragma Detect_Blocking is active.
2040
2041         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
2042
2043         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
2044         DB is found in the ali file. Any unit compiled with pragma
2045         Detect_Blocking active forces its effect in the whole partition.
2046
2047         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
2048         Detect_Blocking is active and delay is called from a protected
2049         operation.
2050
2051         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
2052         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
2053         Detect_Blocking is active (0 otherwise).
2054         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
2055         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
2056         otherwise).
2057
2058 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
2059
2060         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
2061         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
2062         package.
2063
2064         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
2065         (Register_Receiving_Stub): Add Subp_Info formal parameter.
2066         Update API in placeholder implemetation of s-parint to reflect changes
2067         in distribution runtime library.
2068
2069         * sem_ch3.adb (Expand_Derived_Record): Rename to
2070         Expand_Record_Extension.
2071
2072         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
2073         primitive operations of potentially distributed object types that have
2074         non-controlling anonymous access formals.
2075
2076         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
2077         subprogram.
2078         New implementation of expansion for remote access-to-subprogram types,
2079         based on the RACW infrastructure.
2080         This version of sem_dist is compatible with PolyORB/DSA as well as
2081         GLADE.
2082
2083         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
2084         Asynchrronous that applies to a remote access-to-subprogram type, mark
2085         the underlying RACW type as asynchronous.
2086
2087         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
2088          __gnat_using_gnu_linker to 1.
2089
2090         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
2091         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
2092         GNAT.Perfect_Hash_Generators, and remove the empty
2093         GNAT.Perfect_Hash package.
2094
2095         * atree.adb: Minor reformatting
2096
2097         * exp_ch3.adb (Expand_Derived_Record): Rename to
2098         Expand_Record_Extension.
2099         (Build_Record_Init_Proc.Build_Assignment): The default expression in
2100         a component declaration must remain attached at that point in the
2101         tree so New_Copy_Tree copies it if the enclosing record type is derived.
2102         It is therefore necessary to take a copy of the expression when building
2103         the corresponding assignment statement in the init proc.
2104         As a side effect, in the case of a derived record type, we now see the
2105         original expression, without any rewriting that could have occurred
2106         during expansion of the ancestor type's init proc, and we do not need
2107         to go back to Original_Node.
2108
2109         * exp_ch3.ads (Expand_Derived_Record): Rename to
2110         Expand_Record_Extension.
2111
2112         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
2113         Returns the RACW type used to implement a remote access-to-subprogram
2114         type.
2115         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
2116         New subprograms. Used to create a proxy tagged object for a remote
2117         subprogram. The proxy object is used as the designated object
2118         for RAS values on the same partition (unless All_Calls_Remote applies).
2119         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
2120         System.Partition_Interface.Get_Unique_Remote_Pointer.
2121         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
2122         Renamed from Add_RAS_*_Attribute.
2123         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
2124         subprograms.
2125         New implementation of expansion for remote access-to-subprogram types,
2126         based on the RACW infrastructure.
2127
2128         * exp_dist.ads (Copy_Specification): Update comment to note that this
2129         function can copy the specification from either a subprogram
2130         specification or an access-to-subprogram type definition.
2131
2132 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
2133
2134         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
2135         in an instance, between an explicit subprogram an one inherited from a
2136         type derived from an actual.
2137
2138         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
2139         add a polling call if the subprogram is to be inlined by the back-end,
2140         to avoid repeated calls with multiple inlinings.
2141
2142         * checks.adb (Apply_Alignment_Check): If the expression in the address
2143         clause is a call whose name is not a static entity (e.g. a dispatching
2144         call), treat as dynamic.
2145
2146 2004-09-09  Robert Dewar  <dewar@gnat.com>
2147
2148         * g-trasym.ads: Minor reformatting
2149
2150         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
2151         packed arrays, since unused bits are expected to be zero for a
2152         comparison.
2153
2154 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
2155
2156         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
2157         comment.
2158
2159 2004-09-09  Pascal Obry  <obry@gnat.com>
2160
2161         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
2162         enable map file generation. Add the right option to generate the map
2163         file if Map_File is set to True.
2164
2165         * gnatdll.adb (Gen_Map_File): New variable.
2166         (Syntax): Add info about new -m (Map_File) option.
2167         (Parse_Command_Line): Add support for -m option.
2168         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
2169         Minor reformatting.
2170
2171 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
2172
2173         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
2174         new gnatdist implementation.
2175         Define a subpackage isolating the output routines specific to this
2176         verbose mode.
2177
2178 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
2179
2180         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
2181
2182         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
2183
2184 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
2185
2186         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
2187         internal unit.
2188
2189         * opt.ads: Add Ada_Version_Runtime constant used to decide which
2190         version of the language is used to compile the run time.
2191
2192 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
2193
2194         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
2195         of variable length temporaries for function return now that the
2196         back-end and gigi support it.
2197
2198 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2199
2200         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
2201
2202         * trans.c (struct stmt_group): Delete field GLOBAL.
2203         (gnat_init_stmt_group): Do not initialize it.
2204         (call_to_gnu): Use save_expr, not protect_multiple_eval.
2205         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
2206         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
2207         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
2208         (start_stmt_group): Likewise.
2209         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
2210
2211         * utils2.c (ggc.h): Include.
2212         (build_call_raise): Call build_int_cst, not build_int_2.
2213
2214         * utils.c (gnat_init_decl_processing): Fix arg to
2215         build_common_tree_nodes.
2216         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
2217         (gnat_define_builtin): Set built_in_decls.
2218         (init_gigi_decls): Call build_int_cst, not build_int_2.
2219
2220         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
2221         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
2222         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
2223         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
2224         SET_TYPE_MODULE): Use them.
2225         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
2226         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
2227         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
2228         SET_TYPE_ADA_SIZE): Likewise.
2229         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
2230         (DECL_CONST_CORRESPONDING_VAR,
2231         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
2232         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
2233         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
2234         (TYPE_RM_SIZE_NUM): New macro.
2235         (TYPE_RM_SIZE): Modified to use above.
2236
2237         * cuintp.c: (build_cst_from_int): New function.
2238         (UI_To_gnu): Use it.
2239
2240         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
2241         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
2242         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
2243         MIN_EXPR for the size, copy it into new.
2244
2245 2004-09-01  Robert Dewar  <dewar@gnat.com>
2246
2247         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
2248         packed indexed component where array is an IN OUT formal. This
2249         generated garbage code previously.
2250
2251         * gnat_ugn.texi: Document -fverbose-asm
2252
2253         * gnat-style.texi: Minor updates (note that boolean constants and
2254         variables are joined with AND/OR rather than short circuit forms).
2255
2256 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
2257
2258         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
2259         it is an upward conversion of an untagged type with no representation
2260         change.
2261
2262 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
2263
2264         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
2265         System.Partition_Interface.
2266
2267         * checks.adb (Apply_Access_Checks): Do not generate checks when
2268         expander is not active (but check for unset reference to prefix of
2269         dereference).
2270
2271         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
2272         pragma Debug as an if statement with a constant condition, for
2273         consistent treatment of entity references contained within the
2274         enclosed procedure call.
2275
2276 2004-09-01  Vincent Celier  <celier@gnat.com>
2277
2278         * bindgen.adb: (Set_EA_Last): New procedure
2279         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
2280         Set_EA_Last.
2281         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
2282         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
2283         linked without errors.
2284         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
2285         ST and EA.
2286         (Gen_Exception_Table_C): Correct same bugs
2287
2288         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
2289
2290         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
2291         on Windows, make sure that the drive letter is in upper case.
2292
2293         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
2294         Windows, when the drive letter is added and Case_Sensitive is True, the
2295         drive letter is forced to upper case.
2296
2297         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
2298         to Options_2 for the call to MLib.Utl.Gcc.
2299
2300         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
2301         directory separator when defining BASE_DIR.
2302
2303 2004-09-01  Pascal Obry  <obry@gnat.com>
2304
2305         * gprcmd.adb (Extend): Do not output trailing directory separator. This
2306         is not needed and it confuses Windows GNU/make which does not report
2307         directory terminated by a slash as a directory.
2308         (gprcmd): Idem for "pwd" internal command.
2309
2310         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
2311         target names rewrite to fix regressions with recent version of
2312         GNU/make. Starting with GNU/make 3.80 the pipe character was not
2313         handled properly anymore.
2314
2315 2004-09-01  Andreas Schwab  <schwab@suse.de>
2316
2317         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
2318         * raise.c [!IN_RTS]: Undef abort.
2319
2320 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
2321
2322         * utils2.c (build_allocator): Use ssize_int.
2323
2324         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
2325
2326 2004-08-27  Andreas Schwab  <schwab@suse.de>
2327
2328         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
2329
2330 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
2331             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2332
2333         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
2334
2335 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
2336
2337         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
2338         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
2339         * utils.c (init_gigi_decls): Likewise.
2340         * utils2.c (build_call_raise, build_allocator): Likewise.
2341
2342 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
2343
2344         * utils.c (gnat_init_decl_processing): Adjust
2345         build_common_tree_nodes call.
2346
2347 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
2348
2349         * utils2.c (build_allocator): Use build_int_cst for negative
2350         size types.
2351
2352 2004-08-18  Richard Henderson  <rth@redhat.com>
2353
2354         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
2355
2356 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2357
2358         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
2359         call.s
2360         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
2361         (gnat_to_gnu): Likewise.
2362
2363 2004-08-16  Pascal Obry  <obry@gnat.com>
2364
2365         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
2366         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
2367         option and not mdll anymore. Update comment.
2368
2369 2004-08-16  Pascal Obry  <obry@gnat.com>
2370
2371         * bld.adb (Put_Include_Project): Properly handle directory separators
2372         on Windows.
2373
2374 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
2375
2376         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
2377         decreasing the number of allocated junk nodes while searching for the
2378         appropriate subprogram.
2379
2380 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
2381
2382         * cuintp.c (UI_To_gnu): Use build_int_cst..
2383         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
2384         * utils.c (init_gigi_decls): Likewise.
2385         * utils2.c (build_call_raise): Likewise.
2386
2387 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
2388
2389         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
2390         for a global aliased object with a variable size and an unconstrained
2391         nominal subtype, pretend there is no initializer if the one we have is
2392         incomplete, and avoid referencing an inexistant component in there. The
2393         part we have will be rebuilt anyway and the reference may confuse
2394         further operations.
2395
2396 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
2397
2398         * einfo.ads: Minor reformatting
2399
2400         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
2401         restrictions in the ALI if we only want to warn about violations.
2402
2403 2004-08-13  Vincent Celier  <celier@gnat.com>
2404
2405         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
2406         when creating a new Unit_Record in table Units.
2407
2408         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
2409         that are violated, if any.
2410
2411         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
2412         add directory separator if path already ends with a directory separator.
2413
2414 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
2415
2416         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
2417         unit, this is an attempt to inline a construct that is not available in
2418         the current restricted mode, so abort rather than trying to continue.
2419
2420         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
2421         discriminants that rename those of the parent, recover names of
2422         original discriminants for the constraint on the full view of the
2423         parent.
2424         (Complete_Private_Subtype): Do not create a subtype declaration if the
2425         subtype is an itype.
2426
2427         * gnat_rm.texi: Added section on implementation of discriminated
2428         records with default values for discriminants.
2429
2430 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
2431
2432         PR ada/15601
2433         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
2434         the second operand is overloaded.
2435
2436 2004-08-10  Richard Henderson  <rth@redhat.com>
2437
2438         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
2439         add __builtin_alloca.
2440
2441 2004-08-10  Richard Henderson  <rth@redhat.com>
2442
2443         * config-lang.in (boot_language): Yes.
2444
2445 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
2446
2447         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
2448         from complaining on potential uninitialized reference.
2449         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
2450         new specification and test explicitly for non-zero return value.
2451
2452         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
2453         returning C.int, to avoid using a derived boolean type.
2454
2455         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
2456         Duplicate_Subexpr_No_Checks in preference to direct use of
2457         Remove_Side_Effects and New_Copy_Tree.
2458         Clear Comes_From_Source on prefix of 'Size attribute reference.
2459
2460         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
2461         g-socthi-vxworks.adb: Change calls to
2462         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
2463         and test explicitly for non-zero return value.
2464
2465         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
2466         (Is_Socket_In_Set): Declare imported function as returning C.int, to
2467         avoid using a derived boolean type.
2468
2469 2004-08-09  Albert Lee  <lee@gnat.com>
2470
2471         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
2472
2473 2004-08-09  Pascal Obry  <obry@gnat.com>
2474
2475         * gnat_ugn.texi: Document new way to build DLLs on Windows using
2476         GCC's -shared option.
2477
2478         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
2479         Options_2 parameter (options put after object files).
2480
2481 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
2482
2483         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
2484         ignore overflows on low and high bounds of an index to also account for
2485         differences in signedness between sizetype and gnu_index_subtype.
2486         These are as legitimate as the ones caused by a lower TYPE_PRECISION
2487         on sizetype.
2488
2489 2004-08-09  Robert Dewar  <dewar@gnat.com>
2490
2491         * s-solita.ads, s-solita.adb: Minor reformatting
2492
2493         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
2494         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
2495         obsolescent section
2496         Add note that No_Implicit_Conditionals does not suppress
2497         run time constraint checks.
2498
2499         * vms_conv.ads: Minor reformatting
2500
2501         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
2502         and necessary for following change).
2503         (Mark): Return new format Mark_Id containing sec stack address
2504         (Release): Use sec stack address from Mark_Id avoiding Self call
2505
2506         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
2507         pointer (cleanup and necessary for following change).
2508         Define Mark_Id as record containing address of secondary stack, that way
2509         Release does not need to find the stack again, decreasing the number of
2510         calls to Self and improving efficiency.
2511
2512         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
2513
2514         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
2515         case variable into the individual case branches when possible.
2516
2517         * sem_ch11.adb: Minor reformatting
2518
2519         * prj.ads: Correct spelling of suffixs
2520
2521         * prj-nmsc.adb: Minor reformatting
2522         Correct spelling suffixs throughout (also in identifiers)
2523
2524         * freeze.adb: Minor spelling correction
2525
2526         * exp_ch2.adb: Cleanups to handling of Current_Value
2527         (no functional effect).
2528
2529         * bld.adb: Correct spelling of suffixs
2530
2531         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
2532
2533 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
2534
2535         PR ada/15408
2536
2537         * sem_ch7.adb (Install_Private_Declarations): In the body of the
2538         package or of a child, private entities are both immediately_visible
2539         and not hidden.
2540
2541 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
2542
2543         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
2544         there are no range checks on the value of the literal.
2545
2546         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
2547         wrapped is the triggering alternative of an asynchronous select, action
2548         statements mustbe inserted before the select itself.
2549
2550         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
2551         case where the prefix is a protected function call.
2552         (Resolve_Attribute, case 'Access): The attribute reference on a
2553         subprogram is legal in a generic body if the subprogram is declared
2554         elsewhere.
2555
2556 2004-08-09  Vincent Celier  <celier@gnat.com>
2557
2558         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
2559         languages, otherwise building the library may fail with unresolved
2560         symbols.
2561         (Compile_Sources): Do not build libraries if -c switch is used
2562
2563         * gnatlink.adb (Process_Args): New switches -M and -Mmap
2564         (Write_Usage): If map file creation is supported, output new switches
2565         -M and -Mmap.
2566         (Gnatlink): When -M is specified, add the necessary switch(es) to the
2567         gcc call, when supported.
2568
2569         * Makefile.in: Added indepsw.o to the object list for gnatlink
2570         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
2571
2572         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
2573         indepsw.adb, indepsw.ads: New files.
2574
2575 2004-08-09  Bernard Banner  <banner@gnat.com>
2576
2577         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
2578
2579         * Makefile.in: add section for vxworks x86
2580
2581 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
2582
2583         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
2584         per-object constrained components where the discriminant is of an
2585         Access type.
2586         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
2587         the parent initialization procedure for derived Unchecked_Unions.
2588         Instead, derived Unchecked_Unions build their own initialization
2589         procedure.
2590         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
2591         Check the body of the subprogram for details.
2592         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
2593         functions for derived Unchecked_Union types by introducing a condition.
2594         Allow the creation of TSS equality functions for Unchecked_Unions.
2595         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
2596         Add formal parameter Discr to function signature. Discr is used to
2597         control the generated case statement for Unchecked_Union types.
2598         (Make_Eq_If): Rename formal parameter Node to E in function signature.
2599
2600         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
2601         Unchecked_Unions.
2602         Check the body of the subprogram for details.
2603         (Expand_Composite_Equality): Augment composite type equality to include
2604         correct handling of Unchecked_Union components.
2605         (Expand_N_In): Add condition to detect illegal membership tests when the
2606         subtype mark is a constrained Unchecked_Union and the expression lacks
2607         inferable discriminants, and build a Raise_Program_Error node.
2608         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
2609         to detect types that contain components of unconstrained Unchecked_Union
2610         subtype. Add condition to detect equality between types that have an
2611         unconstrained Unchecked_Union component, and build a Raise_Program_Error
2612         node. Add condition to detect equality between Unchecked_Union types
2613         that lack inferable discriminants, and build a Raise_Program_Error node.
2614         Otherwise build a TSS equality function call.
2615         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
2616         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
2617         with the operand lacking inferable discriminants, and build a Raise_
2618         Program_Error node.
2619         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
2620         composite equality.
2621         (Has_Inferable_Discriminants): Implement new predicate for objects and
2622         expressions of Unchecked_Union type. Check the body of subprogram for
2623         details.
2624         (Has_Unconstrained_UU_Components): Add function
2625         Component_Is_Unconstrained_UU. It is used to detect whether a single
2626         component is of an unconstrained Unchecked_Union subtype. Add function
2627         Variant_Is_Unconstrained_UU. It is used to detect whether a single
2628         component inside a variant is of an unconstrained Unchecked_Union type.
2629
2630         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
2631         inferred discriminant values. Add condition to generate a case
2632         statement with an inferred discriminant as the switch.
2633         (Make_Component_List_Assign): Introduce a Boolean flag that determines
2634         the behaviour of the subprogram in the presence of an Unchecked_Union.
2635         Add condition to trigger the usage of the inferred discriminant value
2636         as the generated case statement switch.
2637         (Make_Field_Assign): Introduce a Boolean flag that determines the
2638         behaviour of the subprogram in the presence of an Unchecked_Union. Add
2639         condition to trigger the usage of the inferred discriminant value as
2640         the right-hand side of the generated assignment.
2641
2642         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
2643         parameter generation when dealing with Unchecked_Unions.
2644
2645         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
2646         checks for Unchecked_Unions.
2647
2648         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
2649
2650         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
2651         Raise_Program_Error nodes for the execution of Read and Write
2652         attributes of Unchecked_Union types and the execution of Input and
2653         Output attributes of Unchecked_Union types that lack default
2654         discriminant values.
2655
2656         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
2657         Unchecked_Union. Add procedure Check_Component. It is used to inspect
2658         per-object constrained components of Unchecked_Unions for being
2659         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
2660         check individual components withing a variant.
2661
2662         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
2663         comparison of Unchecked_Unions.
2664         (Resolve_Equality_OP): Remove guard that prevents equality between
2665         Unchecked_Unions.
2666
2667         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
2668         of component subtypes for Unchecked_Union components.
2669         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
2670         since it is the actual subtype.
2671
2672         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
2673         pass of Unchecked_Union subtypes as generic actuals to formal types
2674         that lack known_discriminant_parts or that are derived Unchecked_Union
2675         types, and do nothing. In any other case, produce an error message.
2676
2677         * sem_ch3.adb (Analyze_Component_Declaration): Add function
2678         Contains_POC. It determines whether a constraint uses the discriminant
2679         of an enclosing record type.
2680         Add condition to detect per-object constrained component and set the
2681         appropriate flag.
2682         (Derived_Type_Declaration): Remove guard that prevents derivation from
2683         Unchecked_Union types.
2684         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
2685         Union subtypes.
2686
2687         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
2688         references to Unchecked_Union discriminants.
2689
2690         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
2691         formal generation when dealing with Unchecked_Unions.
2692         (Set_Actual_Subtypes): Add condition to prevent generation of actual
2693         subtypes for Unchecked_Unions.
2694
2695         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
2696         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
2697         completions of discriminated partial views by Unchecked_Unions and
2698         produce an error message.
2699
2700 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2701
2702         * trans.c (struct stmt_group): New field, GLOBAL.
2703         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
2704         (struct elab_info): New struct.
2705         (elab_info_list, gnu_elab_proc_stack): New variables.
2706         (Compilation_Unit_to_gnu): New procedure.
2707         (gigi): Call it and also handle elaboration procs we've saved.
2708         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
2709         global field from parent.
2710         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
2711         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
2712         (start_stmt_group): Initialize global field from parent.
2713         (add_decl_expr): Set to global for current statement group.
2714         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
2715         post.
2716
2717         * utils.c (global_bindings_p): True when no current_function_decl; no
2718         longer check current_binding_level.
2719
2720 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
2721
2722         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
2723         choice.
2724
2725         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
2726
2727 2004-08-06  Andreas Schwab  <schwab@suse.de>
2728
2729         * utils.c (gnat_define_builtin): Remove second parameter of
2730         make_decl_rtl.
2731         (begin_subprog_body): Likewise.
2732
2733 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
2734
2735         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
2736         optimization, not supported by the tree-ssa back-end.
2737
2738 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
2739
2740         * s-mastop-irix.adb: Update comments.
2741
2742         * a-except.adb (Exception_Information): Raise Constraint_Error if
2743         exception Id is Null_Id.
2744         This is required behavior, which is more reliably and clearly checked
2745         at the top level interface level.
2746
2747 2004-07-26  Javier Miranda  <miranda@gnat.com>
2748
2749         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
2750         call if a component has no default_expression and the box is used.
2751
2752         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
2753         default_expression and you use box, it behaves as if you had declared a
2754         stand-alone object.
2755         (Resolve_Record_Aggregate): If a component has no default_expression and
2756         you use box, it behaves as if you had declared a stand-alone object.
2757
2758         * sem_ch10.adb (Install_Siblings): Do not make visible the private
2759         entities of private-with siblings.
2760
2761 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
2762
2763         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
2764         for a component of an itype, set the parent pointer for analysis,
2765         there is no list in which to insert it.
2766
2767         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
2768         bona-fide renamings, not for inherited operations.
2769
2770         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
2771         actual for a formal that is an access parameter, create local
2772         finalization list even if the expression is not an aggregate.
2773
2774 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
2775
2776         PR ada/16213
2777         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
2778         Diagnose properly illegal subprogram renamings that are library units.
2779
2780 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
2781
2782         PR ada/15588
2783         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
2784         conversion rewritten as an unchecked conversion, check that original
2785         expression is a variable.
2786
2787         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
2788         unchecked_conversion, create new node rather than rewriting in place,
2789         to preserve original construct.
2790
2791 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2792
2793         * gigi.h (gnat_expand_body): Deleted.
2794
2795         * Make-lang.in: (trans.o): Depends on function.h.
2796
2797         * misc.c: (gnat_expand_body): Moved to here.
2798
2799         * trans.c (gnat_expand_body_1): Deleted.
2800         (gnat_expand_body): Moved from here.
2801         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
2802         (add_stmt): Check for marked visited with global_bindings_p.
2803         (gnat_gimplify_expr, case COMPONENT_REF): New case.
2804         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
2805
2806         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
2807         VIEW_CONVERT_EXPR if not operation type.
2808
2809         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
2810         fat pointer.
2811
2812         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
2813         changes: reformatting of negation operators, removing unneeded
2814         inequality comparison with zero, converting equality comparisons with
2815         zero to negations, changing int/0/1 to bool/false/true, replace calls
2816         to gigi_abort with abort, and various other similar changes.
2817
2818 2004-07-26  Vincent Celier  <celier@gnat.com>
2819
2820         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
2821         "setup".
2822
2823         * make.adb (Gnatmake): Fail when a library is not present and there is
2824         no object directory.
2825
2826         * mlib-prj.adb (Check_Library): No need to check if the library needs
2827         to be rebuilt if there is no object directory, hence no object files
2828         to build the library.
2829
2830         * opt.ads (Setup_Projects): New Boolean flag.
2831
2832         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
2833         Location.
2834         Create directory when Kind /= "" and in "gnat setup". Report error if
2835         directory cannot be created.
2836         (Ada_Check): Create library interface copy dir if it does not exist
2837         and we are in "gnat setup".
2838         (Find_Sources): No error if in "gnat setup" and no Ada sources were
2839         found.
2840         (Language_Independent_Check): Create object directory, exec directory
2841         and/or library directory if they do not exist and we are in
2842         "gnat setup".
2843
2844         * vms_conv.ads: (Command_Type): New command Setup.
2845
2846         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
2847
2848         * vms_data.ads: Add qualifiers/switches for new built-in command
2849         "setup".
2850
2851 2004-07-25  Richard Henderson  <rth@redhat.com>
2852
2853         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
2854         DECL_IGNORED_P on RESULT_DECL.
2855
2856 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
2857
2858         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
2859         allocation and potentially overflowing update with
2860         Tailored_Exception_Information. Use the sec-stack free procedural
2861         interface to output Exception_Information instead.
2862
2863         * a-except.adb (To_Stderr): New subprogram for character, and string
2864         version moved from a-exextr to be visible from other separate units.
2865         (Tailored_Exception_Information): Remove the procedural version,
2866         previously used by the default Last_Chance_Handler and not any more.
2867         Adjust various comments.
2868
2869         * a-exexda.adb: Generalize the exception information procedural
2870         interface, to minimize the use of secondary stack and the need for
2871         local buffers when the info is to be output to stderr:
2872         (Address_Image): Removed.
2873         (Append_Info_Character): New subprogram, checking for overflows and
2874         outputing to stderr if buffer to fill is of length 0.
2875         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
2876         (Append_Info_Address, Append_Info_Exception_Name,
2877         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
2878         Append_Info_Basic_Exception_Traceback,
2879         Append_Info_Exception_Information): New subprograms.
2880         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
2881         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
2882         Exception_Info_Maxlength, Exception_Name_Length,
2883         Exception_Message_Length): New subprograms.
2884         (Exception_Information): Use Append_Info_Exception_Information.
2885         (Tailored_Exception_Information): Use
2886         Append_Info_Basic_Exception_Information.
2887         Export services for the default Last_Chance_Handler.
2888
2889         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
2890         other separate units.
2891
2892 2004-07-20  Vincent Celier  <celier@gnat.com>
2893
2894         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
2895
2896 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
2897
2898         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
2899         emit itype references for the designated types of component types that
2900         are declared outside of the full record declaration, and that may
2901         denote a partial view of that record type.
2902
2903 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
2904
2905         PR ada/15607
2906         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
2907         which is the designated type in an access component declaration, to the
2908         list of incomplete dependents of the parent type, to avoid elaboration
2909         issues with out-of-scope subtypes.
2910         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
2911         full view of the parent.
2912
2913 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
2914
2915         PR ada/15610
2916         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
2917         entities that are hidden, such as references to generic actuals
2918         outside an instance.
2919
2920 2004-07-20  Javier Miranda  <miranda@gnat.com>
2921
2922         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
2923         support to the new notation.
2924         (Analyze_Selected_Component): Add call to Try_Object_Operation.
2925
2926 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
2927
2928         * s-taprob.adb: Adding the elaboration code required for initializing
2929         the tasking soft links that are common to the full and the restricted
2930         run times.
2931
2932         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
2933         restricted run time has been moved to the package
2934         System.Soft_Links.Tasking.
2935
2936         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
2937         restricted run time has been moved to the package
2938         System.Soft_Links.Tasking.
2939
2940         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
2941
2942         * s-solita.ads, s-solita.adb: New files.
2943
2944 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2945
2946         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
2947         Case_Statement_to_gnu): Split off from gnat_to_gnu.
2948         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
2949         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
2950         Exception_Handler_to_gnu_zcx): Likewise.
2951
2952 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2953
2954         * gigi.h (builtin_function): Declare.
2955
2956 2004-07-15  Robert Dewar  <dewar@gnat.com>
2957
2958         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
2959         reformatting
2960
2961         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
2962         access values as an example of a warning.
2963
2964         * gnat_rm.texi: Document new attribute Has_Access_Values
2965
2966         * gnat-style.texi: Document that box comments belong on nested
2967         subprograms
2968
2969         * sem_util.ads (Has_Access_Values): Improved documentation
2970
2971         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
2972
2973         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
2974         (Process_Interface_Name): Call to this new procedure
2975         (Set_Extended_Import_Export_External_Name): Call to this new procedure
2976
2977         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
2978
2979         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
2980
2981         * einfo.ads: Minor comment typo fixed
2982
2983 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
2984
2985         * snames.adb: Add _atcb.
2986
2987         * snames.ads: Add Name_uATCB.
2988
2989         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
2990         (in the expanded code) when using the restricted run time.
2991
2992         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
2993         a in parameter in order to allow ATCBs to be preallocated (in the
2994         expanded code).
2995
2996         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
2997         order to allow ATCBs to be preallocated. In case of error, the ATCB is
2998         deallocated in System.Tasking.Stages.
2999
3000         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
3001         order to allow ATCBs to be preallocated.
3002
3003         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
3004         here. It was previously done in Initialize_ATCB.
3005
3006         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
3007
3008         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
3009         Restricted run time.
3010
3011         * exp_ch3.adb: When using the Restricted run time, pass the
3012         preallocated Ada_Task_Control_Block when creating a task.
3013
3014 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
3015
3016         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
3017         function call that is itself an actual in an enclosing call, diagnose
3018         problem here rather than assuming that resolution will catch it.
3019
3020         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
3021         the local copy of a generic unit for a formal package, and the generic
3022         is a child unit, install private part of ancestors before compiling
3023         private part of spec.
3024
3025         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
3026         use scope entities rather than tree structures, to handle properly
3027         parent units that are instances rewritten as bodies for inlining
3028         purposes.
3029
3030         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
3031         Remove_Parents): Handle properly a parent unit that is an
3032         instantiation, when the unit has been rewritten as a body for inlining
3033         purposes.
3034
3035         * par.adb (Goto_List): Global variable to collect goto statements in a
3036         given unit, for use in detecting natural loops.
3037
3038         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
3039         use in detecting natural loops.
3040
3041         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
3042         backwards goto's, and rewrite as a infinite loop, to improve locality
3043         of temporaries.
3044
3045         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
3046         subcomponent that includes an indexed reference, to prevent the
3047         generation of copies that would miscompile the desired assignment
3048         statement.
3049         (Build_Task_Image_Decls): Add a numeric suffix to
3050         generated name for string variable, to avoid spurious conflicts with
3051         the name of the type of a single protected object.
3052
3053         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
3054         loop with an explicit exit statement, to avoid generating an
3055         out-of-range value with 'Succ leading to spurious constraint_errors
3056         when compiling with -gnatVo.
3057
3058 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
3059
3060         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
3061         might not be analyzed yet, even if its Etype is already set (case of an
3062         unchecked conversion built using Unchecked_Convert_To, for example).
3063         If the prefix has already been analyzed, this will be a nop anyway.
3064
3065         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
3066         controller type, or an assignment of a record type with controlled
3067         components, copy only user data, and leave the finalization chain
3068         pointers untouched.
3069
3070 2004-07-15  Vincent Celier  <celier@gnat.com>
3071
3072         * make.adb (Collect_Arguments): Improve error message when attempting
3073         to compile a source not part of any project, when -x is not used.
3074
3075         * prj.ads: (Defined_Variable_Kind): New subtype
3076
3077         * prj-attr.adb (Register_New_Package): Two new procedures to register
3078         a package with or without its attributes.
3079         (Register_New_Attribute): Mew procedure to register a new attribute in a
3080         package.
3081         New attribute oriented subprograms: Attribute_Node_Id_Of,
3082         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
3083         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
3084         Next_Attribute.
3085         New package oriented subprograms: Package_Node_Id_Of,
3086         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
3087
3088         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
3089         type.
3090         (Package_Node_Id): Now a private, self initialized type
3091         (Register_New_Package): New procedure to register a package with its
3092         attributes.
3093         New attribute oriented subprograms: Attribute_Node_Id_Of,
3094         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
3095         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
3096         Next_Attribute.
3097         New package oriented subprograms: Package_Node_Id_Of,
3098         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
3099
3100         * prj-dect.adb (Parse_Attribute_Declaration,
3101         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
3102
3103         * prj-makr.adb (Make): Parse existing project file before creating
3104         other files. Fail if there was an error during parsing.
3105
3106         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
3107         new spec of Prj.Attr.
3108
3109         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
3110         to new spec of Prj.Attr.
3111
3112 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3113
3114         * utils2.c: Fix typo in comment.
3115
3116 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3117
3118         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
3119         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
3120
3121 2004-07-14  Andreas Schwab  <schwab@suse.de>
3122
3123         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
3124
3125 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3126
3127         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
3128         object type.
3129         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
3130         TYPE_STUB_DECL.
3131
3132         * misc.c (gnat_types_compatible_p): New function.
3133         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
3134         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
3135
3136         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
3137         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
3138         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
3139         (mark_visited): Don't mark dummy type.
3140         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
3141         parameter, we must remove any LJM building from GNU_NAME.
3142         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
3143         (pos_to_constructor): Use int_const_binop.
3144         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
3145         PARM_DECL.
3146
3147         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
3148         (gnat_pushlevel): Set TREE_USE on BLOCK node.
3149         (gnat_install_builtins): Add __builtin_memset.
3150
3151 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
3152
3153         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
3154         for a renaming, stabilize the initialization expression if we are at a
3155         local level.  At the local level, uses of the renaming may be performed
3156         by a direct dereference of the initializing expression, and we don't
3157         want possible variables there to be evaluated for every use.
3158
3159         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
3160         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
3161         them on the way.  Account for the fact that we may introduce side
3162         effects in the process.
3163
3164 2004-07-13  Richard Henderson  <rth@redhat.com>
3165
3166         * misc.c (default_pass_by_ref): Use pass_by_reference.
3167
3168 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
3169
3170         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
3171         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
3172
3173 2004-07-08  Richard Henderson  <rth@redhat.com>
3174
3175         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
3176         commentary.
3177
3178 2004-07-06  Vincent Celier  <celier@gnat.com>
3179
3180         * vms_conv.ads: Minor reformatting.
3181         Alphabetical order for enumerated values of type Command_Type, to have
3182         the command in alphabetical order for the usage.
3183
3184         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
3185         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
3186
3187         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
3188
3189         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
3190         (Add_Archive_Path): Only add the global archive if there is one.
3191         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
3192         or not any object file to put in the global archive, and don't build
3193         a global archive if there is none.
3194         (X_Switches): New table
3195         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
3196         in the X_Switches table, if any.
3197         (Initialize): Make sure the X_Switches table is empty
3198         (Scan_Arg): Record -X switches in table X_Switches
3199
3200         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
3201
3202         * make.adb: Minor comment fix
3203
3204         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
3205         invoked with directory information, add the directory in front of the
3206         path.
3207
3208         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
3209         invoked with directory information, add the directory in front of the
3210         path.
3211
3212         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
3213         when Keep_Temporary_Files is False.
3214         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
3215         directory information, add the directory in front of the path.
3216         When not on VMS, handle new switch -dn before the command to set
3217         Keep_Temporary_Files to True.
3218         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
3219         everywhere.
3220
3221         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
3222         invoked with directory information, add the directory in front of the
3223         path.
3224
3225 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
3226
3227         * snames.ads, snames.adb (Name_Stub): New name for the distributed
3228         systems annex.
3229
3230         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
3231         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
3232
3233         * g-socket.adb (To_Timeval): Fix incorrect conversion of
3234         Selector_Duration to Timeval for the case of 0.0.
3235
3236         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
3237         documentation from Evolve_And_Then.
3238
3239 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
3240
3241         * s-taprop-tru64.adb, s-taprop-os2.adb,
3242         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
3243
3244 2004-07-06  Robert Dewar  <dewar@gnat.com>
3245
3246         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
3247         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
3248         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
3249         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
3250         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
3251         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
3252         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
3253         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
3254         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
3255         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
3256         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
3257         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
3258         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
3259         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
3260         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
3261         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
3262         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
3263         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
3264         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
3265         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
3266         vms_data.ads: Minor reformatting,
3267         Fix bad box comment format.
3268
3269         * gnat_rm.texi: Fix minor grammatical error
3270
3271         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
3272
3273         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
3274         more cases of discriminated records to be recognized as not needing a
3275         secondary stack.
3276         (Has_Access_Values): New function.
3277
3278         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
3279
3280         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
3281         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
3282         with LRM terminology).
3283         Change terminology in comments primitive type => elementary type.
3284
3285 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
3286
3287         PR ada/15602
3288         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
3289         parameters do not impose any requirements on the presence of a body.
3290
3291 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
3292
3293         PR ada/15593
3294         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
3295         compilation unit and is in an open scope at the point of instantiation,
3296         assume that a body may be present later.
3297
3298 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
3299
3300         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
3301         Improve error message when specified size is not supported.
3302
3303         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
3304         is never a primitive operation.
3305
3306 2004-07-05  Andreas Schwab  <schwab@suse.de>
3307
3308         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
3309         RECORD_OR_UNION_CHECK.
3310         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
3311
3312 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
3313
3314         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
3315         dependency on xgnatugn, instead build it via a submake.
3316         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
3317
3318 2004-07-04  Richard Henderson  <rth@redhat.com>
3319
3320         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
3321
3322 2004-07-01  Richard Henderson  <rth@redhat.com>
3323
3324         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
3325         * utils.c (max_size): Likewise.
3326
3327 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3328
3329         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
3330         and rest_of_type_compilation; add arg to create_*_decl.
3331         (annotate_decl_with_node): Deleted.
3332         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
3333         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
3334         (get_current_block_context, gnat_pushdecl): New declarations.
3335         (gnat_init_stmt_group): Likewise.
3336         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
3337         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
3338         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
3339         (gnat_init): Call gnat_init_stmt_group.
3340         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
3341         (gnu_pending_elaboration_list): Deleted.
3342         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
3343         (gigi): Rearrange initialization calls and move some to last above.
3344         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
3345         Delete calls to add_decl_expr; add arg to create_*_decl.
3346         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
3347         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
3348         begin_subprog_body and call it.
3349         Don't push and pop ggc context.
3350         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
3351         (add_stmt): Remove handling of DECL_EXPR from here.
3352         If not in function, mark visited.
3353         (add_decl_expr): Put global at top level.
3354         Check for cases of DECL_INITIAL we have to handle here.
3355         (process_type): Add extra arg to create_type_decl.
3356         (build_unit_elab): Rework to just gimplify.
3357         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
3358         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
3359         (get_pending_elaborations, pending_elaborations_p): Likewise.
3360         (push_pending_elaborations, pop_pending_elaborations): Likewise.
3361         (get_elaboration_location, insert_elaboration_list): Likewise.
3362         (gnat_binding_level): Renamed from ada_binding_level.
3363         (init_gnat_to_gnu): Don't clear pending_elaborations.
3364         (global_bindings_p): Treat as global if no current_binding_level.
3365         (set_current_block_context): New function.
3366         (gnat_pushdecl): Renamed from pushdecl; major rework.
3367         All callers changed.
3368         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
3369         (finish_record_type): Call call pushdecl for stub decl.
3370         (function_nesting_depth): Deleted.
3371         (begin_subprog_body): Delete obsolete code.
3372         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
3373
3374 2004-06-28  Robert Dewar  <dewar@gnat.com>
3375
3376         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3377         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
3378         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
3379         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3380         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
3381
3382         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
3383         deal with problem of inefficient slices on machines with strict
3384         alignment, when the slice is a component of a composite.
3385
3386         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
3387         machines, we need the check there as well.
3388
3389 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
3390
3391         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
3392         determine safe copying direction for overlapping slice assignments
3393         when component is controlled.
3394
3395         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
3396         formal derived type in the actual for a formal package are visible in
3397         the enclosing instance.
3398
3399 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
3400
3401         PR ada/15600
3402         * sem_util.adb (Trace_Components): Diagnose properly an illegal
3403         circularity involving a private type whose completion includes a
3404         self-referential component.
3405         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
3406         renaming or an instantiation from an implicit derived operation.
3407
3408 2004-06-28  Pascal Obry  <obry@gnat.com>
3409
3410         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
3411         DLL.
3412         (Library_File_Name_For): Idem.
3413
3414 2004-06-28  Matthew Gingell  <gingell@gnat.com>
3415
3416         * g-traceb.ads: Add explanatory note on the format of addresses
3417         expected by addr2line.
3418
3419 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
3420
3421         * Makefile.in: Force debugging information on s-tasdeb.adb,
3422         a-except.adb and s-assert.adb needed by the debugger.
3423
3424 2004-06-28  Vincent Celier  <celier@gnat.com>
3425
3426         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
3427         Need_To_Build_Lib.
3428         (Gnatmake): Ditto.
3429
3430         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
3431
3432         * prj.adb: Minor reformatting
3433         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
3434
3435         * prj.ads: Comment updates
3436         Minor reformatting
3437         (Project_Data): Change Flag1 to Need_To_Build_Lib.
3438         Remove Flag2: not used.
3439
3440         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
3441         declaration.
3442
3443         * gnat_ugn.texi: Put a "null;" declaration in one project file example
3444
3445         * gnat_rm.texi: Document Empty declarations "null;".
3446
3447         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
3448         front of the linker options.
3449         (Link_Foreign): Put the global archives and the libraries in front of
3450         the linker options.
3451
3452 2004-06-28  Javier Miranda  <miranda@gnat.com>
3453
3454         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
3455         (RTU_Loaded): Code cleanup
3456         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
3457         withed predefined units.
3458
3459         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
3460         explicitly withed predefined units.
3461         Fix typo in comment
3462
3463         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
3464         explicitly withed predefined units.
3465
3466 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3467
3468         * ada-tree.def (DECL_STMT): Deleted.
3469         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
3470         (DECL_STMT_VAR): Deleted.
3471         * decl.c: add_decl_stmt now add_decl_expr.
3472         * gigi.h: Likewise.
3473         * trans.c: Likewise.
3474         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3475         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
3476         (add_stmt): Only handle padded type here.
3477         (add_stmt_with_node): Allow gnat_node to not be present.
3478         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
3479         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
3480         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
3481         make a SAVE_EXPR for the entire fat pointer.
3482         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
3483         (create_index_type): Make a DECL_EXPR.
3484         (end_subprog_body): Don't call allocate_struct_function here but
3485         do clear cfun.
3486
3487 2004-06-25  Pascal Obry  <obry@gnat.com>
3488
3489         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
3490         Relocatable from Build_Dynamic_Library call.
3491
3492         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
3493         Relocatable are now synonym.
3494
3495         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
3496
3497         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
3498         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
3499         call.
3500
3501         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
3502         Lib_Address and Relocatable.
3503         (Default_DLL_Address): Removed.
3504
3505         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3506         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3507         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
3508         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
3509         (Default_DLL_Address): Removed.
3510
3511         * mlib-tgt-mingw.adb: Ditto.
3512         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
3513
3514         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
3515         the initial thread stack size.
3516
3517         * a-strmap.ads: Move package L to private part as it is not used in
3518         the spec. Found while reading code.
3519
3520 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
3521
3522         * tracebak.c: Introduce support for a GCC infrastructure based
3523         implementation of __gnat_backtrace.
3524
3525         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
3526         any more. Use accessors instead. This eases maintenance and relaxes
3527         some alignment constraints.
3528         (_GNAT_Exception structure): Remove the Ada specific fields
3529         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
3530         a-exexpr.adb.
3531         (is_handled_by, __gnat_eh_personality): Replace component references to
3532         exception structure by use of the new accessors.
3533
3534         * init.c (__gnat_initialize): Adjust comments to match the just
3535         reverted meaning of the -static link-time option.
3536
3537         * adaint.c (convert_addresses): Arrange not to define a stub for
3538         mips-irix any more, as we now want to rely on a real version from a
3539         recent libaddr2line.
3540
3541         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
3542         the personality routine can use them and not have to rely on a C
3543         counterpart of the record anymore. This simplifies maintenance and
3544         relaxes the constraint of having Standard'Maximum_Alignment match
3545         BIGGEST_ALIGNMENT.
3546         Update comments, and add a section on the common header alignment issue.
3547
3548 2004-06-25  Geert Bosch  <bosch@gnat.com>
3549
3550         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
3551         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
3552
3553 2004-06-25  Robert Dewar  <dewar@gnat.com>
3554
3555         * gnat_rm.texi: Fix section on component clauses to indicate that the
3556         restriction on byte boundary placement still applies for bit packed
3557         arrays.
3558         Add comment on stack usage from Initialize_Scalars
3559
3560         * gnat_ugn.texi: Add documentation for -gnatyLnnn
3561
3562         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
3563         limiting nesting level.
3564
3565         * usage.adb: Add line for -gnatyLnnn switch
3566
3567         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
3568         sem_ch13.adb, exp_aggr.adb: Minor reformatting
3569
3570         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
3571         type as well as on the subtype. This corrects a problem in freeze in
3572         setting alignments of atomic types.
3573
3574         * sem_eval.ads: Minor comment typo fixed
3575
3576         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
3577         level.  Minor reformatting.
3578
3579         * fname.adb (Is_Predefined_File_Name): Require a letter after the
3580         minus sign. This means that file names like a--b.adb will not be
3581         considered predefined.
3582
3583         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
3584         record Test new flag and give diagnostic for bad component clause.
3585         (Freeze_Entity): Set alignment of array from component alignment in
3586         cases where this is safe to do.
3587
3588         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
3589         arrays.
3590
3591         * cstand.adb: (Create_Standard): Set alignment of String to 1
3592
3593         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
3594
3595         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
3596         code in the common constrained array cases.
3597
3598         * a-storio.adb: Change implementation to avoid possible alignment
3599         problems on machines requiring strict alignment (data should be moved
3600         as type Buffer, not type Elmt).
3601
3602         * checks.adb (Apply_Array_Size_Check): Improve these checks by
3603         killing the overflow checks which we really do not need (64-bits is
3604         enough).
3605
3606 2004-06-25  Vincent Celier  <celier@gnat.com>
3607
3608         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
3609         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
3610         inconditionally for the main project.
3611         (Recursive_Add_Archives.Add_Archive_Path): New procedure
3612         (Link_Executables.Check_Time_Stamps): New procedure
3613         (Link_Executables.Link_Foreign): New procedure
3614         Changes made to reduce nesting level of this package
3615         (Check): New procedure
3616         (Add_Switches): When not in quiet output, check that a switch is not
3617         the concatenation of several valid switches. If it is, issue a warning.
3618         (Build_Global_Archive): If the global archive is rebuilt, linking need
3619         to be done.
3620         (Compile_Sources): Rebuilding a library archive does not imply
3621         rebuilding the global archive.
3622         (Build_Global_Archive): New procedure
3623         (Build_Library): New name for Build_Archive, now only for library
3624         project
3625         (Check_Archive_Builder): New procedure
3626         (Create_Global_Archive_Dependency_File): New procedure
3627         (Gprmake): Call Build_Global_Archive before linking
3628         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
3629         throughout.
3630         (Scan_Arg): Display the Copyright notice when -v is used
3631
3632         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
3633         for gnatls.
3634
3635         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
3636         COMPILE.
3637         Add new GNAT LIST qualifier /FILES=
3638         Added qualifier /DIRECTORY= to GNAT METRIC
3639         Added qualifier /FILES= to GNAT METRIC
3640         Added qualifier /FILES to GNAT PRETTY
3641
3642         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
3643         to take into account both versions of the switch.
3644
3645         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
3646         always be the last switch to the gcc driver. Disable switch storing so
3647         that switches automatically added by the gcc driver are not put in the
3648         ALI file.
3649
3650         * prj.adb (Project_Empty): Take into account changes in components of
3651         Project_Data.
3652
3653         * prj.ads (Languages_Processed): New enumaration value All_Languages.
3654
3655         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
3656         used. Split Boolean component Ada_Sources_Present in two Boolean
3657         components Ada_Sources_Present and Other_Sources_Present.
3658         Minor reformatting
3659
3660         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
3661         instead of Sources_Present.
3662         (Set_Ada_Paths.Add.Recursive_Add): Ditto
3663
3664         * prj-nmsc.adb: Minor reformatting
3665         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
3666         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
3667         Check_Ada_Naming_Scheme.
3668         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
3669         throughout.
3670
3671         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
3672         In_Limited.
3673         Make sure that all cycles where there is at least one "limited with"
3674         are detected.
3675         (Parse_Single_Project): New Boolean parameter In_Limited
3676
3677         * prj-proc.adb (Recursive_Check): When Process_Languages is
3678         All_Languages, call first Prj.Nmsc.Ada_Check, then
3679         Prj.Nmsc.Other_Languages_Check.
3680
3681         * prj-proc.adb (Process): Use Ada_Sources_Present or
3682         Other_Sources_Present (instead of Sources_Present) depending on
3683         Process_Languages.
3684
3685         * lang-specs.h: Keep -g and -m switches in the same order, and as the
3686         last switches.
3687
3688         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
3689         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
3690         False.
3691         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
3692         False.
3693
3694         * lib.ads (Disable_Switch_Storing): New procedure.
3695
3696         * make.adb: Modifications to reduce nesting level of this package.
3697         (Check_Standard_Library): New procedure
3698         (Gnatmake.Check_Mains): New procedure
3699         (Gnatmake.Create_Binder_Mapping_File): New procedure
3700         (Compile_Sources.Compile): Add switch -gnatez as the last option
3701         (Display): Never display -gnatez
3702
3703         * Makefile.generic:
3704         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
3705
3706         * gnatcmd.adb (Check_Project): New function
3707         (Process_Link): New procedure to reduce nesting depth
3708         (Check_Files): New procedure to reduce the nesting depth.
3709         For GNAT METRIC, include the inherited sources in extending projects.
3710         (GNATCmd): When GNAT LS is invoked with a project file and no files,
3711         add the list of files from the sources of the project file. If this list
3712         is too long, put it in a temp text files and use switch -files=
3713         (Delete_Temp_Config_Files): Delete the temp text file that contains
3714         a list of source for gnatpp or gnatmetric, if one has been created.
3715         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
3716         in the project file is too large, create a temporary text file that
3717         list them and pass it to the tool with "-files=<temp text file>".
3718         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
3719
3720         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
3721         generated file is in not in Ada.
3722
3723         * gnatls.adb: Remove all parameters And_Save that are no longer used.
3724         (Scan_Ls_Arg): Add processing for -files=
3725         (Usage): Add line for -files=
3726
3727         * g-os_lib.adb (On_Windows): New global constant Boolean flag
3728         (Normalize_Pathname): When on Windows and the path starts with a
3729         directory separator, make sure that the resulting path will start with
3730         a drive letter.
3731
3732         * clean.adb (Clean_Archive): New procedure
3733         (Clean_Project): When there is non-Ada code, delete the global archive,
3734         the archive dependency files, the object files and their dependency
3735         files, if they exist.
3736         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
3737
3738 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
3739
3740         * sinfo.ads: Fix typo in comment.
3741
3742         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
3743         the TSS for remote access-to-subprogram types, since these TSS are
3744         always present once the type has been analyzed.
3745         (RAS_E_Dereference): Same.
3746
3747         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
3748         reference raises Bad_Attribute, mark the reference as analyzed so the
3749         node (and any children resulting from rewrites that could have occurred
3750         during the analysis that ultimately failed) is not analyzed again.
3751
3752         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
3753
3754         * exp_dist.adb: Minor comment fix.
3755
3756         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
3757         type is an anonymous access type, no unchecked deallocation of the
3758         allocated object can occur. If the object is controlled, attach it with
3759         a count of 1. This allows attachment to the Global_Final_List, if
3760         no other relevant list is available.
3761         (Get_Allocator_Final_List): For an anonymous access type that is
3762         the type of a discriminant or record component, the corresponding
3763         finalisation list is the one of the scope of the type.
3764
3765 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
3766
3767         * sem_ch3.adb (Replace_Type): When computing the signature of an
3768         inherited subprogram, use the first subtype if the derived type
3769         declaration has no constraint.
3770
3771         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
3772         before applying previous optimization. Minor code cleanup.
3773
3774         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
3775         placed at the beginning of an unpacked record without explicit
3776         alignment, a slice of it will be aligned and does not need a copy when
3777         used as an actual.
3778
3779 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
3780
3781         PR ada/15591
3782         PR ada/15592
3783         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
3784         reference is written with expressions mimicking parameters.
3785
3786 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
3787
3788         PR ada/15589
3789         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
3790         STEP 2a. The constraints of a full type declaration of a derived record
3791         type are checked for conformance with those declared in the
3792         corresponding private extension declaration. The message
3793         "not conformant with previous declaration" is emitted if an error is
3794         detected.
3795
3796 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
3797
3798         * g-traceb.ads: Document the need for -E binder switch in the spec.
3799
3800         * g-trasym.ads: Document the need for -E binder switch in the spec.
3801
3802 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
3803
3804         * sem_prag.adb: Add handling of pragma Detect_Blocking.
3805
3806         * snames.h, snames.ads, snames.adb: Add entry for pragma
3807         Detect_Blocking.
3808
3809         * s-rident.ads: Change reference to pragma Detect_Blocking.
3810
3811         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
3812         system.ads.
3813
3814         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
3815         to indicate whether pragma Detect_Blocking is active.
3816
3817         * par-prag.adb: Add entry for pragma Detect_Blocking.
3818
3819         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
3820         of not handling WITH.
3821         Note that this replaces the previous update which was incorrect.
3822
3823 2004-06-25  Javier Miranda  <miranda@gnat.com>
3824
3825         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
3826         use-clauses to have a clean environment.
3827
3828         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
3829         the installation of the use-clauses to stablish a clean environment in
3830         case of compilation of a separate unit; otherwise the call to
3831         use_one_package is protected by the barrier Applicable_Use.
3832
3833         * sem_ch8.ads (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.
3836         (End_Use_Clauses): Minor comment cleanup.
3837
3838 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
3839
3840         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
3841
3842 2004-06-23  Richard Henderson  <rth@redhat.com>
3843
3844         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
3845
3846 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3847
3848         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
3849         now bool instead of int.
3850         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
3851         * trans.c (gnu_switch_label_stack): New function.
3852         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
3853         elaboration of renamed entity returns.
3854         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
3855         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
3856         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
3857         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
3858         DECL_SIZE_UNIT and simplify variable-sized case.
3859         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3860         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
3861         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
3862         (build_unit_elab): Disable for now.
3863         * utils.c (mark_visited): New function.
3864         (pushdecl): Walk tree to call it for global decl.
3865         (update_pointer_to): Update all variants of pointer and ref types.
3866         Add arg to COMPONENT_REF.
3867         (convert): Likewise.
3868         Move check for converting between variants lower down.
3869         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
3870         (build_allocator): Don't force type of MODIFY_EXPR.
3871         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
3872         put_var_into_stack.
3873
3874 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3875
3876         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
3877         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
3878         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
3879         subprograms.
3880         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
3881         all callers changed.
3882         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
3883         the way that EXIT_STMT finds the loop label.
3884         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
3885         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
3886         (add_stmt): Use annotate_with_locus insted of setting directly.
3887         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
3888         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
3889         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
3890         (build_vms_descriptor): Add extra args to ARRAY_REF.
3891         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
3892         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
3893         New cases.
3894         (build_binary_op): Don't make explicit CONVERT_EXPR.
3895         Add extra rgs to ARRAY_REF.
3896
3897 2004-06-14  Pascal Obry  <obry@gnat.com>
3898
3899         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
3900         Windows.  Fix minor typo.
3901
3902         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
3903         which is now supported on Windows. With this implementation using the
3904         Library Project feature is no different on Windows than on UNIX.
3905
3906 2004-06-14  Vincent Celier  <celier@gnat.com>
3907
3908         * makegpr.adb (Compile_Sources): Nothing to do when there are no
3909         non-Ada sources.
3910
3911         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
3912
3913         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
3914         found, show the project name and the path of the previously parsed
3915         project file.
3916
3917 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
3918
3919         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
3920         array, avoid copying the actual before the call.
3921
3922 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
3923
3924         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
3925         Instead, allocate memory on worst-case alignment assumptions, and then
3926         return an aligned address within the allocated zone.
3927
3928 2004-06-14  Robert Dewar  <dewar@gnat.com>
3929
3930         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
3931         elab entities in predefined units in No_Run_Time_Mode.
3932         (Gen_Adainit_C): Same fix
3933         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
3934         units in No_Run_Time_Mode
3935         (Gen_Elab_Calls_C): Same fix
3936
3937         * symbols-vms-alpha.adb: Minor reformatting
3938
3939         * g-debpoo.ads: Minor reformatting
3940
3941         * lib.adb (In_Same_Extended_Unit): Version working on node id's
3942
3943         * lib.ads (In_Same_Extended_Unit): Version working on node id's
3944
3945         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
3946         working on nodes.
3947
3948         * make.adb: Minor reformatting
3949
3950         * par-ch12.adb: Minor reformatting
3951
3952         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
3953
3954         * prj-strt.adb: Minor reformatting
3955
3956         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
3957         be more general.
3958
3959         * sem_attr.adb: Minor reformatting
3960
3961         * sem_ch7.adb: Minor reformatting
3962
3963         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
3964         for type in the same unit as the object declaration.
3965
3966         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
3967         static string expressions and not just string literals.
3968         Minor reformatting
3969         (Set_Warning): Reset restriction warning flag for restriction pragma
3970         Implement pragma Profile_Warnings
3971         Implement pragma Profile (Restricted)
3972         Give obolescent messages for old restrictions and pragmas
3973
3974         * snames.h, snames.ads, snames.adb: Add new entry for pragma
3975         Profile_Warnings.
3976
3977         * s-rident.ads: Add declarations for restrictions required by profile
3978         Restricted and profile Ravenscar.
3979
3980         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
3981
3982         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
3983         configuration pragmas.
3984
3985 2004-06-11  Vincent Celier  <celier@gnat.com>
3986
3987         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
3988         gnatsym, when symbol policy is Restricted.
3989
3990         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
3991         gnatsym, when symbol policy is Restricted.
3992
3993         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
3994         read the symbol file.
3995         (Finalize): Fail in symbol policy Restricted if a symbol in the original
3996         symbol file is not in the object files. Do not create a new symbol file
3997         when symbol policy is Restricted.
3998
3999         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
4000         in Scng.
4001
4002         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
4003         Restricted.
4004         (Usage): Line for new switch -R
4005
4006         * make.adb (Initialize): When the platform is not VMS, add the
4007         directory where gnatmake is invoked in the front of the path, if
4008         gnatmake is invoked with directory information.  Change the Scan_Args
4009         while loop to a for loop.
4010         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
4011         if Depth is equal or greater than the proposed depth, there is nothing
4012         to do.
4013         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
4014         instead of 0.
4015
4016         * prj.ads: Add new symbol policy Restricted.
4017
4018         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
4019         with the new parameters Check_All_Labels and Case_Location.
4020
4021         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
4022         (Library_Symbol_File needs to be defined).
4023
4024         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
4025         and Case_Location If Check_All_Labels is True, check that all values of
4026         the string type are used, and output warning(s) if they are not.
4027
4028         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
4029         and Case_Location.
4030
4031         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
4032
4033         * gnat_ugn.texi: Update documentation about the library directory in
4034         Library Projects.
4035
4036         * makegpr.adb (Display_Command): In verbose mode, also display the
4037         value of the CPATH env var, when the compiler is gcc.
4038         (Initialize): Change the Scan_Args while loop to a for loop
4039         (Compile_Individual_Sources): Change directory to object directory
4040         before compilations.
4041
4042         * symbols.ads: New symbol policy Restricted.
4043
4044 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
4045
4046         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
4047         is now taken care of internally in the Exception_Propagation package
4048         and does not require clients assistance any more.
4049
4050         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
4051         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
4052         functions. Helpers to maintain a predicate required in the handling of
4053         occurrence transfer between tasks.
4054         This is now handled internally and does not require clients assistance
4055         for the setup/propagate separation anymore.
4056         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
4057         allocation strategy, handle the Setup_And_Not_Propagated predicate and
4058         document.
4059
4060         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
4061         raise_after_setup, now that everything is handled internally within the
4062         setup/propagation engine.
4063
4064 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
4065
4066         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
4067         Add additional conditions for the case of an actual being a simple
4068         name or literal. Improve inlining by preventing the generation
4069         of temporaries with a short lifetime (one use).
4070
4071 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
4072
4073         PR ada/15587
4074
4075         * einfo.ads: Minor comment updates for Has_Completion and
4076         E_Constant list of flags.
4077
4078         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
4079         and constant redeclarations now set the Has_Completion flag of their
4080         defining identifiers.
4081
4082         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
4083         Inspect_Deferred_Constant_Completion.
4084         Used to detect private deferred constants that have not been completed
4085         either by a constant redeclaration or pragma Import. Emits error message
4086         "constant declaration requires initialization expression".
4087
4088         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
4089         completes a deferred constant.
4090
4091 2004-06-11  Geert Bosch  <bosch@gnat.com>
4092
4093         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
4094
4095         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
4096         calculating exponent for scaling denormal numbers.
4097         (Leading_Part): Properly raise Constraint_Error for zero or negative
4098         Adjustment.
4099         (Remainder): Properly raise Constraint_Error for zero divisor.
4100
4101 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
4102
4103         * sem_util.adb: Minor reformatting.
4104
4105         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
4106         dereference when accessing the entry parameter record.
4107         (Check_Array_Type): Always check for possible implicit dereference.
4108         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
4109         Abort if a pointer is still present (denoting that an implicit
4110         dereference was left in the tree by the front-end).
4111
4112         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
4113         dereference when accessing the entry parameter record.
4114         (Check_Array_Type): Always check for possible implicit dereference.
4115         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
4116         Abort if a pointer is still present (denoting that an implicit
4117         dereference was left in the tree by the front-end).
4118
4119 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
4120
4121         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
4122         message, like the compiler itself does. Easier to parse the output.
4123
4124         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
4125
4126         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
4127         be base names, and not includes directories.
4128
4129 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
4130
4131         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
4132         so that dependencies are properly taken into account by make.
4133
4134 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
4135
4136         PR ada/15622
4137         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
4138         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
4139
4140 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
4141
4142         * Makefile.in (install-gnatlib): install target-specific run-time files.
4143
4144         * Make-lang.in: Remove obsolete targets.
4145
4146 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
4147
4148         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
4149         specification, to catch misuses of program unit names.
4150
4151         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
4152         superfluous conversions in an instance.
4153
4154 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
4155
4156         PR ada/15403
4157
4158         * sem_ch12.adb (Save_References): If operator node has been folded to
4159         enumeration literal, associated_node must be discarded.
4160
4161 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
4162
4163         * s-stchop-vxworks.adb: Add required pragma Convention to
4164         Task_Descriptor because it is updated by a C function.
4165
4166 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
4167
4168         PR ada/15568
4169
4170         * Makefile.in: Remove target specific SO_OPT on IRIX
4171
4172 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4173
4174         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
4175         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
4176         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
4177         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
4178         (STMT_STMT, USE_STMT): New statement codes.
4179         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
4180         * ada-tree.h: Reflect above changes.
4181         (struct tree_loop_id): Deleted.
4182         (union lang_tree_node, struct lang_decl, struct lang_type):
4183         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
4184         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
4185         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
4186         (IS_ADA_STMT): New macro.
4187         * decl.c (annotate_decl_with_node): New function.
4188         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
4189         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
4190         Call add_stmt_with_node to do needed assignments.
4191         Add call to update setjmp buffer directly, not via EXPR_STMT.
4192         (maybe_variable): Argment GNAT_NODE deleted.
4193         * gigi.h (maybe_variable): Likewise.
4194         (make_transform, add_stmt_with_node, set_block_for_group): New.
4195         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
4196         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
4197         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
4198         (set_lineno, set_lineno_from_sloc): Likewise.
4199         (record_code_position, insert_code_for): Likewise.
4200         (gnat_poplevel): Now returns void.
4201         (end_subprog_body): Now takes argument.
4202         * misc.c (cgraph.h, tree-inline.h): New includes.
4203         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
4204         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
4205         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
4206         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
4207         (gnat_parse_file): Don't set immediate_size_expand.
4208         Call cgraph functions.
4209         (gnat_expand_expr): Remove most cases.
4210         (record_code_position, insert_code_for): Remove from here.
4211         * trans.c (toplev.h, tree-gimple.h): Now included.
4212         (discard_file_names): Deleted.
4213         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
4214         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
4215         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
4216         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
4217         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
4218         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
4219         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
4220         (set_block_for_group, add_stmt_list): Likewise.
4221         (start_stmt_group): Renamed from start_block_stmt.
4222         (end_stmt_group): Likewise, from end_block_stmt.
4223         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
4224         (gigi): Don't set discard_file_names or call set_lineno.
4225         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
4226         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
4227         Numerous changes throughout to reflect new names and complete
4228         function-at-a-time implementation.
4229         (gnat_expand_stmt): Delete or comment out all cases.
4230         (process_inlined_subprograms): Use add_stmt.
4231         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
4232         call set_lineno; also remove unneeded block handling.
4233         (process_type): Remove unneeded block handling.
4234         (build_unit_elab): Remove calls to deleted functions.
4235         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
4236         (tree-dump.h): Likewise.
4237         (struct ada_binding_level): Add field jmpbuf_decl.
4238         (gnat_define_builtin, gnat_install_builtins): New.
4239         (gnat_gimplify_function, gnat_finalize): Likewise.
4240         (gnat_poplevel): No longer return BLOCK, set it instead.
4241         Remove code dealing with nested functions.
4242         (gnat_init_decl_processing): Also set size_type_node.
4243         Call gnat_install_builtins.
4244         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
4245         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
4246         Remove special-case for "main".
4247         (end_subprog_body): Add arg and rework for tree-ssa.
4248         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
4249         Add case for BOOLEAN_TYPE.
4250         * utils2.c (rtl.h): Now include.
4251         (build_call_raise): Test Debug_Flag_NN directly.
4252         (build_call_alloc_dealloc): Don't use local stack allocation for now.
4253         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
4254         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
4255
4256 2004-06-07  Robert Dewar  <dewar@gnat.com>
4257
4258         * a-direct.ads, einfo.ads: Minor comment updates
4259
4260         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4261         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
4262         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
4263         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
4264         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
4265
4266         * s-interr-sigaction.adb: Remove unreferenced variable
4267         (Attached_Interrupts).  Minor reformatting.
4268         Avoid use of variable I (replace by J).
4269
4270         * par-ch10.adb: Fix text of one error message
4271
4272         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
4273         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
4274         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
4275         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
4276         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
4277         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
4278         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
4279         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4280         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
4281         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
4282         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
4283         2005 support.
4284
4285 2004-06-07  Doug Rupp  <rupp@gnat.com>
4286
4287         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
4288
4289         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
4290
4291         * mlib-tgt-vms-ia64.adb: New file.
4292
4293         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
4294         Add mlib-tgt-vms-ia64.adb
4295         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
4296         Move to alpha specific ifeq section.
4297         Add VMS specific versions of symbols.adb
4298         Renaming of 5q vms files.
4299
4300         * 5qsystem.ads renamed to system-vms_64.ads.
4301
4302 2004-06-07  Vincent Celier  <celier@gnat.com>
4303
4304         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
4305         explain that when a time of day corresponding to the non existing hour
4306         on the day switching to DST is specified, Split may return a different
4307         value for Seconds.
4308
4309         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
4310         to GNAT PRETTY.
4311
4312         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
4313         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
4314
4315         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
4316         to False.
4317         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
4318         the linking options.
4319         (Build_Library.Check_Libs): On VMS, if there is a dependency on
4320         g-trasym.ads, set Gtrasymobj_Needed to True.
4321
4322         * prj-attr.adb: Add new package Metrics for gnatmetric
4323
4324         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
4325         canonical case to take into account files with upper case characters on
4326         Windows.
4327         (Ada_Check): Load the reference symbol file name in the name buffer to
4328         check it, not the symbol file name.
4329
4330         * snames.ads, snames.adb: Add standard name Metrics (name of project
4331         file package for gnatmetric).
4332
4333         * vms_conv.ads: Add Metric to Comment_Type
4334
4335         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
4336
4337         * vms_data.ads: Add qualifiers for GNAT METRIC
4338
4339         * makegpr.adb (Link_Executables): Take into account the switches
4340         specified in package Linker of the main project.
4341
4342 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
4343
4344         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
4345         the index of the last element is Units.Last, not Units.Table'Last
4346         (which is usually not a valid index within the actually allocated
4347         storage for the table).
4348
4349         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
4350         determines whether to generate a call to a checked storage pool
4351         Dereference action.
4352         Generate such a call only for a dereference that either comes from
4353         source, or is the result of rewriting a dereference that comes from
4354         source.
4355
4356 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
4357
4358         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
4359
4360 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
4361
4362         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
4363         file level, elaborate the stride for inner dimensions in alignment
4364         units, not bytes.
4365
4366         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
4367         in a comment.
4368
4369 2004-06-07  Javier Miranda  <miranda@gnat.com>
4370
4371         * exp_ch6.adb: Correct wrong modification in previous patch
4372
4373 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
4374
4375         * g-trasym.ads: Corrected comment to properly reflect level of support
4376         on VMS.
4377
4378 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
4379
4380         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
4381         includes case of a variable referenced on the left hand side of an
4382         assignment, therefore remove redundant code. Variables and prefixes of
4383         indexed or selected components are now marked as referenced on left
4384         hand side. Warnings are now properly emitted when variables or prefixes
4385         are assigned but not read.
4386
4387         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
4388         left hand side referenced variables. Private access types do not
4389         produce the warning "variable ... is assigned but never read".
4390         Add also additional checks to left hand side referenced variables.
4391         Aliased, renamed objects and access types do not produce the warning
4392         "variable ... is assigned but never read" since other entities may read
4393         the memory location.
4394
4395 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
4396
4397         * Makefile.in: In the powerpc/vxworks-specific section, restore
4398         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
4399         by mistake).
4400
4401 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
4402
4403         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
4404         predefined operators.
4405         Removes spurious type errors from g-trasym-vms.adb.
4406
4407         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
4408         distinct from the operator appearing in the source, call appropriate
4409         routine to insert conversions when needed, and complete resolution of
4410         node.
4411         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
4412         interpretations for rewritten right operand.
4413         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
4414         the other operand is overloaded and the context is a type conversion.
4415
4416 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4417
4418         * ada-tree.def (BLOCK_STMT): Now has two operands.
4419         (BREAK_STMT): New.
4420
4421         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
4422
4423         * gigi.h: (gnat_poplevel): Now returns a tree.
4424
4425         * trans.c (end_block_stmt): Add arg; all callers changed.
4426         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
4427         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
4428         (add_stmt): Set TREE_TYPE.
4429         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
4430         (gnat_expand_stmt, case BREAK_STMT): New case.
4431
4432         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
4433
4434 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
4435
4436         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
4437         procedure Set_Stack_Size that is not needed.
4438
4439 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
4440
4441         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
4442         used for gnatpp input file and for the files upon which it depends
4443
4444 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
4445
4446         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
4447
4448 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
4449
4450         * gnatvsn.ads: Bump version numbers appropriately.
4451         Add new build type.
4452
4453 2004-06-07  Pascal Obry  <obry@gnat.com>
4454
4455         * gnat_ugn.texi: Improve comments about imported names and link names
4456         on Windows. Add a note about the requirement to use -k gnatdll's option
4457         when working with a DLL which has stripped stdcall symbols (no @nn
4458         suffix).
4459
4460 2004-05-27  Vincent Celier  <celier@gnat.com>
4461
4462         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
4463         COMMENTS_LAYOUT=UNTOUCHED
4464
4465         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
4466         symbols-vms-alpha.adb
4467
4468 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
4469
4470         * sem.ads: Clarify documentation on checks suppression.
4471
4472         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
4473
4474 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
4475
4476         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
4477         the case of multiple derivations.
4478         (Is_Object_Reference): For a selected component, verify that the prefix
4479         is itself an object and not a value.
4480
4481         * sem_ch12.adb (Same_Instantiated_Constant): New name for
4482         Same_Instantiated_Entity.
4483         (Same_Instantiated_Variable): Subsidiary to
4484         Check_Formal_Package_Instance, to recognize actuals for in-out generic
4485         formals that are obtained from a previous formal package.
4486         (Instantiate_Subprogram_Body): Emit proper error when
4487         generating code and the proper body of a stub is missing.
4488
4489         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
4490         has a universal interpretation, do the disambiguation here.
4491
4492         * exp_ch4.adb (Expand_N_Type_Conversion,
4493         Expand_N_Unchecked_Type_Conversion): Special handling when target type
4494         is Address, to avoid typing anomalies when Address is a visible integer
4495         type.
4496
4497         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
4498         to determine whether a subprogram should not be marked Pure, even when
4499         declared in a pure package.
4500
4501 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
4502
4503         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
4504
4505         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
4506         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
4507         Update the documentation about the Ravenscar profile, following the
4508         definition found in AI-249.
4509
4510         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
4511         setting the Profile (Ravenscar). This must be done in addition to
4512         setting the required restrictions.
4513
4514         * rtsfind.ads: Add the set of operations defined in package
4515         Ada.Interrupts.
4516
4517         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
4518         restriction.
4519
4520 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
4521
4522         lang-specs.h: Always require -c or -S and always redirect to /dev/null
4523         if -gnatc or -gnats is passed.
4524
4525 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
4526
4527         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
4528         a significant reference. Warnings are now properly emitted when a
4529         discriminated type is not referenced.
4530
4531         * lib-xref.adb (Generate_Reference): A deferred constant completion,
4532         record representation clause or record type discriminant does not
4533         produce a reference to its corresponding entity. Warnings are now
4534         properly emitted when deferred constants and record types are not
4535         referenced.
4536
4537 2004-05-27  Geert Bosch  <bosch@gnat.com>
4538
4539         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
4540         Fixes ACATS Annex G tests.
4541
4542 2004-05-27  Robert Dewar  <dewar@gnat.com>
4543
4544         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
4545         handling WITH
4546
4547 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
4548
4549         * s-interr.adb (Server_Task): Take into account case of early return
4550         from sigwait under e.g. linux.
4551
4552 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
4553
4554         * gnat_ugn.texi: Add description for the new gnatpp options:
4555          -rnb - replace the original source without creating its backup copy
4556          -c0 - do not format comments
4557
4558 2004-05-24  Geert Bosch  <bosch@gnat.com>
4559
4560         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
4561         with 192 bits of precision, sufficient to reduce a double-extended
4562         arguments X with a maximum relative error of T'Machine_Epsilon, for X
4563         in -2.0**32 .. 2.0**32.
4564         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
4565         reduction by the processor, which only uses a 68-bit approximation of
4566         Pi.
4567         (Tan): Always reduce arguments and compute function either using
4568         the processor's fptan instruction, or by dividing sin and cos as needed.
4569
4570 2004-05-24  Doug Rupp  <rupp@gnat.com>
4571
4572         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
4573         gcc error on 32/64 bit VMS.
4574
4575 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
4576
4577         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
4578         since this is what we get for stack overflows although not documented
4579         as such.
4580         Document the issues which may require adjustments to our signal
4581         handlers.
4582
4583 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
4584
4585         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
4586         enclosing dynamic scope if the instantiation is within a generic unit.
4587
4588 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
4589
4590         * exp_dbug.ads: Fix typo.
4591
4592         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
4593         Rename it to its proper name: system-linux-ia64.ads
4594         (stamp-gnatlib1): Remove extra target specific run time files when
4595         setting up the rts directory.
4596
4597 2004-05-24  Javier Miranda  <miranda@gnat.com>
4598
4599         * einfo.ads, einfo.adb (Limited_Views): Removed.
4600         (Limited_View): New attribute that replaces the previous one. It is
4601         now a bona fide package with the limited-view list through the
4602         first_entity and first_private attributes.
4603
4604         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
4605         limited-private-with clause.
4606         (Install_Limited_Withed_Unit): Install the private declarations of a
4607         limited-private-withed package. Update the installation of the shadow
4608         entities according to the new structure (see Build_Limited_Views)
4609         (Build_Limited_Views): Replace the previous implementation of the
4610         limited view by a package entity that references the first shadow
4611         entity plus the first shadow private entity (required for limited-
4612         private-with clause)
4613         (New_Internal_Shadow_Entity): Code cleanup.
4614         (Remove_Limited_With_Clause): Update the implementation to undo the
4615         new work carried out by Build_Limited_Views.
4616         (Build_Chain): Complete documentation.
4617         Replace Ada0Y by Ada 0Y in comments
4618         Minor reformating
4619
4620         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
4621         types the level of accessibility depends on the enclosing type
4622         declaration.
4623
4624         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
4625         entities. Complete documentation of previous change.
4626
4627 2004-05-24  Robert Dewar  <dewar@gnat.com>
4628
4629         * namet.adb: Minor reformatting
4630         Avoid use of name I (replace by J)
4631         Minor code restructuring
4632
4633         * sem_ch6.adb: Minor reformatting
4634
4635         * lib-writ.adb: Do not set restriction as active if this is a
4636         Restriction_Warning case.
4637
4638         * sem_prag.adb: Reset restriction warning flag if real pragma
4639         restriction encountered.
4640
4641         * s-htable.adb: Minor reformatting
4642         Change rotate count to 3 in Hash (improves hash for small strings)
4643
4644         * 5qsystem.ads: Add comments for type Address (no literals allowed).
4645
4646         * gnat_ugn.texi: Add new section of documentation "Code Generation
4647         Control", which describes the use of -m switches.
4648
4649 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
4650
4651         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
4652         through the DECL_INITIAL for renamed variables.
4653
4654 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
4655
4656         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
4657
4658 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
4659
4660         * exp_dbug.ads: Correct comments concerning handling of overloading,
4661         since we no longer use $ anymore.
4662
4663 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
4664
4665         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
4666         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
4667         with illegal subunits.
4668
4669 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
4670
4671         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
4672         body with front-end inlining enabled, check whether an inline pragma
4673         appears immediately after the body and applies to it.
4674
4675         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
4676         enabled and the pragma appears after the body of the subprogram.
4677
4678 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4679
4680         Part of function-at-a-time conversion
4681
4682         * misc.c (adjust_decl_rtl): Deleted.
4683         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
4684         Define.
4685
4686         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
4687         (add_decl_stmt, add_stmt, block_has_vars): New functions.
4688         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
4689
4690         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
4691         when making a decl.
4692         (gnat_to_gnu_entity): Likewise.
4693         Use add_stmt to update setjmp buffer.
4694         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
4695         flush_addressof.
4696         No longer call adjust_decl_rtl.
4697         (DECL_INIT_BY_ASSIGN_P): New macro.
4698         (DECL_STMT_VAR): Likewise.
4699
4700         * trans.c (gigi): Call start_block_stmt to make the outermost
4701         BLOCK_STMT.
4702         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
4703         Call start_block_stmt and end_block_stmt temporarily.
4704         Use gnat_expand_stmt instead of expand_expr_stmt.
4705         (add_decl_stmt): New function.
4706         (tree_transform): Call it.
4707         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
4708         (end_block_stmt): Set type and NULL_STMT.
4709         (gnat_expand_stmt): Make recursize call instead of calling
4710         expand_expr_stmt.
4711         (gnat_expand_stmt, case DECL_STMT): New case.
4712         (set_lineno_from_sloc): Do nothing if global.
4713         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
4714         (start_block_stmt, add_stmt, end_block_stmt): New functions.
4715         (build_block_stmt): Call them.
4716         (gnat_to_code): Don't expand NULL_STMT.
4717         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
4718         args.
4719         (tree_transform): Likewise.
4720         (tree_transform, case N_Null_Statement): Return NULL_STMT.
4721         (gnat_expand_stmt, case NULL_STMT): New case.
4722         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
4723         IF_STMT_TRUE.
4724
4725         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
4726         TREE_ADDRESSABLE.
4727
4728         * utils.c (create_var_decl): Do not call expand_decl or
4729         expand_decl_init.
4730         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
4731         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
4732         here.
4733         (struct e_stack): Add chain_next to GTY.
4734         (struct binding_level): Deleted.
4735         (struct ada_binding_level): New struct.
4736         (free_block_chain): New.
4737         (global_binding_level, clear_binding_level): Deleted.
4738         (global_bindings_p): Rework to see if no chain.
4739         (kept_level_p, set_block): Deleted.
4740         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
4741         new data structure and work directly on BLOCK node.
4742         (gnat_poplevel): Similarly.
4743         (get_decls): Look at BLOCK_VARS.
4744         (insert_block): Work directly on BLOCK node.
4745         (block_has_var): New function.
4746         (pushdecl): Rework for new binding structures.
4747         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
4748         poplevel.
4749         (build_subprog_body): Likewise.
4750         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
4751
4752         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
4753
4754         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
4755         (DECL_STMT_VAR): Likewise.
4756
4757 2004-05-17  Robert Dewar  <dewar@gnat.com>
4758
4759         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
4760         procedure
4761
4762         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
4763         of restriction synonyums by using
4764         Restrict.Process_Restriction_Synonyms.
4765
4766         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
4767
4768         * s-restri.ads (Tasking_Allowed): Correct missing comment
4769
4770         * s-rident.ads: Add entries for restriction synonyms
4771
4772         * ali.adb: Fix some problems with badly formatted ALI files that can
4773         result in infinite loops.
4774
4775         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
4776         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
4777         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
4778         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
4779         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
4780         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
4781         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
4782         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
4783         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
4784         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
4785         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
4786         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
4787         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
4788         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
4789         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
4790         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
4791         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
4792         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4793         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
4794         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
4795         to Task_Id (minor cleanup).
4796
4797 2004-05-17  Vincent Celier  <celier@gnat.com>
4798
4799         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
4800         directory separator.
4801
4802         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
4803         project being extended, if Languages is not declared in extending
4804         project.
4805
4806 2004-05-17  Javier Miranda  <miranda@gnat.com>
4807
4808         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
4809         limited view of a visible sibling.
4810
4811 2004-05-14  Robert Dewar  <dewar@gnat.com>
4812
4813         * gnat_ugn.texi: Minor change to -gnatS documentation
4814
4815         * sprint.adb: Remove some instances of Assert (False) and for this
4816         purpose replace them by output of a ??? string.
4817
4818         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
4819         Assert (False).
4820
4821         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
4822         flag processing. This was suppressing required dependencies in
4823         No_Run_Time mode and is not needed since the binder does not generate
4824         references for things in libgnat anyway.
4825
4826         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
4827         warning.
4828
4829 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
4830
4831         * gnat_ugn.texi: Document AIX-specific issue with initialization of
4832         resolver library.
4833
4834         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
4835         action for the case of an actual parameter in an init proc call.
4836
4837 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
4838
4839         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
4840         subtype, check visible entities in base type.
4841
4842         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
4843         actions if the object is a renaming.
4844
4845         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
4846         Check_Formal_Package_Instance, to determine more precisely when the
4847         formal and the actual denote the same entity.
4848
4849 2004-05-14  Javier Miranda  <miranda@gnat.com>
4850
4851         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
4852
4853         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
4854         corresponding to a private_with must be removed from visibility; it
4855         will be made visible later, just before we analyze the private part of
4856         the package.
4857         (Check_Private_Child_Unit): Allow private_with clauses in public
4858         siblings.
4859         (Install_Siblings): Make visible the private entities of private-withed
4860         siblings.
4861         (Install_Withed_Unit): Do not install the private withed unit if we
4862         are compiling a package declaration and the Private_With_OK flag was
4863         not set by the caller. These declarations will be installed later,
4864         just before we analyze the private part of the package.
4865
4866         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
4867         during the evaluation of the expression that initializes the object,
4868         decorate it with the expected type to avoid cascade errors.
4869         Code cleanup.
4870
4871         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
4872         subprogram we have to install the private_with clauses after its
4873         specification has been analyzed (as documented in AI-262.TXT).
4874
4875         * sem_ch8.adb (Has_Private_With): New function. Determines if the
4876         current compilation unit has a private with on a given entity.
4877         (Find_Direct_Name): Detect the Beaujolais problem described in
4878         AI-262.TXT
4879
4880         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
4881         provides the functionality of the function Is_Ancestor that was
4882         previously available in sem_ch10. It has been renamed to avoid
4883         overloading.
4884
4885         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
4886
4887 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4888
4889         * utils.c (build_vms_descriptor): Use SImode pointers.
4890
4891 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
4892
4893         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
4894
4895 2004-05-14  GNAT Script  <nobody@gnat.com>
4896
4897         * Make-lang.in: Makefile automatically updated
4898
4899 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
4900
4901         Renaming of target specific files for clarity
4902
4903         * Makefile.in: Rename GNAT target specific files.
4904
4905         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
4906         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
4907         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
4908         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
4909         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
4910         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
4911         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
4912         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
4913         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
4914         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
4915         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
4916         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
4917         51osinte.adb, 51osinte.ads, 51system.ads,
4918         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
4919         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
4920         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
4921         56tpopsp.adb, 57system.ads, 58system.ads,
4922         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
4923         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
4924         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
4925         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
4926         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
4927         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
4928         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
4929         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
4930         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
4931         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
4932         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
4933         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
4934         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
4935         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
4936         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
4937         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
4938         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
4939         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
4940         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
4941         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
4942         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
4943         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
4944         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
4945         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
4946         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
4947         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
4948         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
4949         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
4950         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
4951         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
4952         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
4953         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
4954         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
4955         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
4956         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
4957         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
4958         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
4959         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
4960         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
4961         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
4962
4963         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
4964         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
4965         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
4966         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
4967         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
4968         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
4969         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
4970         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
4971         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
4972         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
4973         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
4974         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
4975         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
4976         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
4977         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
4978         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
4979         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
4980         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
4981         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
4982         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
4983         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4984         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
4985         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
4986         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
4987         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
4988         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
4989         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
4990         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
4991         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
4992         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
4993         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
4994         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
4995         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
4996         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
4997         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
4998         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
4999         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
5000         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
5001         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
5002         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
5003         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
5004         s-osinte-vms.ads, s-osinte-vxworks.adb,
5005         s-osinte-vxworks.ads, s-osprim-mingw.adb,
5006         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
5007         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
5008         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
5009         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
5010         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
5011         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
5012         s-stchop-vxworks.adb, s-taprop-dummy.adb,
5013         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
5014         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
5015         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
5016         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5017         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
5018         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
5019         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
5020         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
5021         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
5022         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
5023         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
5024         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
5025         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
5026         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
5027         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
5028         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
5029         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
5030         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
5031         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
5032         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
5033         system-irix-o32.ads, system-linux-x86_64.ads,
5034         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
5035         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
5036         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
5037         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
5038         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
5039         system-vxworks-mips.ads, system-vxworks-ppc.ads,
5040         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
5041         above.
5042
5043 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
5044
5045         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
5046
5047 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
5048
5049         Merge from tree-ssa-20020619-branch.
5050
5051         * config-lang.in (boot_language, build_by_default): Set
5052         to no.
5053         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
5054         (max_size): Add static chain op for call_expr.
5055
5056 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
5057
5058         PR target/15331
5059         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
5060
5061 2004-05-11  Roger Sayle  <roger@eyesopen.com>
5062
5063         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
5064         COND_EXPR.
5065
5066 2004-05-10  Doug Rupp  <rupp@gnat.com>
5067
5068         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
5069         system.aux_dec.
5070
5071         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
5072
5073         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
5074
5075         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
5076         Fixes undefined symbols in IA64 gnatlib.
5077
5078         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
5079
5080         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
5081         Short_Address). This will be moved to system.auxdec.
5082
5083 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
5084
5085         * sem_util.adb: Replace test for presence of a node that is always
5086         present with a call to Discard_Node.
5087
5088         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
5089         Analyze on the library unit node after generation of distribution stub
5090         constructs.  The call was a no-op because Unit_Node has already been
5091         Analyzed, and the tree fragments for the distribution stubs are
5092         analyzed as they are inserted in Exp_Dist.
5093         Update comment regarding to distribution stubs to reflect that we
5094         do not generate stub in separate files anymore.
5095
5096         * einfo.ads: Clarify the fact that a tagged private type has the
5097         E_Record_Type_With_Private Ekind.
5098
5099         * erroutc.adb: Minor reformatting
5100
5101         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
5102         values if line length is increased using -gnatyM (noticed during code
5103         reading).
5104
5105         * eval_fat.adb: Minor reformatting
5106         Put spaces around exponentiation operator
5107
5108 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
5109
5110         PR ada/15005
5111         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
5112         has been rewritten as an explicit dereference, retrieve type of
5113         original node to check for possibly unconstrained record type.
5114
5115 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
5116
5117         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
5118         overriding, use the operation of the parent unconditionally.
5119
5120         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
5121         operation when either operand is a literal, to avoid further
5122         ambiguities.
5123
5124         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
5125         overridden by a previous explicit declaration, mark the previous entity
5126         as overriding.
5127
5128         * sem_disp.adb (Check_Dispatching_Operation): New predicate
5129         Is_Visibly_Controlled, to determine whether a declaration of a
5130         primitive control operation for a derived type overrides an inherited
5131         one. Add warning if the explicit declaration does not override.
5132
5133 2004-05-10  Vincent Celier  <celier@gnat.com>
5134
5135         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
5136         some cases when the sources are no longer present.
5137
5138         * make.adb (Collect_Arguments): Fail if an external source, not part
5139         of any project need to be compiled, when switch -x has not been
5140         specified.
5141
5142         * makeusg.adb: Document new switch -x
5143
5144         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
5145         defaulted to False.
5146
5147         * switch-m.adb (Scan_Make_Switches): New switch -x
5148
5149         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
5150         gnatmake switch -x.
5151
5152         * gnat_ugn.texi: Document new gnatmake switch -x
5153
5154 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
5155
5156         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
5157
5158         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
5159         (process_attributes): Likewise.
5160
5161 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
5162
5163         * s-inmaop.ads: Fix spelling mistake in one of the comments.
5164
5165 2004-05-10  Robert Dewar  <dewar@gnat.com>
5166
5167         * gnat_ugn.texi: Document that for config pragma files, the maximum
5168         line length is always 32767.
5169
5170         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
5171         literals is now allowed.
5172
5173         * gnat-style.texi: Remove statement about splitting long lines before
5174         an operator rather than after, since we do not follow this rule at all.
5175         Clarify rule (really lack of rule) for spaces around exponentiation
5176
5177         * sem_elim.adb: Allow concatenation of string literals as well as a
5178         single string literal for pragma arguments.
5179
5180         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
5181
5182         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
5183         written for append case.
5184
5185         * frontend.adb: Changes to avoid checking max line length in config
5186         pragma files.
5187
5188         * g-os_lib.ads: Minor reformatting
5189
5190         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
5191         wrong in any case. Instead use standard value. Noticed during code
5192         reading.
5193
5194         * opt.ads (Max_Line_Length): New field, used to implement removal of
5195         limitation on length of lines when scanning config pragma files.
5196
5197         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
5198         makeutl.ads, makeutl.adb: Minor reformatting
5199
5200         * scn.adb: Do not check line length while scanning config pragma files
5201         Do not check line length while scanning out license information
5202
5203         * scng.adb: Changes to avoid line length checks while parsing config
5204         pragma files.
5205
5206 2004-05-10  GNAT Script  <nobody@gnat.com>
5207
5208         * Make-lang.in: Makefile automatically updated
5209
5210 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
5211
5212         * osint.adb (Find_Program_Name): Fix handling of VMS version
5213         number.
5214
5215 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
5216
5217         * g-os_lib.ads (Invalid_Time): New constant
5218
5219         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
5220         return OS_Time instead of time_t to match what is imported by Ada.
5221         Now return -1 if the file doesn't exist, instead of a random value
5222
5223 2004-05-05  Robert Dewar  <dewar@gnat.com>
5224
5225         * usage.adb: Add line for -gnatR?s switch
5226
5227         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
5228
5229         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
5230         and for Match (Data_First, Data_last)
5231
5232         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
5233         written when we are dealing with multi-unit files.
5234
5235 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
5236
5237         * Makefile.in: Remove unused targets and variables.
5238
5239 2004-05-05  Vincent Celier  <celier@gnat.com>
5240
5241         * switch-m.adb: New gnatmake switch -eI
5242
5243         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
5244         of new gnatmake switch -eInnn.
5245
5246         * makegpr.adb: Take into account new parameters Index and Src_Index in
5247         Prj.Util.
5248
5249         * clean.adb: Implement support for multi-unit sources, including new
5250         switch -i.
5251
5252         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
5253         Src_Index.
5254
5255         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
5256         (Extract_From_Q): New out parameter Index
5257         (Mark, Is_Marked): Subprograms moved to Makeutl
5258         (Switches_Of): New parameter Source_Index
5259         (Add_Switch): New parameter Index
5260         (Check): New parameter Source_Index
5261         (Collect_Arguments): New parameter Source_Index
5262         (Collect_Arguments_And_Compile): New parameter Source_Index
5263         (Compile): New parameter Source_Index
5264         Put subprograms in alphabetical order
5265         Add support for multi-source sources, including in project files.
5266
5267         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
5268         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
5269         Make.
5270
5271         * makeusg.adb: New gnatmake switch -eInnn
5272
5273         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
5274         Prj.Util.Value_Of.
5275
5276         * opt.ads (Main_Index): New variable, defaulted to 0.
5277
5278         * osint.ads, osinte.adb (Add_File): New parameter Index
5279         (Current_Source_Index): New function
5280
5281         * prj.adb: Take into account new components Index and Src_Index
5282
5283         * prj.ads (String_Element): New component Index
5284         (Variable_Value): New component Index
5285         (Array_Element): New component Src_Index
5286
5287         * prj-attr.adb: Indicate that optional index may be specified for
5288         attributes Main, Executable, Spec, Body and some of Switches.
5289
5290         * prj-attr.ads (Attribute_Kind): New values for optional indexes
5291         (Attribute_Record): New component Optional_Index
5292
5293         * prj-com.ads (File_Name_Data): New component Index
5294
5295         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
5296
5297         * prj-env.adb (Put): Output optional index
5298
5299         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
5300         attributes Spec and Body.
5301
5302         * prj-nmsc.adb: Process optional indexes
5303
5304         * prj-pp.adb: Ouput "at" for optional indexes
5305
5306         * prj-proc.adb: Take into account optional indexes
5307
5308         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
5309         Optional_Index. For string literal,
5310         process optional index when Optional_Index is True.
5311         (Parse_Expresion): New Boolean parameter Optional_Index
5312
5313         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
5314         (Set_Source_Index_Of): New procedure
5315
5316         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
5317         index.
5318
5319         * prj-util.ads (Executable_Of): New parameter Index
5320         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
5321         New parameter Src_Index, defaulted to 0.
5322
5323 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
5324
5325         PR ada/15257
5326         * sem_ch3.adb (Access_Definition): If this is an access parameter
5327         whose designated type is imported through a limited_with clause, do
5328         not add the enclosing subprogram to the list of private dependents of
5329         the type.
5330
5331 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
5332
5333         PR ada/15258
5334         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
5335         a limited_with clause, and the other is its non-limited view.
5336
5337 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
5338
5339         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
5340
5341         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
5342         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
5343         Stand.Boolean_Literals to produce references to entities
5344         Standard_False and Standard_True from compile-time computed boolean
5345         values.
5346
5347         * stand.ads (Boolean_Literals): New variable, provides the entity
5348         values for False and True, for use by the expander.
5349
5350 2004-05-05  Doug Rupp  <rupp@gnat.com>
5351
5352         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
5353         5vinmaop.adb: Unchecked convert Short_Address vice Address
5354
5355         * adaint.c, raise.c: Caste CRTL function return value
5356         to avoid gcc error on 32/64 bit IVMS.
5357
5358         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
5359         target = IA64/VMS.
5360
5361         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
5362
5363         * 5qsystem.ads (Address): Declare as Long_Integer
5364         (Short_Address): Declare as 32 bit subtype of Address
5365         Declare  abstract address operations to avoid gratuitous ambiguities.
5366
5367 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
5368
5369         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
5370         instead of the old Boolean_Entry_Barriers.
5371         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
5372
5373 2004-05-05  GNAT Script  <nobody@gnat.com>
5374
5375         * Make-lang.in: Makefile automatically updated
5376
5377 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
5378
5379         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
5380
5381 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
5382
5383         PR ada/15152
5384
5385         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
5386         alone. Replacing object references by literals is inappropriate in a
5387         so low level context.
5388
5389 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
5390
5391         * a-exexpr.adb: Add comments
5392
5393 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
5394
5395         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
5396         declare the Ancestor_Tags array in Type_Specific_Data with a small size
5397         without risking a bounds check error when accessing one of its
5398         components.
5399         (Type_Specific_Data): Define Ancestor_Tags as a small array.
5400         This prevents us from hitting a limitation during the debug info
5401         generation when using stabs.
5402
5403         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
5404         small array.
5405         This prevents us from hitting a limitation during the debug info
5406         generation when using stabs.
5407
5408 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
5409
5410         lang-specs.h: Remove -gnatz* from specs.
5411
5412 2004-05-03  Vincent Celier  <celier@gnat.com>
5413
5414         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
5415
5416         * Make-lang.in, Makefile.in: Add gprmake
5417
5418 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
5419
5420         * sem_aggr.adb: Fix typo in comment.
5421
5422 2004-05-03  Robert Dewar  <dewar@gnat.com>
5423
5424         * make.adb: Minor reformatting
5425
5426         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
5427
5428         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
5429         so that it works when address is not a private type.
5430
5431         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
5432         properly with rewritten unchecked conversions. This prevents
5433         order-of-elaboration issues that can otherwise arise.
5434         (Minimum_Size): Don't check size of access types under VMS
5435
5436         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
5437         interpretations of integer literals as type System.Address.
5438
5439         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
5440         (Is_Descendent_Of): New function
5441
5442 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
5443
5444         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5445         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
5446         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
5447
5448         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
5449         of the old Max_Entry_Queue_Depth.
5450
5451         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5452         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
5453         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
5454
5455         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
5456         New entry for proper handling of Max_Entry_Queue_Depth.
5457         New entry for proper handling of No_Dynamic_Interrupts.
5458
5459         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
5460         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5461         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
5462         the GNAT specific restriction Max_Entry_Queue_Depth.
5463         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
5464         the GNAT specific restriction No_Dynamic_Interrupts.
5465
5466         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
5467         instead of the old Boolean_Entry_Barriers.
5468         Use the new restriction No_Dynamic_Attachment instead of the old
5469         No_Dynamic_Interrupts.
5470
5471         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
5472         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5473
5474         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
5475         of the old Max_Entry_Queue_Depth.
5476
5477 2004-05-03  GNAT Script  <nobody@gnat.com>
5478
5479         * Make-lang.in: Makefile automatically updated
5480
5481 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
5482
5483         * checks.adb (Enable_Range_Check): If the prefix of an index component
5484         is an access to an unconstrained array, perform check unconditionally.
5485
5486 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5487
5488         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
5489         Component_Clause.
5490
5491 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
5492
5493         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
5494         alternate stack setting. There was no support for the tasking cases
5495         and the changes eventually caused a number of side-effect failures in
5496         the non-tasking case too.
5497
5498 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
5499
5500         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
5501         -gnats is passed.
5502
5503 2004-04-29  Vincent Celier  <celier@gnat.com>
5504
5505         * make.adb (Gnatmake): Increase max size of argument array for
5506         gnatbind for the potential addition of -F.
5507         If there are Stand-Alone Library projects, invoke gnatbind with -F to
5508         be sure that elaboration flags will be checked.
5509
5510         * switch-c.adb: Correct call to Scan_Pos for -gnateI
5511
5512 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
5513
5514         * sem_warn.adb (Check_References): Move '<access-variable> may be
5515         null' warning out of under Warn_On_No_Value_Assigned.
5516
5517 2004-04-29  Ed Falis  <falis@gnat.com>
5518
5519         * gnat_ugn.texi: Fixed texi error
5520
5521 2004-04-29  Robert Dewar  <dewar@gnat.com>
5522
5523         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
5524         abstract operations if they come from predefined files.
5525
5526         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
5527         Dynamic, not RM).
5528
5529         * s-addope.adb: Correct obvious error in mod function
5530
5531 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
5532
5533         * Makefile.in: Add target pairs for powerpc darwin*
5534         tasking support.
5535
5536         * a-intnam-darwin.ads, s-osinte-darwin.adb,
5537         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
5538
5539 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5540
5541         * Makefile.in: Add target macro definitions for s390*-linux*.
5542         * system-linux-s390.ads: New file.
5543         * system-linux-s390x.ads: New file.
5544
5545 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5546
5547         * gnat_ugn.texi: Correct argument to @setfilename.
5548
5549 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5550
5551         * a-exexpr.adb (Unwind_Word): New data type.
5552         (Unwind_Exception): Use it as type of Private1 and Private2.
5553
5554         * raise.c (db_action_for): Fix debug printf.
5555
5556 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
5557
5558         * a-wtmoio.ads: Formal type must be a modular type, not a signed
5559         integer type.
5560
5561 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5562
5563         * decl.c (gnat_to_gnu_entity, case object): Call
5564         __builtin_update_setjmp_buf.
5565
5566         * gigi.h (update_setjmp_buf): Deleted.
5567         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
5568
5569         * misc.c: (update_setjmp_buf): Deleted.
5570
5571         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
5572         around block of RTL.
5573
5574         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
5575
5576 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
5577
5578         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
5579         subprogram for which no pragma All_Calls_Remote applies, store the
5580         address of the real subprogram in the underlying record type, so local
5581         dereferences do not go through the PCS.
5582
5583 2004-04-26  Robert Dewar  <dewar@gnat.com>
5584
5585         * i-c.ads: Add some type qualifications to avoid ambiguities when
5586         compiling with s-auxdec.ads and a non-private address type.
5587
5588 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
5589
5590         * Makefile.rtl: Fix error in previous check-in:
5591         Add s-addope.o to non tasking object list (rather than tasking object
5592         list).
5593
5594 2004-04-26  Javier Miranda  <miranda@gnat.com>
5595
5596         * sem_aggr.adb: Fix typo in comments
5597         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
5598         Required to check the null-exclusion attribute.
5599
5600         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
5601         case of anonymous access types in record and array components. For a
5602         component definition the level is the same of the enclosing composite
5603         type.
5604
5605         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
5606         that are anonymous access types the level of accessibility depends on
5607         the enclosing type declaration. In order to have this information, set
5608         the scope of the anonymous access type to the enclosing record type
5609         declaration.
5610         (Array_Type_Declaration): In case of components that are anonymous
5611         access types the level of accessibility depends on the enclosing type
5612         declaration. In order to have this information, set the scope of the
5613         anonymous access type to the enclosing array type declaration.
5614
5615         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
5616         access type.
5617
5618         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
5619         renaming of anonymous access-to-constant types allowed if and only if
5620         the renamed object is access-to-constant.
5621
5622         * sem_util.adb (Type_Access_Level): In case of anonymous access types
5623         that are component_definition or discriminants of a nonlimited type,
5624         the level is the same as that of the enclosing component type.
5625
5626 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
5627
5628         * sem_elim.adb: Some minor code reorganization from code reading. Fix
5629         misprint in the function name (File_Name_Match).
5630
5631 2004-04-23  Laurent GUERBY <laurent@guerby.net>
5632
5633         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5634         install.
5635
5636 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5637
5638         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
5639
5640 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
5641
5642         * adaint.c (__gnat_try_lock): No longer requires that the parent
5643         directory be writable, the directory itself is enough.
5644         (gnat_is_absolute_path): Change profile, so that the call from
5645         GNAT.OS_Lib can be made more efficient.
5646
5647         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
5648         from GNAT.OS_Lib can be made more efficient.
5649
5650         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
5651         one copy of the file name. Found by code reading.
5652
5653 2004-04-23  Vincent Celier  <celier@gnat.com>
5654
5655         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
5656         Correct documentation on gnatmake switches transmitted to the compiler
5657
5658         * ali.ads: Minor comment fix
5659
5660 2004-04-23  Javier Miranda  <miranda@gnat.com>
5661
5662         * sem_ch6.adb: (Confirming Types): Code cleanup
5663
5664         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
5665         subprogram types: E_Anonymous_Access_Subprogram_Type and
5666         E_Anonymous_Access_Protected_Subprogram_Type.
5667
5668 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
5669
5670         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5671         whether a pragma All_Calls_Remote applies to the subprogram on which
5672         'Access is taken.
5673         No functional change is introduced by this revision; the new parameter
5674         will be used to allow calls to local RCI subprograms to be optimized
5675         to not use the PCS in the case where no pragma All_Calls_Remote applies,
5676         as is already done in the PolyORB implementation of the DSA.
5677
5678         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5679         whether a pragma All_Calls_Remote applies to the subprogram on which
5680         'Access is taken.
5681         No functional change is introduced by this revision; the new parameter
5682         will be used to allow calls to local RCI subprograms to be optimized
5683         to not use the PCS in the case where no pragma All_Calls_Remote applies,
5684         as is already done in the PolyORB implementation of the DSA.
5685
5686 2004-04-23  Robert Dewar  <dewar@gnat.com>
5687
5688         * Makefile.rtl: Add entry for s-addope.o in run time library list
5689         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
5690         * s-addope.ads, s-addope.adb: New files.
5691
5692         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
5693         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
5694         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
5695         System.Address to be non-private and signed.
5696
5697         * sem_elim.adb: Minor reformatting (fairly extensive)
5698         Some minor code reorganization from code reading
5699         Add a couple of ??? comments
5700
5701 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5702
5703         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
5704         (tree_transform, case N_If_Statement): Remove non-determinism.
5705
5706         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
5707
5708 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
5709
5710         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
5711         Eliminate' section.
5712
5713         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
5714         no longer used as a parameter name for Eliminate pragma).
5715
5716 2004-04-22  Laurent GUERBY <laurent@guerby.net>
5717
5718         PR optimization/14984
5719         PR optimization/14985
5720         * trans.c (gigi): Fix non determinism leading to bootstrap
5721         comparison failures.
5722
5723 2004-04-21  Pascal Obry  <obry@gnat.com>
5724
5725         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
5726         passed to spawnvp() to properly handle program pathname with spaces on
5727         Win32.
5728
5729 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
5730
5731         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
5732         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
5733         unlocked in case of exceptions.
5734
5735 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
5736
5737         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
5738         This function does not exist anymore.
5739
5740 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
5741
5742         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
5743
5744         * link.c: Move variables to the __gnat name space.
5745
5746         * Makefile.in: list link.o explicitly when needed.
5747
5748         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
5749
5750 2004-04-21  Javier Miranda  <miranda@gnat.com>
5751
5752         * einfo.adb (Original_Access_Type): New subprogram
5753         (Set_Original_Access_Type): New subprogram
5754         (Write_Field21_Name): Write the name of the new field
5755
5756         * einfo.ads (Original_Access_Type): New field present in access to
5757         subprogram types.
5758         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
5759         E_Anonymous_Access_Protected_Subprogram_Type.
5760
5761         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
5762         subprogram types.
5763
5764         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
5765         to anonymous access to subprogram types.
5766
5767         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
5768         to subprogram types.
5769
5770         * sem_ch3.adb (Access_Definition): Complete decoration of entities
5771         corresponding to anonymous access to subprogram types.
5772         (Analyze_Component_Declaration): Add new actual to the call to
5773         subprogram replace_anonymous_access_to_protected_subprogram.
5774         (Array_Type_Declaration): Add new actual to the call to subprogram
5775         replace_anonymous_access_to_protected_subprogram.
5776         (Process_Discriminants): Add new actual to the call to subprogram
5777         replace_anonymous_access_to_protected_subprogram.
5778         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
5779
5780         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5781         formal.
5782
5783         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
5784         access to subprogram types.
5785
5786         * sem_util.adb (Has_Declarations): Addition of package_specification
5787         nodes.
5788
5789 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
5790
5791         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
5792         inlined flags to renamed entity only if in current unit.
5793
5794 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
5795
5796         * s-parint.ads: Add DSA implementation marker.
5797
5798         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
5799         value of System.Partition_Interface.DSA_Implementation to determine
5800         what version of the distributed systems annex is available (no
5801         implementation, GLADE, or PolyORB).
5802
5803 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
5804
5805         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
5806
5807 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5808
5809         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
5810         with new type if alias sets differ.
5811         Fixes ACATS c41103b.
5812
5813 2004-04-21  Vincent Celier  <celier@gnat.com>
5814
5815         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
5816         Add array Lang_Args for the language specific compiling argument
5817         switches.
5818
5819         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
5820
5821 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
5822
5823         * gnat_rm.texi: Update the descripton of the Eliminate pragma
5824         according to the recent changes in the format of the parameters of the
5825         pragma (replacing Homonym_Number with Source_Location).
5826
5827 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
5828
5829         * 5isystem.ads: Removed, unused.
5830
5831         * gnat_rm.texi: Redo 1.13 change.
5832
5833 2004-04-19  Robert Dewar  <dewar@gnat.com>
5834
5835         * s-stoele.ads: Clean up definition of Storage_Offset (the new
5836         definition is cleaner, avoids the kludge of explicit Standard operator
5837         references, and also is consistent with a visible System.Address with
5838         no visible operations.
5839
5840         * s-geveop.adb: Add declarations to avoid assumption of visible
5841         operations on type System.Address (since these might not be available
5842         if Address is a non-private type for which the operations
5843         are made abstract).
5844
5845         * sem_eval.adb: Minor reformatting
5846
5847         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
5848         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
5849         reformatting (new function spec format).
5850
5851         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5852         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
5853         s-caun64.adb: Add declarations to avoid assumption of visible
5854         operations on type System.Address (since these might not be available
5855         if Address is a non-private type for which the operations are made
5856         abstract).
5857
5858         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
5859
5860         * exp_intr.adb: Minor comment update
5861
5862         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
5863
5864         * 5omastop.adb: Add declarations to avoid assumption of visible
5865         operations on type System.Address (since these might not be available
5866         if Address is a non-private type for which the operations
5867         are made abstract).
5868
5869 2004-04-19  Vincent Celier  <celier@gnat.com>
5870
5871         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
5872
5873         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
5874         defaulted to Ada.
5875
5876         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
5877         defaulted to Ada.
5878         Call Check with Process_Languages.
5879         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
5880         with Process_Languages.
5881         (Recursive_Check): New Boolean parameter Process_Languages. Call
5882         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
5883         Process_Languages.
5884
5885         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
5886
5887         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
5888         parameter Ada_Main, defaulted to True.
5889         Check for Ada specific characteristics only when Ada_Main is True.
5890
5891         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
5892
5893         * prj.adb: (Project_Empty): Add new Project_Data components.
5894
5895         * prj.ads: New types and tables for non Ada languages.
5896         (Project_Data): New components Languages, Impl_Suffixes,
5897         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
5898         Include_Path, Include_Data_Set.
5899
5900         * prj-env.ads, prj-env.adb: Minor reformatting
5901
5902         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
5903         Put subprograms in alphabetical order
5904
5905         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
5906         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
5907         Opt.Follow_Links.
5908
5909         * mlib-prj.adb: Back out modification in last version, as they are
5910         incorrect.
5911         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
5912
5913         * make.adb: (Mains): Moved to package Makeutl
5914         (Linker_Opts): Moved to package Makeutl
5915         (Is_External_Assignment): Moved to package Makeutl
5916         (Test_If_Relative_Path): Moved to package Makeutl
5917         (Gnatmake): Move sorting of linker options to function
5918         Makeutl.Linker_Options_Switches.
5919
5920         * makeutl.ads, makeutl.adb: New files.
5921
5922         * Makefile.in: Add makeutl.o to the object files for gnatmake
5923
5924         * makeusg.adb: Add line for new switch -eL.
5925
5926         * gnatls.adb (Image): New function.
5927         (Output_Unit): If in verbose mode, output the list of restrictions
5928         specified by pragmas Restrictions.
5929
5930         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
5931         Text_IO.
5932
5933         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
5934         needed, to put it in the range 1970 (included) - 2026 (excluded).
5935         (Time_Of): Do not shift Unix_Min_Year (1970).
5936         Shift the date by multiple of 56 years, if needed, to put it in the
5937         range 1970 (included) - 2026 (excluded).
5938
5939         * adaint.h, adaint.c (__gnat_set_executable): New function.
5940
5941 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5942
5943         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
5944         and pop GC context.
5945         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
5946         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
5947         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
5948         (tree_transform, case N_Code_Statement): Likewise.
5949         (gnat_expand_stmt, case LABEL_STMT): Don't look at
5950         LABEL_STMT_FIRST_IN_EH.
5951         (gnat_expand_stmt, case ASM_STMT): New case.
5952
5953         * utils2.c (build_unary_op): Properly set TREE_READONLY of
5954         UNCONSTRAINED_ARRAY_REF.
5955
5956         * utils.c (poplevel): Temporarily push/pop GC context around inline
5957         function expansion.
5958
5959         * decl.c (maybe_variable): Properly set TREE_READONLY of
5960         UNCONSTRAINED_ARRAY_REF.
5961         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
5962
5963         * ada-tree.def: (ASM_STMT): New.
5964
5965         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
5966         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
5967         ASM_STMT_INPUT): New.
5968         (ASM_STMT_CLOBBER): Likewise.
5969
5970 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
5971
5972         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
5973         general rcheck mechanism to raise Program_Error for E.4(18), instead
5974         of a custom raiser in System.Partition_Interface.
5975         Part of general cleanup work before PolyORB integration.
5976
5977         * snames.ads, snames.adb: Add new runtime library entities and names
5978         for PolyORB DSA.
5979
5980         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5981         exp_dist.
5982         (Build_Subprogram_Id): New subprogram provided by exp_dist
5983         Code reorganisation in preparation for PolyORB integration.
5984
5985         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5986         exp_dist.
5987         (Build_Subprogram_Id): New subprogram provided by exp_dist
5988
5989         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
5990         actual parameter types for call to dereference of an
5991         access-to-subprogram type.
5992
5993         * rtsfind.ads: Add new runtime library entities and names for PolyORB
5994         DSA.
5995
5996         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
5997         instead, which has the same behaviour here since we never pass it a
5998         NULL pointer.
5999
6000         * link.c (run_path_option, Solaris case): Use -Wl, as for other
6001         platforms.
6002
6003         * Makefile.in: adjust object file lists for gnatlink and gnatmake
6004         to account for new dependency upon Interfaces.C.Strings + link.o
6005         For x86 FreeBSD, use 86numaux.
6006
6007         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
6008         from Mlib.Tgt to Mlib.
6009
6010         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
6011         target-independent.
6012
6013         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
6014         target-specific versions of this subprogram, now implemented as a
6015         target-independent function in Mlib.
6016
6017         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
6018         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
6019         (Linker_Library_Path_Option): Remove target-specific versions of this
6020         subprogram, now implemented as a target-independent function in Mlib.
6021
6022         * atree.adb: (Allocate_Initialize_Node): New subprogram.
6023         Factors out node table slots allocation.
6024         (Fix_Parents): New subprogram.
6025         Encapsulate the pattern of fixing up parent pointers for syntactic
6026         children of a rewritten node.
6027         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
6028         (Rewrite): Use New_Copy when creating saved copy of original node.
6029         (Replace): Use Copy_Node to copy nodes.
6030
6031 2004-04-19  Javier Miranda  <miranda@gnat.com>
6032
6033         * sprint.adb (Sprint_Node_Actual): Give support to the new
6034         Access_To_Subprogram node available in Access_Definition nodes. In
6035         addition, give support to the AI-231 node fields: null-exclusion,
6036         all-present, constant-present.
6037
6038         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
6039
6040         * sinfo.ads, sinfo.adb:
6041         New field Access_To_Subprogram_Definition in Access_Definition nodes
6042
6043         * sem_ch6.adb (Process_Formals): Move here the code that creates and
6044         decorates internal subtype declaration corresponding to the
6045         null-excluding formal. This code was previously in Set_Actual_Subtypes.
6046         In addition, carry out some code cleanup on this code. In case of
6047         access to protected subprogram call
6048         Replace_Anonymous_Access_To_Protected_Subprogram.
6049         (Set_Actual_Subtypes): Code cleanup.
6050
6051         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
6052         Find_Type in case of anonymous access renamings. Add warning in case of
6053         null-excluding attribute used in anonymous access renaming.
6054
6055         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
6056         subprogram
6057
6058         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
6059         subprogram.
6060         (Access_Definition): In case of anonymous access to subprograms call
6061         the corresponding semantic routine to decorate the node.
6062         (Access_Subprogram_Declaration): Addition of some comments indicating
6063         some code that probably should be added here. Detected by comparison
6064         with the access_definition subprogram.
6065         (Analyze_Component_Declaration): In case of access to protected
6066         subprogram call Replace_Anonymous_Access_To_Protected.
6067         (Array_Type_Declaration): In case of access to protected subprogram call
6068         Replace_Anonymous_Access_To_Protected_Subprogram.
6069         (Process_Discriminants): In case of access to protected subprogram call
6070         Replace_Anonymous_Access_To_Protected_Subprogram.
6071
6072         * par.adb (P_Access_Definition): New formal that indicates if the
6073         null-exclusion part was present.
6074         (P_Access_Type_Definition): New formal that indicates if the caller has
6075         already parsed the null-excluding part.
6076
6077         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
6078         (P_Identifier_Declarations): Code cleanup and give support to renamings
6079         of anonymous access to subprogram types.
6080         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
6081         (P_Array_Type_Definition): Give support to AI-254.
6082         (P_Component_Items): Give support to AI-254.
6083         (P_Access_Definition): New formal that indicates if the header was
6084         already parsed by the caller.
6085         (P_Access_Type_Definition): New formal that indicates if the caller has
6086         already parsed the null-excluding part.
6087
6088         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
6089         call to P_Access_Definition.
6090
6091 2004-04-19  Geert Bosch  <bosch@gnat.com>
6092
6093         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
6094         the delicate semantics of floating-point to integer conversion.
6095         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
6096
6097         * eval_fat.adb (Machine_Mantissa): Moved to spec.
6098         (Machine_Radix): New function.
6099
6100         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
6101         conversion checks.
6102         (Machine_Radix): New function also for use in conversion checks.
6103
6104 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
6105
6106         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
6107
6108         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
6109         to decorate the access-to-protected subprogram and the equivalent type.
6110
6111         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
6112         to anonymous access to subprogram types.
6113
6114         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
6115         constant-folding, for legality checks in contexts that require an RM
6116         static expression.
6117
6118         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
6119         temporary but stack checking is not enabled, increment serial number
6120         to so that symbol generation is consistent with and without stack
6121         checking.
6122
6123         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
6124         independent on whether stack checking is enabled, caller must check
6125         the corresponding flag.
6126
6127         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
6128         range checks.
6129         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
6130         parent if it has discriminants.
6131         (Build_Derived_Private_Type): Constructed full view does
6132         not come from source.
6133         (Process_Discriminants): Default discriminants on a tagged type are
6134         legal if this is the internal completion of a private untagged
6135         derivation.
6136
6137         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
6138         no constraint checks, because it corresponds to an existing object.
6139
6140         * sem_prag.adb (Process_Convention): Pragma applies
6141         only to subprograms in the same declarative part, i.e. the same unit,
6142         not the same scope.
6143
6144         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
6145         ignore type mismatch on a numeric conversion if expression comes from
6146         expansion.
6147
6148 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
6149
6150         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
6151         Homonym_Number parameter, add processing for Source_Location parameter
6152         corresponding.
6153         (Check_Eliminated): Remove the check for homonym numbers, add the check
6154         for source location traces.
6155
6156         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
6157         with Arg_Source_Location corresponding to the changes in the format of
6158         the pragma.
6159
6160         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
6161         Eliminate pragma corresponding to the changes in the format of the
6162         pragma: Homonym_Number is replaced with Source_Location, two ways of
6163         distinguishing homonyms are mutially-exclusive.
6164
6165 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
6166
6167         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
6168
6169         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
6170         No_Dollar_In_Label, no longer necessary, as it is always True.
6171         (Strip_Suffixes): Likewise.
6172
6173 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
6174
6175         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
6176         modulus for compatibility with size clause on targets with 16-bit
6177         Integer.
6178
6179         * layout.adb (Discrimify): In the case of private types, set Vtyp to
6180         full type to fix type mismatches on calls to size functions for
6181         discriminant-dependent array components.
6182
6183 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
6184
6185         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
6186         lib.
6187
6188 2004-04-19  Pascal Obry  <obry@gnat.com>
6189
6190         * mdll-utl.adb (Locate): New version is idempotent.
6191
6192 2004-04-17  Laurent Guerby <laurent@guerby.net>
6193
6194         PR ada/14988 (partial)
6195         * impunit.adb: Fix typo.
6196
6197 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
6198
6199         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
6200         and install-rts-cert targets.  Remove all gnatlib and gnattools
6201         targets and all other rts-* targets (moved to libada).  Remove (now)
6202         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
6203         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
6204
6205 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6206
6207         * trans.c (tree_transform): Shortcut returning error_mark_node for
6208         statements in annotate_only_mode.
6209         (tree_transform, case N_Label, case N_Return_Statement,
6210         N_Goto_Statement): Make statement tree instead of generating code.
6211         (tree_transform, case N_Assignment_Statement): No longer check
6212         type_annotate_only.
6213         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
6214         RETURN_STMT): New.
6215         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
6216         New fcns.
6217         (gnat_to_gnu): Collect any RTL generated and deal with it.
6218         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
6219         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
6220         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
6221
6222         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
6223
6224         * ada-tree.def (EXPR_STMT): Fix typo in name.
6225         (BLOCK_STMT, IF_STMT): New nodes.
6226
6227         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
6228         LABEL_STMT_FIRST_IN_EH): New macros.
6229         (RETURN_STMT_EXPR): Likewise.
6230
6231         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
6232         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
6233
6234 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
6235
6236         * atree.ads: Correct documentation on extended nodes.
6237
6238         * link.c: Set run_path_option for FreeBSD.
6239
6240 2004-04-08  Vincent Celier  <celier@gnat.com>
6241
6242         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
6243         one of the ALI file, do not link with DEC lib.
6244
6245         * par.adb Remove the last two characters ("%s" or "%b") when checking
6246         if a language defined unit may be recompiled.
6247
6248 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
6249
6250         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
6251         removal of abstract operation leaves no possible interpretation for
6252         expression.
6253
6254         * sem_eval.adb (Eval_Qualified_Expression): Use
6255         Set_Raises_Constraint_Error on node when needed, so that it does not
6256         get optimized away by subsequent optimizations.
6257
6258         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
6259         operands even when they are not wrapped in a type conversion.
6260
6261 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
6262
6263         * sem_prag.adb (Set_Exported): Warn about making static as result of
6264         export only when the export is coming from source. This may be not
6265         be true e.g. on VMS where we expand export pragmas for exception codes
6266         together with imported or exported exceptions, and we don't want the
6267         user to be warned about something he didn't write.
6268
6269 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
6270
6271         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
6272         duplication between normal entities and those declared as renamings.
6273         No functional change.
6274
6275         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
6276         inline functions returning an unconstrained result.
6277
6278 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
6279
6280         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
6281         conform to what other front-ends do.
6282
6283 2004-04-08  Doug Rupp  <rupp@gnat.com>
6284
6285         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
6286         libraries.
6287
6288 2004-04-06  Pascal Obry  <obry@gnat.com>
6289
6290         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
6291
6292         * osint.adb (Program_Name): Do not look past a directory separator.
6293
6294 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
6295
6296         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
6297
6298         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
6299         requirement for preserving a copy of the original assignment node.
6300
6301         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
6302
6303 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
6304
6305         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
6306         when supported.
6307
6308 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
6309
6310         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
6311         operator calls in functional notation, and apply
6312         Universal_Interpretation to operands, not to their type.
6313
6314 2004-04-06  Robert Dewar  <dewar@gnat.com>
6315
6316         * 5wdirval.adb: Minor reformatting
6317
6318 2004-04-06  Ed Falis  <falis@gnat.com>
6319
6320         * gnat_rm.texi: Improve a reference to the GCC manual
6321
6322 2004-04-05  Vincent Celier  <celier@gnat.com>
6323
6324         * adaint.h, adaint.c: Add function __gnat_named_file_length
6325
6326         * impunit.adb: Add Ada.Directories to the list
6327
6328         * Makefile.in: Add VMS and Windows versions of
6329         Ada.Directories.Validity package body.
6330
6331         * Makefile.rtl: Add a-direct and a-dirval
6332
6333         * mlib-tgt.ads: Minor comment update.
6334
6335         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
6336         a-direct.ads, a-direct.adb: New files.
6337
6338 2004-04-05  Vincent Celier  <celier@gnat.com>
6339
6340         PR ada/13620
6341         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
6342         just to the compiler.
6343
6344 2004-04-05  Robert Dewar  <dewar@gnat.com>
6345
6346         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
6347         returned string is 1.
6348
6349         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
6350
6351         * eval_fat.ads: Minor reformatting
6352
6353         * g-curexc.ads: Document that lower bound of returned string values
6354         is always one.
6355
6356         * gnatlink.adb: Add ??? comment for previous change
6357         (need to document why this is VMS specific)
6358
6359         * s-stoele.ads: Minor reformatting
6360
6361         * tbuild.ads: Minor reformatting throughout (new function specs)
6362
6363         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
6364         after WITH.
6365
6366         * scng.adb: Minor reformatting
6367
6368 2004-04-05  Geert Bosch  <bosch@gnat.com>
6369
6370         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
6371         (Leading_Part): Still perform truncation to machine number if the
6372         specified radix_digits is greater or equal to machine_mantissa.
6373
6374 2004-04-05  Javier Miranda  <miranda@gnat.com>
6375
6376         * par-ch3.adb: Complete documentation of previous change
6377         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
6378         (aliased must appear before constant).
6379
6380         * par-ch4.adb: Complete documentation of previous change.
6381
6382         * par-ch6.adb: Complete documentation of previous change.
6383
6384         * sinfo.ads: Fix typo in commment.
6385
6386 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
6387
6388         * sem_ch3.adb (Inherit_Components): If derived type is private and has
6389         stored discriminants, use its discriminants to constrain parent type,
6390         as is done for non-private derived record types.
6391
6392         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
6393         Ada 2005 AI-310: an abstract non-dispatching operation is not a
6394         candidate interpretation in an overloaded call.
6395
6396         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
6397         expression is Null and target type is not an access type (e.g. a
6398         non-private address type).
6399
6400 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
6401
6402         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
6403         statement whose right-hand side is an inlined call, save a copy of the
6404         original assignment subtree to preserve enough consistency for
6405         Analyze_Assignment to proceed.
6406
6407         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
6408         complete assignment subtree which is now unnecessary, as the expansion
6409         of inlined call has been improved to preserve a consistent assignment
6410         tree.  Note_Possible_Modification must be called only
6411         after checks have been applied, or else unnecessary checks will
6412         be generated.
6413
6414         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
6415         of explicit dereferences that do not Come_From_Source:
6416          - be selective on cases where we must go back to the dereferenced
6417            pointer (an assignment to an implicit dereference must not be
6418            recorded as modifying the pointer);
6419          - do not rely on Original_Node being present (Analyze_Assignment
6420            calls Note_Possible_Modification on a copied tree).
6421
6422         * sem_warn.adb (Check_References): When an unset reference to a pointer
6423         that is never assigned is encountered, prefer '<pointer> may be null'
6424         warning over '<pointer> is never assigned a value'.
6425
6426 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
6427
6428         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
6429         the ABI.
6430
6431 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
6432
6433         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
6434         libexc. We currently don't reference anything in this library and
6435         linking it in triggers linker warnings we don't want to see.
6436
6437         * init.c: Update comments.
6438
6439 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6440
6441         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
6442         * utils.c (create_field_decl): Likewise.
6443         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
6444
6445 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
6446
6447         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
6448         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
6449         Add info directory entry and category.
6450
6451 2004-04-02  Jan Hubicka  <jh@suse.cz>
6452
6453         * utils.c: Include function.h
6454         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
6455
6456 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
6457
6458         PR ada/14150
6459         * Make-lang.in: Clean up generation of documentation
6460
6461         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
6462
6463         * xgnatug.adb: Removed, replaced by xgnatugn.adb
6464
6465         * xgnatugn.adb: Replaces xgnatug.adb
6466
6467         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
6468
6469         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
6470
6471         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6472         gnat_ug_wnt.texi: Removed.
6473
6474 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
6475
6476         * utils2.c: Update copyright notice.
6477
6478 2004-04-01  Robert Dewar  <dewar@gnat.com>
6479
6480         * checks.adb: Minor reformatting throughout
6481         Note that prev checkin added RM reference to alignment warning
6482
6483 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
6484
6485         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
6486         non-static when building aggregate for bit-packed array.
6487
6488         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
6489         function call that is itself the actual in a procedure call, build
6490         temporary for it.
6491
6492         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
6493         a string literal, create a temporary for it, constant folding only
6494         handles scalars here.
6495
6496 2004-04-01  Vincent Celier  <celier@gnat.com>
6497
6498         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
6499         Error_Msg_SP): New empty procedures to instantiate the Scanner.
6500         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
6501         tokens.
6502         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
6503         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
6504         and get the checksum.
6505
6506         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
6507         already in the Q.
6508         Increase the Marking_Label at the end of the Multiple_Main_Loop,
6509         instead of at the beginning.
6510
6511         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
6512         directly.
6513         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
6514         on VMS.
6515
6516         * osint.ads (Multi_Unit_Index_Character): New Character global variable
6517
6518         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
6519         not '~' directly.
6520
6521         * par.adb: Remove test on file name to detect language defined units.
6522         Add test on unit name, after parsing, to detect language defined units
6523         that are not compiled with -gnatg (except System.RPC and its children)
6524
6525         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
6526         following units without style checking.
6527
6528         * switch-c.adb: Change -gnatC to -gnateI
6529
6530         * usage.adb: Document new switch -gnateInnn
6531
6532         * scng.adb (Accumulate_Token_Checksum): New procedure
6533         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
6534         word or literal number.
6535         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
6536         numbers.
6537
6538 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
6539
6540         * a-tasatt.adb,
6541         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
6542         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
6543         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
6544         5vtpopde.adb: Add missing 'constant' keywords.
6545
6546 2004-04-01  Javier Miranda  <miranda@gnat.com>
6547
6548         * par-ch4.adb: (P_Allocator): Code cleanup
6549
6550         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
6551         attribute.
6552
6553         * sinfo.ads: Complete documentation of previous change
6554
6555 2004-04-01  Pascal Obry  <obry@gnat.com>
6556
6557         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
6558         only on VMS.  This special handling was done because an old GNU/ld bug
6559         on Windows which has been fixed.
6560
6561 2004-04-01  GNAT Script  <nobody@gnat.com>
6562
6563         * Make-lang.in: Makefile automatically updated
6564
6565 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6566
6567         * decl.c (gnat_to_gnu_entity, make_type_from_size):
6568         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
6569         * trans.c (tree_transform, convert_with_check): Likewise.
6570         * utils.c (gnat_signed_or_unsigned_type): Likewise.
6571         (build_vms_descriptor, unchecked_convert): Likewise.
6572         * utils2.c (nonbinary_modular_operation): Likewise.
6573
6574 2004-03-29  Javier Miranda  <miranda@gnat.com>
6575
6576         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
6577         (Install_Null_Excluding_Check): Local subprogram that determines whether
6578         an access node requires a runtime access check and if so inserts the
6579         appropriate run-time check.
6580         (Apply_Access_Check): Call Install_Null_Excluding check if required
6581         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
6582
6583         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
6584
6585         * einfo.ads: Fix typo in comment
6586
6587         * exp_ch3.adb (Build_Assignment): Generate conversion to the
6588         null-excluding type to force the corresponding run-time check.
6589         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
6590         type to force the corresponding run-time check.
6591
6592         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
6593         the null-excluding type to force the corresponding run-time check.
6594
6595         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
6596         case of access types unless they have the null-excluding attribute.
6597
6598         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
6599         part.
6600
6601         * exp_util.ads: Fix typo in comment
6602
6603         * par.adb (P_Null_Exclusion): New subprogram
6604         (P_Subtype_Indication): New formal that indicates if the null-excluding
6605         part has been scanned-out and it was present
6606
6607         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
6608
6609         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
6610         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
6611         type to force the corresponding run-time check
6612         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
6613         components
6614         (Resolve_Array_Aggregate): Carry out some static checks
6615         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
6616
6617         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
6618         attribute must be set only if specified by means of the null-excluding
6619         part. In addition, we must also propagate the access-constant attribute
6620         if present.
6621         (Access_Subprogram_Declaration, Access_Type_Declaration,
6622         Analyze_Component_Declaration, Analyze_Object_Declaration,
6623         Array_Type_Declaration, Process_Discriminants,
6624         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
6625         and carry out some static checks.
6626         (Build_Derived_Access_Type): Set the null-excluding attribute
6627         (Derived_Type_Declaration, Process_Subtype): Carry out some static
6628         checks.
6629
6630         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
6631
6632         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
6633
6634         * sem_ch6.adb (Process_Formals): Carry out some static checks.
6635         (Set_Actual_Subtypes): Generate null-excluding subtype if the
6636         null-excluding part was present; it is not required to be done here in
6637         case of anonymous access types.
6638         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
6639         value.
6640
6641         * sem_res.adb (Resolve_Actuals): Carry out some static check
6642         (Resolve_Null): Allow null in anonymous access
6643
6644         * sinfo.adb: New subprogram Null_Exclusion_Present
6645         All_Present and Constant_Present available on access_definition nodes
6646
6647         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
6648         object_declaration, derived_type_definition, component_definition,
6649         discriminant_specification, access_to_object_definition,
6650         access_function_definition, allocator, access_procedure_definition,
6651         access_definition, parameter_specification, All_Present and
6652         Constant_Present flags available on access_definition nodes.
6653
6654 2004-03-29  Robert Dewar  <dewar@gnat.com>
6655
6656         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
6657         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
6658         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
6659         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
6660         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
6661         sem_prag.adb: Updates to handle multiple units/file
6662
6663         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
6664
6665         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
6666         sem_util.adb: Minor reformatting
6667
6668         * sem_ch12.adb: Add comment for previous change
6669
6670 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
6671
6672         * osint.adb (Executable_Prefix): Set Exec_Name to the current
6673         executable name when not initialized. Otherwise, use its current value.
6674
6675         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
6676         initialize it to another executable name than the current one. This
6677         allows to configure paths for an executable name (gnatmake) different
6678         from the current one (gnatdist).
6679
6680 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
6681
6682         * exp_ch6.adb (Expand_Call): A call to a function declared in the
6683         current unit cannot be inlined if it appears in the body of a withed
6684         unit, to avoid order of elaboration problems in gigi.
6685
6686         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
6687         information for protected (wrapper) operation as well, to simplify gdb
6688         use.
6689
6690         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
6691         protected body, indicate that the entity for the generated spec comes
6692         from source, to ensure that references are properly generated for it.
6693         (Build_Body_To_Inline): Do not inline a function that returns a
6694         controlled type.
6695
6696         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
6697         apply convention to homonyms that are declared explicitly.
6698
6699         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
6700         that renames an equality operator and the operands are overloaded,
6701         resolve them with the declared formal types, before rewriting as an
6702         operator.
6703
6704 2004-03-29  GNAT Script  <nobody@gnat.com>
6705
6706         * Make-lang.in: Makefile automatically updated
6707
6708 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
6709
6710         * memtrack.adb: Log realloc calls, which are treated as free followed
6711         by alloc.
6712
6713 2004-03-25  Vincent Celier  <celier@gnat.com>
6714
6715         * prj-makr.adb (Process_Directories): Detect when a file contains
6716         several units. Do not include such files in the config pragmas or
6717         in the naming scheme.
6718
6719         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
6720         Resolve links only when not in Trusted_Mode.
6721         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
6722         Do not resolve links for the display names.
6723
6724         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
6725         resolve links when computing the display names.
6726
6727 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
6728
6729         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
6730         attribute reference does not denote a subtype, it can be any
6731         expression that has a classwide type, potentially after an implicit
6732         dereference.  In particular, the prefix can be a view conversion for
6733         a classwide type (for which Is_Object_Reference holds), but it can
6734         also be a value conversion for an access-to-classwide type. In the
6735         latter case, there is an implicit dereference, and the original node
6736         for the prefix does not verify Is_Object_Reference.
6737
6738         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
6739         conversion of a discriminant-dependent component of a mutable object
6740         is one itself.
6741
6742 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
6743
6744         * freeze.adb (Freeze_Entity): When an inherited subprogram is
6745         inherited, has convention C, and has unconstrained array parameters,
6746         place the corresponding warning on the derived type declaration rather
6747         than the original subprogram.
6748
6749         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
6750         indication on renaming declaration, if formal has a box and actual
6751         is absent.
6752
6753         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
6754         determine whether to generate an implicit or explicit reference to
6755         the renamed entity.
6756
6757         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
6758         subprogram renaming comes from a defaulted formal subprogram in an
6759         instance.
6760
6761 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
6762
6763         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
6764         value expressions to ensure that calls within a component definition
6765         will be checked (since those are evaluated during the record type's
6766         elaboration).
6767
6768 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
6769
6770         * s-tpobop.adb: Code clean up:
6771         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
6772         code.
6773         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
6774
6775 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
6776
6777         * Makefile.in: Clean up in the ravenscar run time.
6778
6779 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6780
6781         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
6782         of No_Strict_Aliasing to build_pointer_type_for_mode.
6783         * utils.c (update_pointer_to): Walk pointer and ref chains.
6784
6785 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
6786
6787         * ali.ads: Fix Comment about Dynamic_Elab.
6788
6789         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
6790         Has_RACW, Is_Generic, etc.)
6791         (Output_Object, Gnatls): Take into account ALI files not attached to
6792         an object.
6793
6794 2004-03-22  Vincent Celier  <celier@gnat.com>
6795
6796         * gprep.adb: Change all String_Access to Name_Id
6797         (Is_ASCII_Letter): new function
6798         (Double_File_Name_Buffer): New procedure
6799         (Preprocess_Infile_Name): New procedure
6800         (Process_Files): New procedure
6801         (Gnatprep): Check if output and input are existing directories.
6802         Call Process_Files to do the real job.
6803
6804 2004-03-22  Robert Dewar  <dewar@gnat.com>
6805
6806         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
6807         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
6808
6809 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
6810
6811         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
6812         case when the source contains only comments.
6813
6814 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
6815
6816         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
6817         declaration for a child subprogram body that acts as a spec, indicate
6818         that the entity in the declaration needs debugging information.
6819
6820         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
6821         full view if the subtype is created for a constrained record component;
6822         gigi has enough information to construct the record, and there is no
6823         place in the tree for the declaration.
6824
6825         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
6826         serial number for the dummy body that is built for analysis, to avoid
6827         inconsistencies in the generation of internal names when compiling
6828         with -gnatN.
6829
6830 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
6831
6832         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
6833         object.
6834
6835 2004-03-22  GNAT Script  <nobody@gnat.com>
6836
6837         * Make-lang.in: Makefile automatically updated
6838
6839 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6840
6841         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6842         * trans.c (tree_transform, emit_index_check): Likewise.
6843         * utils.c (build_template): Likewise.
6844         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
6845         (maybe_unconstrained_array, unchecked_convert): Likewise.
6846         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
6847         (build_unary_op): Likewise.
6848         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6849         (fill_vms_descriptor): Likewise.
6850         (build_call_alloc_dealloc): Likewise.
6851         ALIGN is unsigned.
6852         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
6853
6854 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
6855
6856         PR other/14630
6857         * gnat_ug.texi: Add info directory category and entry.
6858         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6859         gnat_ug_wnt.texi: Regenerate.
6860
6861 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
6862
6863         * ada-tree.h: Update copyright notice.
6864         Minor reformatting.
6865
6866 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
6867
6868         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
6869         as regular exception objects and not as mere integers representing the
6870         condition code.  The latter approach required some dynamics to mask off
6871         severity bits, which did not fit well into the GCC table based model.
6872         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
6873         exception data objects. We don't it and it would conflict with the other
6874         external symbol we have to generate for such exceptions.
6875
6876         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
6877         the special code for VMS exceptions, since these are now represented
6878         as regular exceptions objects.
6879
6880 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6881
6882         * decl.c (debug_no_type_hash): Remove.
6883         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
6884         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
6885
6886 2004-03-19  Laurent Guerby <laurent@guerby.net>
6887
6888         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
6889         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
6890
6891 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6892
6893         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
6894         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
6895         (TYPE_RM_SIZE_INT): Directly use type.values.
6896         (TREE_LOOP_ID): Clean up check.
6897         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
6898         TYPE_VALUES, not TYPE_FIELDS.
6899         * trans.c (convert_with_check): Delay access of bounds of basetype
6900         until sure is numeric.
6901
6902 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
6903
6904         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
6905
6906         Code clean up:
6907         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
6908         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
6909         Specific.Set instead of direct call to e.g pthread_setspecific.
6910
6911 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
6912
6913         * adaint.c: Update comments.
6914
6915         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
6916         GNATLIB_SHARED for FreeBSD.
6917
6918 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
6919
6920         * init.c [VxWorks]: Do not fix the stack size for the environment task.
6921         When needed (stack checking) the stack size is retrieved
6922         from the VxWorks kernel.
6923
6924         * Makefile.in: Flag -nostdinc is required when building the run time
6925         for avoiding looking for files in the base compiler.
6926         Add the VxWorks specific version of the package body for
6927         System.Stack_checking.Operations (5zstchop.adb).
6928
6929         * Make-lang.in: Add the object file for
6930         System.Stack_Checking.Operations.
6931
6932         * Makefile.rtl: Add object file for the package
6933         System.Stack_Checking.Operations.
6934
6935         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
6936
6937         * s-stache.ads, s-stache.adb: Move the operations related to stack
6938         checking from this package to package System.Stack_Checking.Operations.
6939         This way, stack checking operations are only linked in the final
6940         executable when using the -fstack-check flag.
6941
6942 2004-03-18  Doug Rupp  <rupp@gnat.com>
6943
6944         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
6945         Reorganize ifeq's.
6946
6947         * 5qsystem.ads, 5xcrtl.ads: New files.
6948
6949 2004-03-18  Vincent Celier  <celier@gnat.com>
6950
6951         * prj.adb (Reset): Reset hash table Files_Htable
6952
6953         * prj-env.adb (Source_Paths, Object_Paths): New tables.
6954         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
6955         the procedures Add_To_Path_File.
6956         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
6957         making sure that each directory is present only once and, for object
6958         dirs, when a directory already present is added, the duplicate is
6959         removed and the directory is always put as the last in the table.
6960         Write the path files at the end of these accumulations.
6961
6962         * prj-nmsc.adb (Record_Source): Add source file name in hash table
6963         Files_Htable for all sources.
6964
6965         * prj-proc.adb (Process): Remove restrictions between not directly
6966         related extending projects.
6967
6968 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
6969
6970         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
6971         (Find_Sources): Minor speed optimization.
6972
6973         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
6974         parameter Trusted_Mode.
6975
6976 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
6977
6978         * scn.adb (Determine_License): Take into account a degenerated case
6979         when the source contains only comments.
6980
6981 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
6982
6983         * sem_warn.adb (Check_References): For a warning on a selected
6984         component that does not come from source, locate an uninitialized
6985         component of the record type to produce a more precise error message.
6986
6987 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
6988
6989         * 3zsoccon.ads: Fix multicast options.
6990
6991         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
6992         in the spec.
6993
6994 2004-03-15  Robert Dewar  <dewar@gnat.com>
6995
6996         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
6997         pragma used for a private type.
6998
6999         * lib-xref.adb (Generate_Reference): Do not generate warning if
7000         reference is in a different unit from the pragma Unreferenced.
7001
7002         * 5vtpopde.adb: Minor reformatting
7003         Fix casing of To_Task_ID
7004
7005         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
7006         flag if we have an unchecked conversion to an access type in the same
7007         unit.
7008
7009 2004-03-15  Geert Bosch  <bosch@gnat.com>
7010
7011         * a-ngcoty.adb (Modulus): In alternate formula for large real or
7012         imaginary parts, use Double precision throughout.
7013
7014         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
7015         we want to be able to compile run-time with -gnata for testing, but
7016         this may also be instantiated in user code that is compiled with -gnata.
7017
7018 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
7019
7020         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
7021         codes. Having a separate type for this is useful to enforce consistency
7022         throughout the various run-time units.
7023         (Exception_Data): Use Exception_Code for Import_Code.
7024
7025         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
7026         Natural and Integer in various places.
7027         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
7028         with the severity bits masked off.
7029         (Register_VMS_Exception): Handle the additional exception data pointer
7030         argument.
7031
7032         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
7033         component, now reflected by an exported accessor.
7034         (is_handled_by): New routine to compute whether the propagated
7035         occurrence matches some handler choice specification. Extracted out of
7036         get_action_description_for, and expanded to take care of the VMS
7037         specifities.
7038         (get_action_description_for): Use is_handled_by instead of an explicit
7039         complex condition to decide if the current choice at hand catches the
7040         propagated occurrence.
7041
7042         * raise.h (Exception_Code): New type for C.
7043
7044         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
7045         System.Standard_Library.Exception_Code, to allow references from the
7046         pragma import/export expander.
7047
7048         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
7049         New accessors to allow easy access to GNAT exception data
7050         characteristics.
7051         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
7052         redundant Handled_By_Others component, helper for the personality
7053         routine which will now be able to call the appropriate exception data
7054         accessor instead.
7055
7056         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
7057         component of Standard_Exception_Type to be the closest possible to
7058         Exception_Code in System.Standard_Library, that we cannot get at this
7059         point. Expand a ??? comment to notify that this type node should
7060         probably be rewritten later on.
7061
7062         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
7063         registration call to include a pointer to the exception object in the
7064         arguments.
7065
7066         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
7067         instead of int and explicit bitmasks.
7068
7069 2004-03-15  Vincent Celier  <celier@gnat.com>
7070
7071         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
7072         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
7073
7074         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
7075         longer needed now that it is in the spec of
7076         System.Tasking.Task_Attributes.
7077
7078         * adaint.h, adaint.c: (__gnat_create_output_file): New function
7079
7080         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
7081
7082         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
7083
7084         * make.adb (Gnatmake): Do not check the executable suffix; it is being
7085         taken care of in Scan_Make_Arg.
7086         (Scan_Make_Arg): Add the executable suffix only if the argument
7087         following -o, in canonical case, does not end with the executable
7088         suffix.  When in verbose mode and executable file name does not end
7089         with executable suffix, output the executable name, in canonical case.
7090
7091         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
7092         to avoid warnings when instantiating Ada.Task_Attributes.
7093         Minor reformating.
7094
7095         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
7096         in the correct order.
7097
7098         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
7099         redirect standard output and error to a file for the invocation of the
7100         compiler, then read the file.
7101
7102         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
7103         directory, instead of the Value.
7104         (Find_Source_Dirs): Remove useless code & comments.
7105
7106 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
7107
7108         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
7109         tagged type is inherited, and the parent operation is not frozen yet,
7110         force generation of a freeze node for the inherited operation, so the
7111         corresponding dispatch entry is properly initialized.
7112         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
7113         when looking for user-defined equality operation.
7114
7115         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
7116         boolean when locating primitive equality of tagged component.
7117
7118         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
7119         bit-aligned field and the right-hand side a string literal, introduce
7120         a temporary before expanding assignment into a loop.
7121
7122         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
7123         priority in full, to ensure that any expanded subepxressions of it are
7124         elaborated in the scope of the init_proc.
7125
7126         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
7127         after object declaration, skipping over code that may have been
7128         generated for validity checks.
7129
7130         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
7131         discriminants, ignore the known discriminants of its full view, if
7132         any, to check legality.
7133
7134         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
7135         component if type has unknown discriminants.
7136         (Analyze_Private_Extension_Declaration): Discriminant constraint is
7137         null if type has unknown discriminants.
7138
7139         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
7140         for end label when present.
7141
7142         * s-fileio.adb (Open): When called with a C_Stream, use given name for
7143         temporary file, rather than an empty string.
7144
7145 2004-03-15  Ed Falis  <falis@gnat.com>
7146
7147         * s-thread.adb: Removed, no longer used.
7148
7149 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7150
7151         * decl.c (target.h): Now include.
7152         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
7153         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
7154         (validate_size): For POINTER_TYPE, get smallest size permitted on
7155         machine.
7156
7157         * fe.h: Sort Einfo decls and add Set_Mechanism.
7158
7159         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
7160         (ada/decl.o): Depends on target.h.
7161
7162         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
7163         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
7164
7165 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
7166
7167         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
7168
7169         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
7170         Insert_Dereference_Action when rewriting an implicit dereference into
7171         an explicit one, this will be taken care of during expansion of the
7172         explicit dereference.
7173         (Expand_N_Slice): Same. Always do the rewriting, even for the case
7174         of non-packed slices, since the dereference action generated by
7175         expansion of the explicit dereference is needed in any case.
7176         (Expand_N_Selected_Component): When rewriting an implicit dereference,
7177         analyze and resolve the rewritten explicit dereference so it is seen
7178         by the expander.
7179         (Insert_Dereference_Action): This procedure is now called only for the
7180         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
7181         dereferences that do not come from source (including explicit
7182         dereferences resulting from rewriting implicit ones), but do not
7183         recursively insert a check for the dereference nodes contained within
7184         the check.
7185         (Insert_Dereference_Action): Clarify and correct comment.
7186
7187 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
7188
7189         PR ada/14131
7190         Move language detection to the top level.
7191         * config-lang.in: Build by default.
7192
7193 2004-03-05  Robert Dewar  <dewar@gnat.com>
7194
7195         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
7196
7197         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
7198         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
7199         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
7200         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
7201         unchecked conversion to spec to avoid warnings.
7202
7203         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
7204         to Task_ID
7205
7206         * 7stpopsp.adb: Correct casing in To_Task_ID call
7207
7208         * a-strsea.ads, a-strsea.adb: Minor reformatting
7209
7210         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
7211
7212         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
7213         Adjust Max_Msg_Length to be clearly large enough.
7214
7215         * fe.h: Define In_Same_Source_Unit
7216
7217         * osint.adb: Add pragma Warnings Off to suppress warnings
7218         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
7219         aliasing warnings.
7220
7221         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
7222
7223         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
7224
7225         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
7226
7227         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
7228
7229         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
7230
7231         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
7232         node. We now do generate them for gcc back end.
7233
7234         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
7235         warning.
7236
7237         * sinput-c.adb: Fix bad name in header.
7238         Add pragma Warnings Off to suppress aliasing warning.
7239
7240         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
7241
7242         * snames.h, snames.ads, snames.adb: Add entry for pragma
7243         No_Strict_Aliasing.
7244
7245 2004-03-05  Vincent Celier  <celier@gnat.com>
7246
7247         * prj-com.ads: Add hash table Files_Htable to check when a file name
7248         is already a source of another project.
7249
7250         * prj-nmsc.adb (Record_Source): Before recording a new source, check
7251         if its file name is not already a source of another project. Report an
7252         error if it is.
7253
7254         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
7255         source file name, call gnatpp with all the sources of the main project.
7256
7257         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
7258         of file names.
7259
7260         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
7261         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
7262         /RUNTIME_SYSTEM=, converted to --RTS=
7263         /NOTABS, converted to -notabs
7264
7265 2004-03-05  Pascal Obry  <obry@gnat.com>
7266
7267         * make.adb: Minor reformatting.
7268
7269 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
7270
7271         Part of implemention of AI-262.
7272         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
7273
7274         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
7275         procedure.
7276
7277         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
7278         when component type is a partially constrained class-wide subtype.
7279         (Constrain_Discriminated_Type): If parent type has unknown
7280         discriminants, a constraint is illegal, even if full view has
7281         discriminants.
7282         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
7283         with unknown discriminants whose full view is a discriminated record.
7284
7285         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
7286         flag, to handle properly derivations of tagged types with unknown
7287         discriminants.
7288         (Analyze_Package_Spec, Analyze_Package_Body): Install
7289         Private_With_Clauses before analyzing private part or body.
7290
7291         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
7292         Has_Discriminants can be true for a given type (documentation).
7293
7294 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
7295
7296         * s-restri.ads: Fix license (GPL->GMGPL).
7297
7298         * s-tassta.adb: Minor reformatting.
7299
7300         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
7301         by calls to Exit_One_ATC_Level, since additional clean up is performed
7302         by this function.
7303
7304         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
7305         by calls to Exit_One_ATC_Level, since additional clean up is performed
7306         by this function.
7307
7308 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7309
7310         * trans.c: Reflect GCC changes to fix bootstrap problem.
7311         Add warning for suspicious aliasing unchecked conversion.
7312
7313 2004-03-05  GNAT Script  <nobody@gnat.com>
7314
7315         * Make-lang.in: Makefile automatically updated
7316
7317 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
7318
7319         * ali.adb (Read_Instantiation_Instance): Do not modify the
7320         current_file_num when reading information about instantiations, since
7321         this corrupts files in later references.
7322
7323 2004-03-02  Vincent Celier  <celier@gnat.com>
7324
7325         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
7326         before checking if it is read-only.
7327
7328         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
7329         of SRC_DIRS and eliminate duplicates.
7330
7331         * gprcmd.adb: Replace command "path" with command "path_sep" to return
7332         the path separator.
7333         (Usage): Document path_sep
7334
7335         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
7336         C++ compiler. No need for a script.
7337         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
7338         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
7339         subst.
7340
7341         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
7342         where there are Ada sources.
7343         (Set_Ada_Paths): Only add to the include path the source dirs of project
7344         with Ada sources.
7345         (Add_To_Path): Add the Display_Values of the directories, not their
7346         Values.
7347
7348         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
7349         data.
7350
7351         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
7352         is not No_Name.
7353         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
7354         Value is canonicalized.
7355         (Language_Independent_Check): Do not copy Value to Display_Value when
7356         canonicalizing Value.
7357
7358         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
7359         path to find limited with cycles.
7360         (Parse_Single_Project): Use canonical cased path to find the end of a
7361         with cycle.
7362
7363 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
7364
7365         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
7366         and not a child unit.
7367
7368         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
7369         appear in a with_clause.
7370
7371         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
7372         only happen in type_annotate mode, do not try to elaborate it.
7373
7374         * exp_util.adb (Force_Evaluation): If expression is a selected
7375         component on the left of an assignment, use a renaming rather than a
7376         temporary to remove side effects.
7377
7378         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
7379         inlined instance body, which is analyzed before the end of the
7380         enclosing scope.
7381
7382 2004-03-02  Robert Dewar  <dewar@gnat.com>
7383
7384         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
7385         sem_ch4.adb: Use new feature for substitution of keywords in VMS
7386
7387         * errout.ads, errout.adb: Implement new circuit for substitution of
7388         keywords in VMS.
7389
7390         * sem_case.adb (Analyze_Choices): Place message properly when case is
7391         a subtype reference rather than an explicit range.
7392
7393         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
7394
7395 2004-03-02  Doug Rupp  <rupp@gnat.com>
7396
7397         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
7398
7399 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
7400
7401         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
7402
7403 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7404
7405         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
7406         BLKmode bitfield.
7407
7408 2004-02-25  Robert Dewar  <dewar@gnat.com>
7409
7410         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
7411         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
7412         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
7413         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
7414         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
7415         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
7416         the defining instance of the type to avoid aliasing problems.
7417         Fix copyright header.  Fix bad comments in package header.
7418
7419         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
7420
7421 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
7422
7423         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
7424         rewritten as references when aliased through an address clause.
7425
7426         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
7427         whether call can be interpreted as an indirect call to the result of a
7428         parameterless function call returning an access subprogram.
7429
7430 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
7431
7432         Code clean up:
7433         * exp_ch7.adb (Make_Clean): Remove generation of calls to
7434         Unlock[_Entries], since this is now done by Service_Entries directly.
7435
7436         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
7437
7438         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
7439         Requeue_Call for better code readability. Change spec and update calls:
7440         PO_Service_Entries now unlock the PO on exit.
7441         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
7442         PO_Service_Entries.
7443
7444         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
7445
7446         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
7447
7448 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
7449
7450         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
7451         protected subprogram call and analyzing the result of such expanding
7452         in case when the called protected subprogram is eliminated.
7453
7454         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
7455         names.
7456
7457 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
7458
7459         * Makefile.in: Clean ups.
7460
7461 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
7462
7463         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
7464         protected operations if original subprogram is flagged as eliminated.
7465         (Expand_N_Subprogram_Body): For a protected operation, create
7466         discriminals for next operation before checking whether the operation
7467         is eliminated.
7468
7469         * exp_ch9.adb (Expand_N_Protected_Body,
7470         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
7471         for internal protected operations if the original subprogram is
7472         eliminated.
7473
7474         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
7475         declared in a single protected object.
7476
7477 2004-02-23  Vincent Celier  <celier@gnat.com>
7478
7479         * prj-attr.adb: Make attribute Builder'Executable an associative array,
7480         case insensitive if file names are case insensitive, instead of a
7481         standard associative array.
7482
7483         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
7484         them as case insensitive on platforms where the file names are case
7485         sensitive.
7486
7487         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
7488         project file has already been parsed that canonical path are compared.
7489
7490 2004-02-23  Robert Dewar  <dewar@gnat.com>
7491
7492         * sinput-c.ads: Correct bad unit title in header
7493
7494         * freeze.adb: Minor reformatting
7495
7496 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7497
7498         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
7499         nonaddressable COMPONENT_REF that is removing padding that we are
7500         taking the address of, take the address of the padded record instead
7501         if item is variable size.
7502
7503 2004-02-20  Robert Dewar  <dewar@gnat.com>
7504
7505         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
7506
7507 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
7508
7509         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
7510         itype references for the constrained designated type of a component
7511         whose base type is already frozen.
7512
7513 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
7514
7515         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
7516         avoid GCC warnings.
7517
7518 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
7519
7520         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
7521         identifier for a phantom package that rewrites the formal package
7522         declaration with a box. The Add semantic decorations for the defining
7523         identifier from the original node (that represents the formal package).
7524
7525 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
7526
7527         * Make-lang.in (ada/stamp-sdefault): Use the top level
7528         move-if-change.
7529
7530 2004-02-19  Richard Henderson  <rth@redhat.com>
7531
7532         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
7533
7534 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
7535
7536         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
7537         Scan_ALI can be used for multiple ALI files without reinitializing
7538         between calls.
7539
7540 2004-02-18  Robert Dewar  <dewar@gnat.com>
7541
7542         * debug.adb: Minor reformatting.
7543
7544 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7545
7546         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
7547         to zero if there is an address clause.
7548
7549 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
7550
7551         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
7552
7553 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
7554
7555         * layout.adb (Layout_Component_List): Revise generation of call to
7556         discriminant-checking function to pass selections of all of the type's
7557         discriminants rather than just the variant-controlling discriminant.
7558
7559 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
7560
7561         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
7562         fail in the current setup and triggers spurious system error messages.
7563         Pretend it occurred and failed instead.
7564
7565 2004-02-18  Vincent Celier  <celier@gnat.com>
7566
7567         * bld.adb: Mark FLDFLAGS as saved
7568         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
7569         it is not the root project.  Put each directory to be
7570         extended between double quotes to prevent it to be expanded on Windows.
7571         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
7572         the project file. Set them back to their initial values if they have not
7573         been set in the project file.
7574
7575         * gprcmd.adb: (Gprdebug, Debug): New global variables
7576         (Display_Command): New procedure
7577         (Usage): Document new command "linkopts"
7578         Call Display_Command when env var GPRDEBUG has the value "TRUE"
7579         Implement new command "linkopts"
7580         Remove quotes that may be around arguments for "extend"
7581         Always call Normalize_Pathname with arguments formatted for the platform
7582
7583         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
7584         Change @echo to @$(display) in target clean to be able to clean silently
7585
7586         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
7587
7588         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
7589         canonical case.
7590
7591         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
7592         = Extending_All when current project is an extending all project.
7593
7594         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
7595         set to True only for LINK command, after Unix switch -o.
7596         (Process_Arguments): Set Output_File_Expected to True for LINK command
7597         after Unix switch -o. When Output_File_Expected is True, never add an
7598         extension to a file name.
7599
7600         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
7601         option file name, only to the --for-linker= switch.
7602         (Option_File_Name): If option file name do not end with ".opt", append
7603         "/OPTIONS".
7604
7605 2004-02-18  GNAT Script  <nobody@gnat.com>
7606
7607         * Make-lang.in: Makefile automatically updated
7608
7609 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
7610
7611         * Make-lang.in (stamp-sdefault): Do not depend on
7612         move-if-change.
7613
7614 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
7615
7616         * config-lang.in: Disable Ada by default until probe logic for
7617         a bootstrap Ada compiler can be moved to the top level configure
7618         script.
7619
7620 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
7621
7622         * decl.c (components_to_record): Don't claim that the internal fields
7623         we make to hold the variant parts are semantically addressable, because
7624         they are not.
7625
7626         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
7627         adjust the comment describing the modular type form when we can use it.
7628         (Install_PAT): Account for the Esiz renaming.
7629
7630         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
7631         sc_onstack context indication before raising the exception to which
7632         the signal is mapped. Allows better handling of later signals possibly
7633         triggered by the resumed user code if the exception is handled.
7634
7635 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
7636
7637         * 5zinit.adb: Removed, no longer used.
7638
7639 2004-02-12  Robert Dewar  <dewar@gnat.com>
7640
7641         * ali.adb: Remove separating space between parameters on R line. Makes
7642         format consistent with format used by the binder for Set_Globals call.
7643
7644         * atree.ads, atree.adb: Minor reformatting (new function header format)
7645
7646         * bindgen.adb: Add Run-Time Globals documentation section containing
7647         detailed documentation of the globals passed from the binder file to
7648         the run time.
7649
7650         * gnatls.adb: Minor reformatting
7651
7652         * init.c (__gnat_set_globals): Add note pointing to documentation in
7653         bindgen.
7654
7655         * lib-writ.ads, lib-writ.adb: Remove separating space between
7656         parameters on R line.
7657         Makes format consistent with format used by the binder for Set_Globals
7658         call.
7659
7660         * osint.ads: Add 2004 to copyright notice
7661         Minor reformatting
7662
7663         * snames.ads: Correct capitalization of FIFO_Within_Priorities
7664         Noticed during code reading, documentation issue only
7665
7666         * usage.adb: Remove junk line for obsolete C switch
7667         Noticed during code reading
7668
7669 2004-02-12  Vincent Celier  <celier@gnat.com>
7670
7671         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
7672         extend for each directory, so that multiple /** directories are
7673         extended individually.
7674         (Recursive_Process): Set the default for LANGUAGES to ada
7675
7676         * gprcmd.adb: Define new command "ignore", to do nothing.
7677         Implement new comment "path".
7678
7679         * Makefile.generic: Suppress output when SILENT is set
7680         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
7681         used, so that the correct compiler is invoked.
7682         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
7683         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
7684
7685 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
7686
7687         * Makefile.in: Clean ups and remove obsolete targets.
7688
7689 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
7690
7691         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
7692         predicate declared in exp_util.
7693
7694         * exp_util.adb: Add comments.
7695
7696         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
7697         visibility before compiling context of the subunit.
7698
7699         * sem_res.adb (Check_Parameterless_Call): If the context expects a
7700         value but the name is a procedure, do not attempt to analyze as a call,
7701         in order to obtain more telling diagnostics.
7702
7703         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
7704         'Access on parameterless function calls.
7705         (Normalize_Actuals): For a parameterless function call with missing
7706         actuals, defer diagnostic until resolution of enclosing call.
7707
7708         * sem_util.adb (Wrong_Type): If the context type is an access to
7709         subprogram and the expression is a procedure name, suggest a missing
7710         'attribute.
7711
7712 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
7713             Nathanael Nerode  <neroden@gcc.gnu.org>
7714
7715         PR ada/6637, PR ada/5911
7716         Merge with libada-branch:
7717         * config-lang.in: Build libada only when ada is built.
7718
7719 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
7720
7721         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
7722         for a tagged type, verify that both formals have the same type.
7723
7724         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
7725         temporary when the formal is an in-parameter and the actual a possibly
7726         unaligned slice.
7727
7728         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
7729         when expansion is disabled, to ensure proper name capture with
7730         overloaded literals.  Condition can be of any boolean type, resolve
7731         accordingly.
7732
7733         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
7734         renaming is for a formal subprogram with a default operator name, and
7735         there is a usable operator that is visible at the point of
7736         instantiation.
7737
7738 2004-02-09  Robert Dewar  <dewar@gnat.com>
7739
7740         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
7741         rewrite to ignore errors in ali files, intended to allow tools downward
7742         compatibility with new versions of ali files.
7743
7744         * ali.ads: Add new parameter Ignore_Errors
7745
7746         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
7747         duplicating the error message giving the file with restrictions.
7748
7749         * debug.adb: Add debug flag I for gnatbind
7750
7751         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
7752         operators for the case where the operator is a defining operator.
7753
7754         * exp_ch3.adb: Minor reformatting (new function spec format).
7755
7756         * exp_ch4.adb: Add comment for previous change, and make minor
7757         adjustment to loop to always check for improper loop termination.
7758         Minor reformatting throughout (new function spec format).
7759
7760         * gnatbind.adb: Implement -di debug flag for gnatbind
7761
7762         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
7763
7764         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
7765
7766         * lib-load.adb: Fix bad assertion.
7767         Found by testing and code reading.
7768         Minor reformatting.
7769
7770         * lib-load.ads: Minor reformatting.
7771
7772         * lib-writ.adb: There is only one R line now.
7773
7774         * lib-writ.ads: Add documentation on making downward compatible changes
7775         to ali files so old tools work with new ali files.
7776         There is only one R line now.
7777         Add documentation on format incompatibilities (with special GPS note)
7778
7779         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
7780
7781         * par-load.adb: Minor reformatting
7782
7783         * sem_ch8.adb: Fix to error message from last update
7784         Minor reformatting and restructuring of code from last update
7785
7786         * par-prag.adb, snames.adb, snames.ads, snames.h,
7787         sem_prag.adb: Implement pragma Profile.
7788
7789         * stylesw.adb: Implement -gnatyN switch to turn off all style check
7790         options.
7791
7792         * usage.adb: Add line for -gnatyN switch
7793
7794         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
7795
7796 2004-02-09  Albert Lee  <lee@gnat.com>
7797
7798         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
7799
7800 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
7801
7802         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
7803         slices.
7804
7805         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
7806         is nested in an instance that is not frozen yet, to avoid
7807         order-of-elaboration problems in gigi.
7808
7809         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
7810         body the attribute is legal.
7811
7812 2004-02-09  Robert Dewar  <dewar@gnat.com>
7813
7814         * s-rident.ads: Minor comment correction
7815
7816         * targparm.adb: Remove dependence on uintp completely. There was
7817         always a bug in Make in that it called Targparm before initializing
7818         the Uint package. The old code appeared to get away with this, but
7819         the new code did not! This caused an assertion error in gnatmake.
7820
7821         * targparm.ads: Fix bad comment, restriction pragmas with parameters
7822         are indeed fully supported.
7823
7824 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
7825
7826         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
7827
7828 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
7829
7830         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
7831         with targetm.calls.promote_prototypes.
7832
7833 2004-02-04  Robert Dewar  <dewar@gnat.com>
7834
7835         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
7836         ali.ads, gprcmd.adb: Minor reformatting
7837
7838         * bindgen.adb: Output restrictions string for new style restrictions
7839         handling
7840
7841         * impunit.adb: Add s-rident.ads (System.Rident) and
7842         s-restri (System.Restrictions)
7843
7844         * lib-writ.adb: Fix bug in writing restrictions string (last few
7845         entries wrong)
7846
7847         * s-restri.ads, s-restri.adb: Change name Restrictions to
7848         Run_Time_Restrictions to avoid conflict with package name.
7849         Add circuit to read and acquire run time restrictions.
7850
7851 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
7852
7853         * restrict.ads, restrict.adb: Use the new restriction
7854         No_Task_Attributes_Package instead of the old No_Task_Attributes.
7855
7856         * sem_prag.adb: No_Task_Attributes is a synonym of
7857         No_Task_Attributes_Package.
7858
7859         * snames.ads, snames.adb: New entry for proper handling of
7860         No_Task_Attributes.
7861
7862         * s-rident.ads: Adding restriction No_Task_Attributes_Package
7863         (AI-00249) that supersedes the GNAT specific restriction
7864         No_Task_Attributes.
7865
7866 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
7867
7868         * sem_prag.adb:
7869         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
7870          body, an identifier may be wrapped in an unchecked conversion.
7871
7872 2004-02-04  Vincent Celier  <celier@gnat.com>
7873
7874         * lib-writ.ads: Comment update for the W lines
7875
7876         * bld.adb: (Expression): An empty string list is static
7877
7878         * fname-uf.adb: Minor comment update
7879
7880         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
7881
7882         * gnatbind.adb: Initialize Cumulative_Restrictions with the
7883         restrictions on the target.
7884
7885 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7886
7887         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
7888         gen_rtx.
7889
7890 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
7891
7892         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
7893
7894 2004-02-02  Vincent Celier  <celier@gnat.com>
7895
7896         * gprcmd.adb (Check_Args): If condition is false, print the invoked
7897         comment before the usage.
7898         Gprcmd: Fail when command is not recognized.
7899         (Usage): Document command "prefix"
7900
7901         * g-md5.adb (Digest): Process last block.
7902         (Update): Do not process last block. Store remaining characters and
7903         length in Context.
7904
7905         * g-md5.ads (Update): Document that several call to update are
7906         equivalent to one call with the concatenated string.
7907         (Context): Add fields to allow new Update behaviour.
7908
7909         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
7910         defaulted to False.
7911         When May_Fail is True and no existing file can be found, return No_File.
7912
7913         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
7914         functions.
7915
7916         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
7917         spec file name instead on the W line.
7918
7919 2004-02-02  Robert Dewar  <dewar@gnat.com>
7920
7921         * ali.adb: Read and acquire info from new format restrictions lines
7922
7923         * bcheck.adb: Add circuits for checking restrictions with parameters
7924
7925         * bindgen.adb: Output dummy restrictions data
7926         To be changed later
7927
7928         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
7929         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
7930         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
7931         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
7932         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
7933
7934         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
7935         the warning message on access to possibly uninitialized variable S)
7936         Minor changes for new restrictions handling.
7937
7938         * gnatbind.adb: Minor reformatting
7939         Minor changes for new restrictions handling
7940         Move circuit for -r processing here from bcheck (cleaner)
7941
7942         * gnatcmd.adb, gnatlink.adb: Minor reformatting
7943
7944         * lib-writ.adb: Output new format restrictions lines
7945
7946         * lib-writ.ads: Document new R format lines for new restrictions
7947         handling.
7948
7949         * s-restri.ads/adb: New files
7950
7951         * Makefile.rtl: Add entry for s-restri.ads/adb
7952
7953         * par-ch3.adb: Fix bad error messages starting with upper case letter
7954         Minor reformatting
7955
7956         * restrict.adb: Major rewrite throughout for new restrictions handling
7957         Major point is to handle restrictions with parameters
7958
7959         * restrict.ads: Major changes in interface to handle restrictions with
7960         parameters. Also generally simplifies setting of restrictions.
7961
7962         * snames.ads/adb: New entry for proper handling of No_Requeue
7963
7964         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
7965         restriction counting.
7966         Other minor changes for new restrictions handling
7967
7968         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
7969         Restriction_Warnings now allows full parameter notation
7970         Major rewrite of Restrictions for new restrictions handling
7971
7972 2004-02-02  Javier Miranda  <miranda@gnat.com>
7973
7974         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
7975         syntax rule for object renaming declarations.
7976         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
7977         component definitions.
7978
7979         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
7980         components.
7981         (Array_Type_Declaration): Give support to access components. In addition
7982         it was also modified to reflect the name of the object in anonymous
7983         array types. The old code did not take into account that it is possible
7984         to have an unconstrained anonymous array with an initial value.
7985         (Check_Or_Process_Discriminants): Allow access discriminant in
7986         non-limited types.
7987         (Process_Discriminants): Allow access discriminant in non-limited types
7988         Initialize the new Access_Definition field in N_Object_Renaming_Decl
7989         node.  Change Ada0Y to Ada 0Y in comments
7990
7991         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
7992         equality operators.
7993         Change Ada0Y to Ada 0Y in comments
7994
7995         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
7996         renamings Change Ada0Y to Ada 0Y in comments
7997
7998         * sem_type.adb (Find_Unique_Type): Give support to the equality
7999         operators for universal access types
8000         Change Ada0Y to Ada 0Y in comments
8001
8002         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
8003
8004         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
8005         field.
8006         (N_Object_Renaming_Declaration): Addition of Access_Definition field
8007         Change Ada0Y to Ada 0Y in comments
8008
8009         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
8010         component definition and object renaming nodes
8011         Change Ada0Y to Ada 0Y in comments
8012
8013 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
8014
8015         * restrict.adb: Use the new restriction identifier
8016         No_Requeue_Statements instead of the old No_Requeue for defining the
8017         restricted profile.
8018
8019         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
8020         No_Requeue_Statements.
8021
8022         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
8023         that supersedes the GNAT specific restriction No_Requeue. The later is
8024         kept for backward compatibility.
8025
8026 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
8027
8028         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
8029         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
8030         pragma and fix incorrect ones.
8031
8032         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
8033         warning if the pragma is redundant.
8034
8035 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
8036
8037         * 5staprop.adb: Add missing 'constant' keywords.
8038
8039         * Makefile.in: use consistent value for SYMLIB on
8040         platforms where libaddr2line is supported.
8041
8042 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8043
8044         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
8045         annotating types.
8046
8047 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
8048
8049         * init.c (__gnat_install_handler): Setup an alternate stack for signal
8050         handlers in the environment thread. This allows proper propagation of
8051         an exception on stack overflows in this thread even when the builtin
8052         ABI stack-checking scheme is used without support for a stack reserve
8053         region.
8054
8055         * utils.c (create_field_decl): Augment the head comment about bitfield
8056         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
8057         here, because the former is not accurate enough at this point.
8058         Let finish_record_type decide instead.
8059         Don't make a bitfield if the field is to be addressable.
8060         Always set a size for the field if the record is packed, to ensure the
8061         checks for bitfield creation are triggered.
8062         (finish_record_type): During last pass over the fields, clear
8063         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
8064         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
8065         from DECL_BIT_FIELD.
8066
8067 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
8068
8069         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
8070         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
8071         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
8072
8073 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8074
8075         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
8076
8077         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
8078         (ZCX_By_Default): Likewise.
8079         (Front_End_ZCX_Support): Likewise.
8080
8081         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
8082         (Initialize_Lock): Mark Level unreferenced.
8083         (Sleep): Mark Reason unreferenced.
8084         (Timed_Sleep): Likewise.
8085         (Wakeup): Likewise.
8086         (Exit_Task): Use Result.
8087         (Check_No_Locks): Mark Self_ID unreferenced.
8088
8089         * 5gtasinf.adb (New_Sproc): Make Attr constant.
8090         (Bound_Thread_Attributes): Make Sproc constant.
8091         (New_Bound_Thread_Attributes): Likewise.
8092
8093 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
8094
8095         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
8096         one-dimensional array an slice assignments, when component type is
8097         controlled.
8098
8099         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
8100         component type is controlled, and control_actions are in effect, use
8101         TSS procedure rather than generating inline code.
8102
8103         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
8104         arrays with controlled components.
8105
8106 2004-01-26  Vincent Celier  <celier@gnat.com>
8107
8108         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
8109         command line for the non VMS case.
8110
8111         * gnatlink.adb (Process_Binder_File): When building object file, if
8112         GNU linker is used, put all object paths between quotes, to prevent ld
8113         error when there are unusual characters (such as '!') in the paths.
8114
8115         * Makefile.generic: When there are sources in Ada and the main is in
8116         C/C++, invoke gnatmake with -B, instead of -z.
8117
8118         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
8119         from VMS_Conversion.
8120         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
8121         specification of argument file on the command line.
8122
8123 2004-01-26  Bernard Banner  <banner@gnat.com>
8124
8125         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
8126
8127 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
8128
8129         * snames.adb: Update copyright notice.
8130         Add info on slice assignment for controlled arrays.
8131
8132 2004-01-23  Robert Dewar  <dewar@gnat.com>
8133
8134         * exp_aggr.adb: Minor reformatting
8135
8136         * exp_ch9.adb: Minor code clean up
8137         Minor reformatting
8138         Fix bad character in comment
8139
8140         PR ada/13471
8141         * targparm.adb (Get_Target_Parameters): Give clean abort error on
8142         unexpected end of file, along with more detailed message.
8143
8144 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8145
8146         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
8147         PAT.
8148
8149         * decl.c (copy_alias_set): New function.
8150         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
8151
8152 2004-01-23  Doug Rupp  <rupp@gnat.com>
8153
8154         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
8155         lib$${file} in case subsequent character is not a separator.
8156
8157 2004-01-23  Vincent Celier  <celier@gnat.com>
8158
8159         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
8160         when the GCC version is at least 3.
8161
8162         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
8163         Remove all "Opt.", to prepare for opt split
8164
8165         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
8166         Extends_All. Set to True when the project parsed is an extending all
8167         project. Fails for importing an extending all project only when the
8168         imported project is an extending all project.
8169         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
8170         depending on the value of Extends_All returned.
8171
8172         * prj-proc.adb (Process): Check that no project shares its object
8173         directory with a project that extends it, directly or indirectly,
8174         including a virtual project.
8175         Check that no project extended by another project shares its object
8176         directory with another also extended project.
8177
8178         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
8179         Kind = N_With_Clause
8180
8181         * prj-tree.ads: Minor reformatting
8182         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
8183
8184 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
8185
8186         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
8187         applies to a type with an incomplete view, use full view in Name of
8188         clause, for consistency with uses of Get_Attribute_Definition_Clause.
8189
8190 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
8191
8192         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
8193         SCHED_RR, since other values are not supported by this policy.
8194         (Initialize): Move initialization of mutex attribute to package
8195         elaboration, to prevent early access to this variable.
8196
8197         * Makefile.in: Remove mention of Makefile.adalib, unused.
8198
8199         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
8200         1ssecsta.ads: Removed, unused.
8201
8202 2004-01-21  Javier Miranda  <miranda@gnat.com>
8203
8204         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
8205         entity if already built in the current scope.
8206
8207         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
8208         reminder in internal scopes. Required for nested limited aggregates.
8209
8210 2004-01-21  Doug Rupp  <rupp@gnat.com>
8211
8212         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
8213         VMS. Replace all occurences of libgnat- and libgnarl- with
8214         libgnat$(hyphen) and libgnarl$(hyphen).
8215         Fixed shared library build problem on VMS.
8216
8217 2004-01-21  Robert Dewar  <dewar@gnat.com>
8218
8219         * mlib-prj.adb: Minor reformatting
8220
8221 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
8222
8223         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
8224         'constant' keywords for declaration of pointers that are not modified.
8225
8226         * exp_pakd.adb: Fix English in comment.
8227
8228 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
8229
8230         PR ada/10889
8231         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
8232         copy all attributes of the parent, including the foreign language
8233         convention.
8234
8235 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
8236
8237         PR ada/10565
8238         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
8239         for 'delay until' statement.
8240
8241 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
8242
8243         * Make-lang.in: Replace $(docdir) with doc.
8244         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
8245         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
8246         to use consistent MAKEINFO rule.
8247         (ada.man, ada.srcman): Dummy entry.
8248         (ADA_INFOFILES): Define.
8249         (ada.info, ada.srcinfo): New rules.
8250
8251 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
8252
8253         * utils.c: Update copyright notice, missed in previous change.
8254
8255 2004-01-19  Vincent Celier  <celier@gnat.com>
8256
8257         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
8258         args if Bind is True. Set First_ALI, if not already done.
8259         (Build_Library): For Stand Alone Libraries, extract from one ALI file
8260         an eventual --RTS switch, for gnatbind, and all backend switches +
8261         --RTS, for linking.
8262
8263 2004-01-19  Robert Dewar  <dewar@gnat.com>
8264
8265         * sem_attr.adb, memtrack.adb: Minor reformatting
8266
8267 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
8268
8269         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
8270         that rename enumeration literals. This is properly done in sem_eval.
8271
8272         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
8273         to functions that rename enumeration literals.
8274
8275         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
8276         functions that rename enumeration literals.
8277
8278 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
8279
8280         * Make-lang.in (utils.o): Depend on target.h.
8281         * utils.c: Include target.h.
8282         (process_attributes): Use targetm.have_named_sections instead
8283         of ASM_OUTPUT_SECTION_NAME.
8284
8285 2004-01-16  Andreas Jaeger  <aj@suse.de>
8286
8287         * Makefile.in: Add $(DESTDIR).
8288
8289 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
8290
8291         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
8292         also when not defining if a Size clause applies. That information is
8293         not to be ignored.
8294
8295 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
8296
8297         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
8298         symbolic links for the shared gnat run time when needed.
8299
8300 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
8301
8302         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
8303         for writing, and terminate with an error message if not.
8304
8305 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
8306
8307         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
8308         warning on an access to subprogram in an instance, when the target
8309         type is declared in the same generic unit.
8310         (Eval_Attribute): If 'access is known to fail accessibility check,
8311         rewrite as a raise statement.
8312
8313 2004-01-15  GNAT Script  <nobody@gnat.com>
8314
8315         * Make-lang.in: Makefile automatically updated
8316
8317 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
8318
8319         * Make-lang.in (ada.srcextra): Dummy entry.
8320
8321 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
8322
8323         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
8324
8325 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
8326
8327         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
8328         components that are initialized with aggregates.
8329
8330 2004-01-13  Vincent Celier  <celier@gnat.com>
8331
8332         * gnatlink.adb (Process_Binder_File): To find directory of shared
8333         libgcc, if "gcc-lib" is not a subdirectory, look for the last
8334         subdirectory "lib" in the path of the shared libgnat or libgnarl.
8335
8336         * make.adb (Gnatmake): If GCC version is at least 3, link with
8337         -shared-libgcc, when there is at least one shared library project.
8338
8339         * opt.ads (GCC_Version): New integer constant.
8340
8341         * adaint.c (get_gcc_version): New function.
8342
8343 2004-01-13  Robert Dewar  <dewar@gnat.com>
8344
8345         * sem_dist.adb, sem_res.adb, sem_util.adb,
8346         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
8347         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
8348
8349 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
8350
8351         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
8352         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
8353         declarations.
8354
8355 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
8356
8357         * misc.c: Remove trailing spaces.
8358         Update copyright notice missed in previous change.
8359
8360         PR ada/13572
8361         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
8362         prefix/share/make
8363
8364         * Makefile.generic: Update copyright.
8365         Add license notice.
8366
8367         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
8368         of prefix/share/make.
8369
8370         * Makefile.prolog: Update copyright.
8371         Add license notice.
8372
8373 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
8374
8375         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
8376         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
8377         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
8378         instead of String.
8379
8380         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
8381         signature.
8382
8383 2004-01-12  Javier Miranda  <miranda@gnat.com>
8384
8385         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
8386         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
8387         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
8388         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
8389         Component_Definition node.
8390
8391 2004-01-12  Ed Falis  <falis@gnat.com>
8392
8393         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
8394
8395 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
8396
8397         * link.c: Change default libgnat kind to STATIC for FreeBSD.
8398
8399 2004-01-12  Bernard Banner  <banner@gnat.com>
8400
8401         * Makefile.in: map 86numaux to a-numaux for x86_64
8402
8403 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
8404
8405         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
8406         generated to rename a generic actual, go to the actual itself, the
8407         subtype is not a user-visible entity.
8408
8409         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
8410         part is a private subtype, reset the visibility of its full view, if
8411         any, to be consistent.
8412
8413         PR ada/13417
8414         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
8415         to use a generic package G as a formal package for another generic
8416         declared within G.
8417
8418 2004-01-12  Robert Dewar  <dewar@gnat.com>
8419
8420         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
8421
8422         * usage.adb: Remove mention of obsolete -gnatwb switch
8423         Noticed during code reading
8424
8425 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
8426
8427         * 1ssecsta.adb: Minor changes for -gnatwa warnings
8428
8429 2004-01-12  GNAT Script  <nobody@gnat.com>
8430
8431         * Make-lang.in: Makefile automatically updated
8432
8433 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
8434
8435         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
8436
8437 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8438
8439         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
8440
8441 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
8442
8443         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
8444         Update comment and copyright date.
8445         * stamp-xgnatug: Delete.
8446
8447 2004-01-05  Robert Dewar  <dewar@gnat.com>
8448
8449         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
8450         be modified by the binder generated main program if the -D switch is
8451         used.
8452
8453         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
8454         imported functions (since now we expect this to be done for imported
8455         functions)
8456
8457         * 5vtaprop.adb: Add several ??? for sections requiring more comments
8458         Minor reformatting throughout
8459
8460         * 5zinit.adb: Minor reformatting
8461         Add 2004 to copyright date
8462         Minor changes to avoid -gnatwa warnings
8463         Correct some instances of using OR instead of OR ELSE (noted while
8464         doing reformatting)
8465
8466         * sprint.adb: Minor updates to avoid -gnatwa warnings
8467
8468         * s-secsta.ads, s-secsta.adb:
8469         (SS_Get_Max): New function to obtain high water mark for ss stack
8470         Default_Secondary_Stack is not a constant since it may be modified by
8471         the binder generated main program if the -D switch is used.
8472
8473         * switch-b.adb: New -Dnnn switch for binder
8474
8475         * switch-c.adb:
8476         Make -gnatg imply all warnings currently in -gnatwa
8477
8478         * vms_conv.adb: Minor reformatting
8479         Add 2004 to copyright notice
8480         Add 2004 to printed copyright notice
8481
8482         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
8483         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
8484         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
8485         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
8486         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
8487         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
8488         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
8489         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
8490         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
8491         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
8492         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
8493         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
8494         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
8495         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
8496         checks.adb, clean.adb, cstand.adb, einfo.ads,
8497         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
8498         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
8499         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
8500         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
8501         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
8502         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
8503         Minor reformatting and code clean ups.
8504         Minor changes to prevent -gnatwa warnings
8505
8506         * ali.adb: Minor reformatting and cleanup of code
8507         Acquire new SS indication of secondary stack use from ali files
8508
8509         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
8510         (since now we expect this to be done for imported functions)
8511
8512         * bindgen.adb: Generate call to modify default secondary stack size if
8513         -Dnnn switch given
8514
8515         * bindusg.adb: Add line for new -D switch
8516
8517         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
8518         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
8519         Add circuitry for both records and arrays to avoid gigi
8520         processing if the type involved has non-bit-aligned components
8521
8522         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
8523         N_String_Literal node always references an E_String_Literal_Subtype
8524         entity. This may not be true in the future.
8525         (Possible_Bit_Aligned_Component): Move processing of
8526         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
8527
8528         * exp_ch6.adb (Expand_Thread_Body): Pick up
8529         Default_Secondary_Stack_Size as variable so that we get value modified
8530         by possible -Dnnn binder parameter.
8531
8532         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
8533         (Type_May_Have_Bit_Aligned_Components): New function.
8534
8535         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
8536         (Type_May_Have_Bit_Aligned_Components): New function.
8537
8538         * fe.h: (Set_Identifier_Casing): Fix prototype.
8539         Add declaration for Sem_Elim.Eliminate_Error_Msg.
8540         Minor reformatting.
8541
8542         * freeze.adb (Freeze_Entity): Add RM reference to error message about
8543         importing constant atomic/volatile objects.
8544         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
8545         unless explicit Pure_Function pragma given, to avoid insidious bug of
8546         call to non-pure imported function getting eliminated.
8547
8548         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
8549         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
8550         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
8551         Add 2004 to printed copyright notice
8552
8553         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
8554         stack used.
8555
8556         * Makefile.rtl: Add entry for g-sestin.o
8557         g-sestin.ads: New file.
8558
8559         * mdll.adb: Minor changes to avoid -gnatwa warnings
8560
8561         * mlib-tgt.adb: Minor reformatting
8562
8563         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
8564         New switch Sec_Stack_Used (GNAT, GNATBIND)
8565         Make Default_Secondary_Stack_Size a variable instead of a constant,
8566         so that it can be modified by the new -Dnnn bind switch.
8567
8568         * rtsfind.adb (Load_Fail): Give full error message in configurable
8569         run-time mode if all_errors mode is set. This was not done in the case
8570         of a file not found, which was an oversight.
8571         Note if secondary stack unit is used by compiler.
8572
8573         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
8574         ineffective elaborate all pragmas on non-visible packages (this
8575         happened when a renamed subprogram was called). Now the elaborate all
8576         always goes on the package containing the renaming rather than the one
8577         containing the renamed subprogram.
8578
8579         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
8580         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
8581
8582         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
8583         has an Etype that references an E_String_Literal.
8584         (Eval_String_Literal): Avoid assumption that N_String_Literal node
8585         always references an E_String_Literal_Subtype entity. This may not
8586         be true in the future.
8587
8588         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
8589         pragma location.
8590
8591         * sem_res.adb (Resolve): Specialize msg for function name used in proc
8592         call.
8593
8594 2004-01-05  Ed Falis  <falis@gnat.com>
8595
8596         * g-debuti.adb: Replaced direct boolean operator with short-circuit
8597         form.
8598
8599 2004-01-05  Vincent Celier  <celier@gnat.com>
8600
8601         * bld.adb: Minor comment updates
8602         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
8603         of Item_Name).
8604
8605         * make.adb (Gnatmake): Special process for files to compile/check when
8606         -B is specified. Fail when there are only foreign mains in attribute
8607         Main of the project file and -B is not specified. Do not skip bind/link
8608         steps when -B is specified.
8609
8610         * makeusg.adb: Document new switch -B
8611
8612         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
8613
8614         * switch-m.adb: (Scan_Make_Switches): Process -B switch
8615
8616         * vms_data.ads: Add new GNAT PRETTY qualifier
8617         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
8618
8619 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8620
8621         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
8622         case.
8623
8624         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
8625         Set_Identifier_Casing.
8626
8627         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
8628         has size that overflows.
8629
8630 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
8631
8632         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
8633         -gnatwa warning on static condition.
8634
8635 2004-01-05  Doug Rupp  <rupp@gnat.com>
8636
8637         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
8638
8639 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
8640
8641         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
8642         all attributes, including read-only attribute.
8643
8644 2004-01-05  Pascal Obry  <obry@gnat.com>
8645
8646         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
8647         library naming scheme.
8648
8649         * mlib-prj.adb (Build_Library): Generate different names for the static
8650         or dynamic version of the GNAT runtime. This is needed to support the
8651         new shared library naming scheme.
8652         (Process_Binder_File): Add detection of shared library in binder file
8653         based on the new naming scheme.
8654
8655         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
8656         scheme for the shared runtime libraries.
8657
8658         * Makefile.in:
8659         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
8660         scheme.
8661         (install-gnatlib): Do not create symlinks for shared libraries.
8662         (gnatlib-shared-default): Idem.
8663         (gnatlib-shared-dual-win32): New target. Not used for now as the
8664         auto-import feature does not support arrays/records.
8665         (gnatlib-shared-win32): Do not create copy for the shared libraries.
8666         (gnatlib-shared-vms): Fix shared runtime libraries names.
8667
8668         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
8669         dependent runtime shared library name.
8670
8671 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
8672
8673         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
8674         than the object.
8675
8676 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
8677
8678         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
8679         protected objects when allocator has a subtype indication, not a
8680         qualified expression. Note that qualified expressions may have to be
8681         checked when limited aggregates are implemented.
8682
8683         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
8684         pure, emit warning.
8685         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
8686         subprogram is imported, remove warning.
8687
8688 2004-01-05  Geert Bosch  <bosch@gnat.com>
8689
8690         * s-poosiz.adb: Update copyright notice.
8691         (Allocate): Use Task_Lock to protect against concurrent access.
8692         (Deallocate): Likewise.
8693
8694 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
8695
8696         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
8697         comment.
8698
8699 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
8700
8701         * gnat_ug.texi: Force a CVS commit by updating copyright.
8702         * gnat_ug_vxw.texi: Regenerate.
8703         * gnat_ug_wnt.texi: Regenerate.
8704         * gnat_ug_vms.texi: Regenerate.
8705         * gnat_ug_unx.texi: Regenerate.
8706
8707 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
8708
8709         * trans.c: Remove uses of "register" specifier in
8710         declarations of local variables.
8711
8712 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
8713
8714         * stamp-xgnatug: New stamp file.
8715         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
8716         (ada/doctools/xgnatug): Add $(build_exeext).
8717         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
8718         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
8719
8720 2003-12-17  Ed Falis  <falis@gnat.com>
8721
8722         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
8723         eliminate warning.
8724
8725         * a-exextr.adb: Add context clause for
8726         Ada.Exceptions.Last_Chance_Handler.
8727
8728 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
8729
8730         * cstand.adb (Create_Standard): Change the way how the declaration of
8731         the Duration type is created (making it the same way as it is for all
8732         the other standard types).
8733
8734 2003-12-17  Robert Dewar  <dewar@gnat.com>
8735
8736         * s-crtl.ads: Fix header format
8737         Change Pure to Preelaborate
8738
8739 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
8740
8741         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
8742         the expression type only if it is declared in the current unit.
8743
8744         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
8745         are universal and already analyzed, as can occur in constrained
8746         subcomponents that depend on discriminants, when one constraint is a
8747         subtype mark.
8748
8749         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
8750         type Any_Fixed is legal as the argument of a conversion, if only one
8751         fixed-point type is in context.
8752
8753 2003-12-17  GNAT Script  <nobody@gnat.com>
8754
8755         * Make-lang.in: Makefile automatically updated
8756
8757 2003-12-15  Robert Dewar  <dewar@gnat.com>
8758
8759         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
8760         sec stack size.
8761
8762 2003-12-15  Vincent Celier  <celier@gnat.com>
8763
8764         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
8765         (Gnatchop): Do not set failure status when reporting the number of
8766         warnings.
8767
8768 2003-12-15  Doug Rupp  <rupp@gnat.com>
8769
8770         * s-ctrl.ads: New file.
8771
8772         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
8773
8774         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
8775         (GNATBIND_OBJS): Add ada/s-crtl.o.
8776
8777         * Makefile.in [VMS]: Clean up ifeq rules.
8778
8779         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
8780         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
8781         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
8782         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
8783         s-tasdeb.adb: Update copyright.
8784         Import System.CRTL.
8785         Make minor modifications to use System.CRTL declared functions instead
8786         of importing locally.
8787
8788 2003-12-15  GNAT Script  <nobody@gnat.com>
8789
8790         * Make-lang.in: Makefile automatically updated
8791
8792 2003-12-11  Ed Falis  <falis@gnat.com>
8793
8794         * 5zinit.adb: Clean up.
8795
8796         * 5zintman.adb (Notify_Exception): replaced case statement with a call
8797         to __gnat_map_signal, imported from init.c to support
8798         signal -> exception mappings that depend on the vxWorks version.
8799
8800         * init.c:
8801         Created and exported __gnat_map_signal to support signal -> exception
8802         mapping that is dependent on the VxWorks version.
8803         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
8804
8805 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
8806
8807         * 5wosinte.ads: Link with -mthreads switch.
8808
8809 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
8810
8811         * init.c (__gnat_install_handler [NetBSD]): Set
8812         __gnat_handler_installed, as done on all other platforms.
8813         Remove duplicated code.
8814
8815 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
8816
8817         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
8818
8819 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
8820
8821         * sinfo.ads: Fix inconsistent example code in comment.
8822
8823 2003-12-11  Robert Dewar  <dewar@gnat.com>
8824
8825         * a-tiinau.adb: Add a couple of comments
8826
8827         * sem_ch3.adb: Minor reformatting
8828
8829         * sem_prag.adb:
8830         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
8831         Minor reformatting throughout
8832
8833 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
8834
8835         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
8836         bounds of a loop, create a separate block in order to generate proper
8837         cleanup actions to prevent memory leaks.
8838
8839         * sem_res.adb (Resolve_Call): After a call to
8840         Establish_Transient_Scope, the call may be rewritten and relocated, in
8841         which case no further processing is needed.
8842
8843         * sem_util.adb: (Wrong_Type): Refine previous fix.
8844          Fixes ACATS regressions.
8845
8846         PR ada/13353
8847
8848         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
8849         be inlined.
8850
8851 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
8852
8853         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
8854         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
8855         obsolete files.
8856
8857         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
8858         (rts-zfp): Ditto.
8859
8860 2003-12-08  Robert Dewar  <dewar@gnat.com>
8861
8862         * 7sintman.adb: Minor reformatting
8863
8864         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
8865         standard linker options to get standard libraries linked. We now plan
8866         to provide dummy versions of these libraries to match the appropriate
8867         configurable run-time (e.g. if a library is not needed at all, provide
8868         a dummy empty library).
8869
8870         * targparm.ads: Configurable_Run_Time mode no longer affects linker
8871         options (-L parameters and standard libraries). What we plan to do is
8872         to provide dummy libraries where the libraries are not required.
8873
8874         * gnatbind.adb: Minor comment improvement
8875
8876 2003-12-08  Javier Miranda  <miranda@gnat.com>
8877
8878         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
8879         aggregate in the parent. Otherwise constants with limited aggregates
8880         are not supported. Add new formal to pass the component type (Ctype).
8881         It is required to call the corresponding IP subprogram in case of
8882         default initialized components.
8883         (Gen_Assign): In case of default-initialized component, generate a
8884         call to the IP subprogram associated with the component.
8885         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
8886         of aggregate with default initialized components.
8887         (Has_Default_Init_Comps): Improve implementation to recursively check
8888         all the present expressions.
8889
8890         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
8891         to indicate that the initialization call corresponds to a
8892         default-initialized component of an aggregate.
8893         In case of default initialized aggregate with tasks this parameter is
8894         used to generate a null string (this is just a workaround that must be
8895         improved later). In case of discriminants, this parameter is used to
8896         generate a selected component node that gives access to the discriminant
8897         value.
8898
8899         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
8900         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
8901         allocated aggregates with default-initialized components.
8902
8903         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
8904         the box notation is used in positional aggregates.
8905
8906 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
8907
8908         * lib.ads: Fix typo in comment
8909
8910 2003-12-08  Vincent Celier  <celier@gnat.com>
8911
8912         * prj.adb (Project_Empty): New component Unkept_Comments
8913         (Scan): Remove procedure; moved to Prj.Err.
8914
8915         * prj.ads (Project_Data): New Boolean component Unkept_Comments
8916         (Scan): Remove procedure; moved to Prj.Err.
8917
8918         * prj-dect.adb: Manage comments for the different declarations.
8919
8920         * prj-part.adb (With_Record): New component Node
8921         (Parse): New Boolean parameter Store_Comments, defaulted to False.
8922         Set the scanner to return ends of line and comments as tokens, if
8923         Store_Comments is True.
8924         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
8925         comments are associated with these nodes. Store the node IDs in the
8926         With_Records.
8927         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
8928         With_Records.
8929         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
8930         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
8931         current project. Call Tree.Restore afterwards. Set the various nodes
8932         for comment storage (Next_End, End_Of_Line, Previous_Line,
8933         Previous_End).
8934
8935         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
8936         defaulted to False.
8937
8938         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
8939         to False. When Truncated is True, truncate the string, never go to the
8940         next line.
8941         (Write_End_Of_Line_Comment): New procedure
8942         (Print): Process comments for nodes N_With_Clause,
8943         N_Package_Declaration, N_String_Type_Declaration,
8944         N_Attribute_Declaration, N_Typed_Variable_Declaration,
8945         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
8946         Process nodes N_Comment.
8947
8948         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
8949         without comments and there are some comments, set the flag
8950         Unkept_Comments to True.
8951         (Scan): If there are comments, set the flag Unkept_Comments to True and
8952         clear the comments.
8953         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
8954         (Next_End_Nodes: New table
8955         (Comment_Zones_Of): New function
8956         (Scan): New procedure; moved from Prj. Accumulate comments in the
8957         Comments table and set end of line comments, comments after, after end
8958         and before end.
8959         (Add_Comments): New procedure
8960         (Save, Restore, Seset_State): New procedures
8961         (There_Are_Unkept_Comments): New function
8962         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
8963         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
8964         procedures.
8965         (First_Comment_After, First_Comment_After_End): New functions
8966         (First_Comment_Before, First_Comment_Before_End): New functions
8967         (Next_Comment): New function
8968         (End_Of_Line_Comment, Follows_Empty_Line,
8969         Is_Followed_By_Empty_Line): New functions
8970         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
8971         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
8972         (Set_Next_Comment): New procedure
8973         (Default_Project_Node): Associate comment before if the node can store
8974         comments.
8975
8976         * scans.ads (Token_Type): New enumeration value Tok_Comment
8977         (Comment_Id): New global variable
8978
8979         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
8980         defaulted to False.
8981         (Scan): Store position of start of comment. If comments are tokens, set
8982         Comment_Id and set Token to Tok_Comment when scanning a comment.
8983         (Set_Comment_As_Token): New procedure
8984
8985         * sinput-p.adb: Update Copyright notice
8986         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
8987         that no longer exists.
8988
8989 2003-12-08  Javier Miranda  <miranda@gnat.com>
8990
8991         * sem_aggr.adb: Add dependence on Exp_Tss package
8992         Correct typo in comment
8993         (Resolve_Aggregate): In case of array aggregates set the estimated
8994         type of the aggregate before calling resolve. This is needed to know
8995         the name of the corresponding IP in case of limited array aggregates.
8996         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
8997         in case of default initialized array components.
8998
8999         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
9000         types. Required to give support to limited aggregates in generic
9001         formals.
9002
9003 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
9004
9005         * sem_ch3.adb (Check_Initialization): For legality purposes, an
9006         inlined body functions like an instantiation.
9007         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
9008         until bounds are analyzed, to diagnose premature use of type.
9009
9010         * sem_util.adb (Wrong_Type): Improve error message when the type of
9011         the expression is used prematurely.
9012
9013 2003-12-08  GNAT Script  <nobody@gnat.com>
9014
9015         * Make-lang.in: Makefile automatically updated
9016
9017 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
9018
9019         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
9020         they are automatically generated by Make-lang.in and cause nothing but
9021         maintenance troubles.
9022
9023 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
9024
9025         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
9026         version of this unit).
9027
9028 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
9029
9030         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
9031         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
9032         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
9033         the body of System.Interrupt_Management common to several targets.
9034         Update copyright notice when appropriate.
9035
9036         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
9037         constant.
9038
9039         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
9040         to ensure that the kernel fills in the interrupted context structure
9041         before calling a signal handler, which is necessary to be able to
9042         unwind past it. Update the copyright notice.
9043
9044 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
9045
9046         * a-elchha.ads: New file.
9047
9048         * a-elchha.adb: New default last chance handler. Contents taken from
9049         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
9050
9051         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
9052         is moved to a-elchha.adb to provide a target-independent default last
9053         chance handler.
9054
9055         * Makefile.rtl: Add a-elchha.o
9056
9057         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
9058
9059 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
9060
9061         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
9062         declared in an instance, do not inline the call if the instance is not
9063         frozen yet, to prevent order of elaboration problems.
9064
9065         * sem_prag.adb: Add comments for previous fix.
9066
9067 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
9068
9069         * g-table.adb: Use the right variable in Set_Item.
9070         Update copyright notice.
9071
9072 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
9073
9074         * Makefile.in: Remove unused rules.
9075
9076 2003-12-05  Vincent Celier  <celier@gnat.com>
9077
9078         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
9079         -nostdlib. Not needed here after all.
9080
9081 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
9082
9083         PR ada/11724
9084
9085         * adaint.h, adaint.c, g-os_lib.ads:
9086         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
9087         on some platforms (including FreeBSD), it is a 64 bit value.
9088         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
9089
9090 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
9091
9092         * gnatvsn.ads (Library_Version): Now contain only the relevant
9093         version info.
9094         (Verbose_Library_Version): New constant.
9095
9096         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
9097         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
9098         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
9099
9100         * gnatlbr.adb: Clean up: replace Library_Version by
9101         Verbose_Library_Version.
9102
9103         * make.adb, lib-writ.adb, exp_attr.adb:
9104         Clean up: replace Library_Version by Verbose_Library_Version.
9105
9106         * 5lintman.adb: Removed.
9107
9108         * Makefile.in:
9109         Update and simplify computation of LIBRARY_VERSION.
9110         Fix computation of GSMATCH_VERSION.
9111         5lintman.adb is no longer used: replaced by 7sintman.adb.
9112
9113 2003-12-03  Robert Dewar  <dewar@gnat.com>
9114
9115         * exp_ch5.adb:
9116         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
9117         name. Modified to consider small non-bit-packed arrays as troublesome
9118         and in need of component-by-component assigment expansion.
9119
9120 2003-12-03  Vincent Celier  <celier@gnat.com>
9121
9122         * lang-specs.h: Process nostdlib as nostdinc
9123
9124         * back_end.adb: Update Copyright notice
9125         (Scan_Compiler_Arguments): Process -nostdlib directly.
9126
9127 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
9128
9129         * Makefile.in:
9130         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
9131         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
9132         included in HIE_NONE_TARGET_PAIRS.
9133
9134 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
9135
9136         * sem_attr.adb:
9137         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
9138         is legal in an instance, because legality is cheched in the template.
9139
9140         * sem_prag.adb:
9141         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
9142         appplied to an unchecked conversion of a formal parameter.
9143
9144         * sem_warn.adb:
9145         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
9146         variables.
9147
9148 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
9149
9150         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
9151         routines. The second one is new functionality to deal with backtracing
9152         through signal handlers.
9153         (unwind): Split into the two separate subroutines above.
9154         Update the documentation, and deal properly with sizeof (REG) different
9155         from sizeof (void*).
9156
9157 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
9158
9159         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
9160         so that the debugger can reliably access the value of the parameter,
9161         and therefore is able to display the exception name when an exception
9162         breakpoint is reached.
9163
9164 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
9165
9166         * fmap.adb: Fix typo in warning message.
9167
9168         * g-socket.ads, g-socket.adb: Make Free a visible instance of
9169         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
9170
9171 2003-12-01  Vincent Celier  <celier@gnat.com>
9172
9173         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
9174         ther is no Afile.
9175         (Build_Library): Get the switches only if Default_Switches is declared
9176         in package Binder.
9177
9178 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
9179
9180         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
9181         actuals that are indexed components, reanalyze actual to ensure that
9182         packed array references are properly expanded.
9183
9184         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
9185         attempted assignment to a discriminant.
9186
9187 2003-12-01  Robert Dewar  <dewar@gnat.com>
9188
9189         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
9190         reformatting.
9191
9192         * switch-c.adb: Minor reformatting of comments
9193
9194 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
9195
9196         * Makefile.in: Clean ups.
9197
9198 2003-12-01  GNAT Script  <nobody@gnat.com>
9199
9200         * Make-lang.in: Makefile automatically updated
9201
9202 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
9203
9204         * 5wsystem.ads: Disable zero cost exception, not ready yet.
9205
9206 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
9207
9208         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
9209         to force serialization.
9210
9211 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
9212
9213         * g-socket.ads, g-socket.adb:
9214         Clarify documentation of function Stream. Introduce a Free procedure
9215         to release the returned Stream once it becomes unused.
9216
9217         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
9218
9219 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
9220
9221         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
9222         since NT 4 cannot handle timeout values that are too large,
9223         e.g. DWORD'Last - 1.
9224
9225 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
9226
9227         * exp_ch4.adb:
9228         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
9229         in procedure calls and whose expansion must be deferred.
9230
9231         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
9232         is in exp_ch4.
9233
9234         * sem_ch3.adb:
9235         (Build_Derived_Array_Type): Create operator for unconstrained type
9236         if ancestor is unconstrained.
9237
9238 2003-11-26  Vincent Celier  <celier@gnat.com>
9239
9240         * make.adb (Project_Object_Directory): New global variable
9241         (Change_To_Object_Directory): New procedure
9242         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
9243         of Change_Dir directly. Do not change working directory to object
9244         directory of main project after each compilation.
9245         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
9246         directly.
9247         Change to object directory of main project before binding step.
9248         (Initialize): Initialize Project_Object_Directory to No_Project
9249
9250         * mlib-prj.adb:
9251         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
9252         binding a Stand-Alone Library.
9253
9254         * output.adb: Update Copyright notice
9255         (Write_Char): Output buffer when full
9256
9257 2003-11-26  Robert Dewar  <dewar@gnat.com>
9258
9259         * sem_ch13.adb: (Check_Size): Reset size if size is too small
9260
9261         * sem_ch13.ads:
9262         (Check_Size): Fix documentation to include bit-packed array case
9263
9264         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
9265
9266         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
9267
9268         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
9269
9270 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
9271
9272         PR ada/13142
9273         * utils.c (init_gigi_decls): Change name of built-in setjmp to
9274         __builtin_setjmp, since this is apparently needed by recent
9275         non Ada changes.
9276
9277 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9278
9279         * adadecode.c: Only include ctype.h if not IN_GCC.
9280         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
9281
9282 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
9283
9284         * Makefile.in:
9285         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
9286         signals and interrupts.
9287
9288         * 5zintman.ads: New File.
9289
9290         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
9291         add exception signals to the set of unmasked signals.
9292
9293         * 5ztaprop.adb:
9294         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
9295         between signals and interrupts.
9296         Add to Unblocked_Signal_Mask the set of signals that are in
9297         Keep_Unmasked.
9298
9299         * 7sinmaop.adb:
9300         Adding a check to see whether the Interrupt_ID we want to unmask is in
9301         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
9302         reason is that the index type of the Keep_Unmasked array is not always
9303         Interrupt_ID; it may be a subtype of Interrupt_ID.
9304
9305 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
9306
9307         * exp_util.adb:
9308         (Remove_Side_Effects): Condition constantness of object created for a
9309          an unchecked type conversion on the constantness of the expression
9310          to ensure the correct value for 'Constrained when passing components
9311          of view-converted class-wide objects.
9312
9313 2003-11-24  Robert Dewar  <dewar@gnat.com>
9314
9315         * par-load.adb (Load): Improve handling of misspelled and missing units
9316         Removes several cases of compilation abandoned messages
9317
9318         * lib.adb: (Remove_Unit): New procedure
9319
9320         * lib.ads: (Remove_Unit): New procedure
9321
9322         * lib-load.adb: Minor reformatting
9323
9324 2003-11-24  Vincent Celier  <celier@gnat.com>
9325
9326         * make.adb:
9327         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
9328         (Marking_Label): Label to mark processed source files. Incremented for
9329         each executable.
9330         (Gnatmake): Increase Marking_Labet for each executable
9331         (Is_Marked): Compare against marking label
9332         (Mark): Mark with marking label
9333
9334 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
9335
9336         * s-thread.ads:
9337         Move the declaration of the TSD for System.Threads to System.Soft_Links.
9338         Add some comments.
9339
9340         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
9341         (rts-cert): build a single relocatable object for the run-time lib.
9342         Fix perms.
9343
9344 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
9345
9346         * Make-lang.in:
9347         Use gnatls rather than gcc to obtain the location of GNAT RTL for
9348         crosstools build.
9349
9350 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
9351
9352         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
9353         can not use it as before (that is, as a variable) when dumping it into
9354         the tree file. Add a local variable to store the result of this
9355         function and to be used as the string to be written into the tree.
9356
9357         * scn.adb (Initialize_Scanner): Add comments explaining the recent
9358         changes.
9359
9360         * sinput.adb (Source_First, Source_Last): In case of
9361         Internal_Source_File, replace returning attributes of
9362         Internal_Source_Ptr (which is wrong) with returning attributes of
9363         Internal_Source.
9364
9365 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
9366
9367         * sem_ch3.adb:
9368         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
9369         used for implicit concatenation operators.
9370         Code cleanup.
9371
9372         * sem_elab.adb:
9373         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
9374         task bodies that are in the scope of a Suppress pragma.
9375         (Check_A Call): Use the flag to prevent spurious elaboration checks.
9376
9377         * sinfo.ads, sinfo.adb:
9378         New flag No_Elaboration_Check on function/procedure calls, to properly
9379         suppress checks on calls in task bodies that are within a local suppress
9380         pragma.
9381
9382         * exp_ch4.adb:
9383         (Expand_Concatenate_Other): Use the proper integer type for the
9384         expression for the upper bound, to avoid universal_integer computations
9385         when possible.
9386
9387 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
9388
9389         * .cvsignore: Delete.
9390
9391 2003-11-21  Andreas Schwab  <schwab@suse.de>
9392
9393         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
9394
9395 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
9396
9397         * 5wsystem.ads: Enable zero cost exception.
9398
9399 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
9400
9401         * 5ztiitho.adb: Remove an unreferenced variable.
9402
9403 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
9404
9405         * adaint.c: For FreeBSD, use mkstemp.
9406
9407 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
9408
9409         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
9410
9411 2003-11-21  Robert Dewar  <dewar@gnat.com>
9412
9413         * bld.adb: Remove useless USE of gnatvsn
9414
9415         * gnatchop.adb: Minor reformatting
9416         Clean up version handling to be more consistent
9417
9418         * gnatxref.adb: Minor reformatting
9419
9420         * gprcmd.adb: Minor reformatting
9421         Fix output of copyright to be more consistent with other tools
9422
9423 2003-11-21  Vincent Celier  <celier@gnat.com>
9424
9425         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
9426
9427 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
9428
9429         * atree.adb (Initialize): Add initializations for global variables
9430         used in New_Copy_Tree.
9431
9432         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
9433         Internal_Source_File as the actual).
9434         Put the set of statements creating Any_Character before the set of
9435         statements creating Any_Array to have Any_Character fully initialized
9436         when it is used in creating Any_Array.
9437
9438         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
9439         not call Scan in case if the actual is Internal_Source_File
9440         Add 2003 to copyright note.
9441
9442         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
9443         processing Internal_Source_File.
9444
9445         * types.ads: Add the constant Internal_Source_File representing the
9446         source buffer for artificial source-code-like strings created within
9447         the compiler (the definition of Source_File_Index is changed).
9448
9449 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
9450
9451         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
9452         56system.ads: New file, FreeBSD version.
9453
9454 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
9455
9456         * Make-lang.in (ada.extraclean): Delete.
9457
9458 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
9459
9460         * gnatmem.adb: Clean up verbose output.
9461
9462         * gprcmd.adb: Change copyright to FSF.
9463
9464 2003-11-19  Vincent Celier  <celier@gnat.com>
9465
9466         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
9467         and Version (ignored).
9468
9469         * symbols.ads: (Policy): New type
9470         (Initialize): New parameter Reference, Symbol_Policy and
9471         Library_Version.
9472         Remove parameter Force.
9473         Minor reformatting.
9474
9475         * snames.ads, snames.adbadb: New standard names
9476         Library_Reference_Symbol_File and Library_Symbol_Policy
9477
9478         * mlib-prj.adb:
9479         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
9480         project.
9481
9482         * mlib-tgt.adb:
9483         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
9484
9485         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
9486
9487         * prj.adb: (Project_Empty): New component Symbol_Data
9488
9489         * prj.ads: (Policy, Symbol_Record): New types
9490         (Project_Data): New component Symbol_Data
9491
9492         * prj-attr.adb:
9493         New attributes Library_Symbol_File, Library_Symbol_Policy and
9494         Library_Reference_Symbol_File.
9495
9496         * prj-nmsc.adb:
9497         (Ada_Check): When project is a Stand-Alone library project, process
9498         attribute Library_Symbol_File, Library_Symbol_Policy and
9499         Library_Reference_Symbol_File.
9500
9501         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9502         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
9503         5sml-tgt.adb (Build_Dynamic_Library): New parameter
9504         Symbol_Data (ignored).
9505
9506         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
9507         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
9508         functions Option_File_Name and Version_String. Set new options of
9509         gnatsym related to symbol file, symbol policy and reference symbol
9510         file.
9511
9512         * 5vsymbol.adb:
9513         Extensive modifications to take into account the reference symbol file,
9514         the symbol policy, the library version and to put in the symbol file the
9515         minor and major IDs.
9516
9517         * bld.adb (Process_Declarative_Items): Put second argument of
9518         gprcmd to_absolute between single quotes, to avoid problems with
9519         Windows.
9520
9521         * bld-io.adb: Update Copyright notice.
9522         (Flush): Remove last character of a line, if it is a back slash, to
9523         avoid make problems.
9524
9525         * gnatsym.adb:
9526         Implement new scheme with reference symbol file and symbol policy.
9527
9528         * g-os_lib.ads: (Is_Directory): Clarify comment
9529
9530 2003-11-19  Robert Dewar  <dewar@gnat.com>
9531
9532         * atree.adb: Move New_Copy_Tree global variables to head of package
9533
9534         * errout.adb: Minor reformatting
9535
9536 2003-11-19  Javier Miranda  <miranda@gnat.com>
9537
9538         * sem_ch4.adb: (Diagnose_Call): Improve error message.
9539         Add reference to Ada0Y (AI-50217)
9540
9541         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
9542         sem_util.adb: Add reference to AI-50217
9543
9544         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
9545
9546         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
9547
9548         * sem_aggr.adb: Complete documentation of AI-287 changes
9549
9550         * par-ch4.adb: Document previous changes.
9551
9552         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
9553         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
9554         Ada0Y (AI-50217)
9555
9556         * exp_aggr.adb: Add references to AI-287 in previous changes
9557
9558 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
9559
9560         * exp_ch6.adb:
9561         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
9562         in the rewriting is the result of an inlined call.
9563
9564         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
9565         parameter is a type conversion, use original node to construct the
9566         post-call assignment, because expression may have been rewritten, e.g.
9567         if it is a packed array.
9568
9569         * sem_attr.adb:
9570         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
9571         body, just as it is in an instance.
9572         Categorization routines
9573
9574         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
9575         Instantiate_Object): Set proper sloc reference for message on missing
9576         actual.
9577
9578 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
9579
9580         * Makefile.in: Add FreeBSD libgnat pairs.
9581
9582         * usage.adb: Fix typo in usage message.
9583
9584 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
9585
9586         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
9587         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
9588         pragma Thread_Body.
9589         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
9590
9591         * s-thread.adb: This file is now a dummy implementation of
9592         System.Thread.
9593
9594 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
9595
9596         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
9597
9598 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
9599
9600         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9601         instanciation references in the parent type description.
9602
9603 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9604
9605         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
9606
9607         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
9608         TYPE_PRECISION directly from esize.
9609
9610 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
9611
9612         * cstreams.c:
9613         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
9614
9615         * init.c: Initialization routines for FreeBSD
9616
9617         * link.c: Link info for FreeBSD
9618
9619         * sysdep.c: Add the case of FreeBSD
9620
9621 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
9622
9623         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
9624         already called in System.Threads.
9625
9626         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
9627         environment task, as it has been moved to System.Threads.Initialization.
9628
9629 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
9630
9631         * adaint.c (__gnatlib_install_locks): Only reference
9632         __gnat_install_locks on VMS, since other platforms can avoid using
9633         --enable-threads=gnat
9634
9635 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9636
9637         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
9638
9639         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
9640         TYPE_PACKED_ARRAY_TYPE_P.
9641         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
9642
9643         Part of PR ada/12806
9644         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
9645         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
9646
9647 2003-11-17  Vincent Celier  <celier@gnat.com>
9648
9649         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
9650         to False.
9651         Do not set exit status to Failure when Warning is True.
9652         (Gnatchop): Make errors "no compilation units found" and
9653         "no source files written" warnings only.
9654
9655         * make.adb (Gnatmake): When using a project file, set
9656         Look_In_Primary_Dir to False.
9657         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
9658         and Local_Configuration_Pragmas in the project where they are declared
9659         not an extending project which might have inherited them.
9660
9661         * osint.adb (Locate_File): If Name is already an absolute path, do not
9662         look for a directory.
9663
9664         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
9665         -gnats (Check_Syntax) is used, issue only a warning, not an error.
9666
9667         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
9668         in objects of type Variable_Value.
9669
9670         * prj.ads: (Variable_Value): New component Project
9671
9672         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
9673         is in a project extended by Project.
9674
9675         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
9676         Project of Variable_Values to this new parameter value.
9677         (Expression): Set component Project of Variable_Values.
9678         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
9679         Set the component Project in array elements.
9680
9681 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
9682
9683         * errout.adb: (Initialize): Add initialization for error nodes.
9684
9685         * sem_ch12.adb (Initialize): Add missing initializations for
9686         Exchanged_Views and Hidden_Entities.
9687
9688 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
9689
9690         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
9691         already instantiated tree for use in subsequent inlining.
9692         (Analyze_Associations, Instantiate_Formal_Subprogram,
9693         Instantiate_Object): improve error message for mismatch in
9694         instantiations.
9695
9696         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
9697         instantiations of subprograms declared in instances.
9698
9699 2003-11-17  Javier Miranda  <miranda@gnat.com>
9700
9701         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
9702         executed only under the Extensions_Allowed flag.
9703
9704 2003-11-17  Robert Dewar  <dewar@gnat.com>
9705
9706         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
9707         zeroes suppressed.
9708         (Address_Image): Fix bug of returning 0x instead of 0x0
9709         Minor reformatting (function specs).
9710
9711         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
9712         (missed case of 33-63)
9713
9714         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
9715
9716         * s-thread.adb: Add comments for pragma Restriction
9717
9718         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
9719         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
9720
9721 2003-11-17  Ed Falis  <falis@gnat.com>
9722
9723         * s-thread.adb: Added No_Tasking restriction for this implementation.
9724
9725 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
9726
9727         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9728         instanciation references in the parent type description.
9729
9730 2003-11-17  GNAT Script  <nobody@gnat.com>
9731
9732         * Make-lang.in: Makefile automatically updated
9733
9734 2003-11-16  Jason Merrill  <jason@redhat.com>
9735
9736         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
9737         and TAGS files that include them for each front end.
9738
9739 2003-11-14  Andreas Jaeger  <aj@suse.de>
9740
9741         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
9742         is the canonical version.
9743         * misc.c (gnat_handle_option): Likewise.
9744
9745         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
9746
9747         * 5nsystem.ads: New file for x86_64-linux-gnu.
9748
9749 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
9750
9751         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
9752
9753         * comperr.adb: Fix logic in previous change.
9754
9755 2003-11-13  Vincent Celier  <celier@gnat.com>
9756
9757         * 5bml-tgt.adb (Build_Dynamic_Library): Use
9758         Osint.Include_Dir_Default_Prefix instead of
9759         Sdefault.Include_Dir_Default_Name.
9760
9761         * gnatlbr.adb: Update Copyright notice
9762         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
9763         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
9764         instead of Sdefault.Object_Dir_Default_Name
9765
9766         * gnatlink.adb:
9767         (Process_Binder_File): Never suppress the option following -Xlinker
9768
9769         * mdll-utl.adb:
9770         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
9771         Sdefault.Object_Dir_Default_Name.
9772
9773         * osint.ads, osint.adb:
9774         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
9775         Minor reformatting.
9776
9777         * vms_conv.ads: Minor reformating
9778         Remove GNAT STANDARD and GNAT PSTA
9779
9780         * vms_conv.adb:
9781         Allow GNAT MAKE to have several files on the command line.
9782         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
9783         Sdefault.Object_Dir_Default_Name.
9784         Minor Reformating
9785         Remove data for GNAT STANDARD
9786
9787         * vms_data.ads:
9788         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
9789         Remove data for GNAT STANDARD
9790         Remove options and documentation for -gnatwb/-gnatwB: these warning
9791         options no longer exist.
9792
9793 2003-11-13  Ed Falis  <falis@gnat.com>
9794
9795         * 5zthrini.adb: (Init_RTS): Made visible
9796
9797         * 5zthrini.adb:
9798         (Register): Removed unnecessary call to taskVarGet that checked whether
9799          an ATSD was already set as a task var for the argument thread.
9800
9801         * s-thread.adb:
9802         Updated comment to reflect that this is a VxWorks version
9803         Added context clause for System.Threads.Initialization
9804         Added call to System.Threads.Initialization.Init_RTS
9805
9806 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
9807
9808         * 5zthrini.adb:
9809         (Init_RTS): New procedure, for the initialization of the run-time lib.
9810
9811         * s-thread.adb:
9812         Remove dependancy on System.Init, so that this file can be used in the
9813         AE653 sequential run-time lib.
9814
9815 2003-11-13  Robert Dewar  <dewar@gnat.com>
9816
9817         * bindgen.adb: Minor reformatting
9818
9819 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
9820
9821         * checks.adb:
9822         (Apply_Discriminant_Check): Do no apply check if target type is derived
9823         from source type with no applicable constraint.
9824
9825         * lib-writ.adb:
9826         (Ensure_System_Dependency): Do not apply the style checks that may have
9827         been specified for the main unit.
9828
9829         * sem_ch8.adb:
9830         (Find_Selected_Component): Further improvement in error message, with
9831         RM reference.
9832
9833         * sem_res.adb:
9834         (Resolve): Handle properly the case of an illegal overloaded protected
9835         procedure.
9836
9837 2003-11-13  Javier Miranda  <miranda@gnat.com>
9838
9839         * exp_aggr.adb:
9840         (Has_Default_Init_Comps): New function to check the presence of
9841         default initialization in an aggregate.
9842         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
9843         extension aggregate of a limited record. In addition, a new formal
9844         was added to do not initialize the record controller (if any) during
9845         this recursive expansion of ancestors.
9846         (Init_Controller): Add support for limited record components.
9847         (Expand_Record_Aggregate): In case of default initialized components
9848         convert the aggregate into a set of assignments.
9849
9850         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
9851         describing the new syntax.
9852         Nothing else needed to be done because this subprogram delegates part of
9853         its work to P_Precord_Or_Array_Component_Association.
9854         (P_Record_Or_Array_Component_Association): Give support to the new
9855         syntax for default initialization of components.
9856
9857         * sem_aggr.adb:
9858         (Resolve_Aggregate): Relax the strictness of the frontend in case of
9859         limited aggregates.
9860         (Resolve_Record_Aggregate): Give support to default initialized
9861         components.
9862         (Get_Value): In case of default initialized components, duplicate
9863         the corresponding default expression (from the record type
9864         declaration). In case of default initialization in the *others*
9865         choice, do not check that all components have the same type.
9866         (Resolve_Extension_Aggregate): Give support to limited extension
9867         aggregates.
9868
9869         * sem_ch3.adb:
9870         (Check_Initialization): Relax the strictness of the front-end in case
9871         of aggregate and extension aggregates. This test is now done in
9872         Get_Value in a per-component manner.
9873
9874         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
9875         expression corresponds to a limited aggregate. This test is now done
9876         in Get_Value.
9877
9878         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
9879         Box_Present flag.
9880
9881         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
9882         present in an N_Component_Association node
9883
9884 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
9885
9886         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
9887         type-conformant entry only if they are homographs.
9888
9889 2003-11-13  GNAT Script  <nobody@gnat.com>
9890
9891         * Make-lang.in: Makefile automatically updated
9892
9893 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9894
9895         * adadecode.c: Use <> form of include for ctype.h.
9896         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
9897
9898 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9899
9900         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
9901         Works around PR middle-end/6552.
9902
9903 2003-11-10  Ed Falis  <falis@gnat.com>
9904
9905         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
9906
9907         * 5zinit.adb: (Install_Handler): Moved back to spec
9908         (Install_Signal_Handlers): Deleted
9909
9910         * 5zthrini.adb: Added context clause for System.Storage_Elements
9911         (Register): Only handles creation of taskVar; initialization moved to
9912         Thread_Body_Enter.
9913         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
9914         Added declaration of environment task secondary stack and
9915         initialization.
9916
9917         * s-thread.adb: Implement bodies for thread body processing
9918
9919         * s-thread.ads:
9920         Added comment identifying supported targets for pragma Thread_Body.
9921
9922 2003-11-10  Pascal Obry  <obry@gnat.com>
9923
9924         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
9925         GNAT_MAX_PATH_LEN.
9926
9927         * s-fileio.adb:
9928         (Open): Properly check for string length before copying into the buffer.
9929         Raises Name_Error if buffer is too small. Note that this was a potential
9930         buffer overflow.
9931
9932 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
9933
9934         * bindgen.adb, comperr.adb: Code clean ups.
9935         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
9936
9937 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
9938
9939         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
9940
9941 2003-11-10  Vincent Celier  <celier@gnat.com>
9942
9943         * gprcmd.adb:
9944         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
9945         installation.
9946
9947         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
9948
9949         * prj.adb: (Project_Empty): Add new boolean component Virtual
9950
9951         * prj.ads: (Virtual_Prefix): New constant string
9952         (Project_Data): New boolean component Virtual
9953
9954         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
9955         a library project is extended by a virtual extending project.
9956
9957         * prj-part.adb:
9958         Modifications throughout to implement extending-all project, including:
9959         (Virtual_Hash, Processed_Hash): New hash tables
9960         (Create_Virtual_Extending_Project): New procedure
9961         (Look_For_Virtual_Projects_For): New procedure
9962
9963         * prj-proc.adb:
9964         (Process): After checking the projects, if main project is an
9965         extending-all project, set the object directory of all virtual extending
9966         project to the object directory of the main project.
9967         Adjust error message when a virtual extending project has the same
9968         object directory as an project being extended.
9969         (Recursive_Process): If name starts with the virtual prefix, set Virtual
9970         to True in the project data.
9971
9972         * prj-tree.adb:
9973         (Default_Project_Node): Add new boolean component Extending_All
9974         (Is_Extending_All): New function
9975         (Set_Is_Extending_All): New procedure
9976
9977         * prj-tree.ads: (Is_Extending_All): New function
9978         (Set_Is_Extending_All): New procedure
9979         (Project_Node_Record): New boolean component Extending_All
9980
9981         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
9982
9983         * vms_data.ads:
9984         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
9985
9986         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
9987         "gprcmd prefix" to define it.
9988
9989 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
9990
9991         * einfo.ads: Fix a typo and remove an extraneous word in comments.
9992
9993         * lib-load.adb:
9994         (Create_Dummy_Package_Unit): Set the scope of the entity for the
9995         created dummy package to Standard_Standard, not to itself, to
9996         defend other parts of the front-end against encoutering a cycle in
9997         the scope chain.
9998
9999         * sem_ch10.adb:
10000         (Analyze_With_Clause): When setting the entities for the successive
10001         N_Expanded_Names that constitute the name of a child unit, do not
10002         attempt to go further than Standard_Standard in the chain of scopes.
10003         This case arises from the placeholder units created by
10004         Create_Dummy_Package_Unit in the case of a with_clause for a
10005         nonexistent child unit.
10006
10007 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
10008
10009         * exp_ch6.adb:
10010         (Expand_Thread_Body): Place subprogram on scope stack, so that new
10011         declarations are given the proper scope.
10012
10013         * sem_ch13.adb:
10014         (Check_Expr_Constants): Reject an expression that contains a constant
10015         created during expansion, and that appears after the object to which
10016         the address clause applies.
10017
10018         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
10019         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
10020         that uses 'Range of a function call with controlled components, so
10021         that the function result can be finalized before starting the loop.
10022
10023         * sem_ch8.adb:
10024         (Find_Selected_Component): Improve error message when prefix is
10025         an implicit dereference of an incomplete type.
10026
10027 2003-11-10  Robert Dewar  <dewar@gnat.com>
10028
10029         * opt.ads: New Print_Standard flag for -gnatS switch
10030
10031         * sem_ch13.adb: Remove some additional checks for unaligned arrays
10032
10033         * cstand.adb (Create_Standard): Print out package standard if -gnatS
10034         switch set
10035
10036         * debug.adb: Update doc for -gnatds to discuss relationship with new
10037         -gnatS flag
10038
10039         * sinfo.adb: Add new field Entity_Or_Associated_Node
10040
10041         * sinfo.ads: Add new field Entity_Or_Associated_Node
10042         Update documentation for Associated_Node and Entity fields to clarify
10043         relationship and usage.
10044
10045         * sprint.adb:
10046         (Write_Id): Properly process Associated_Node field in generic template
10047
10048         * switch-c.adb:
10049         Recognize new -gnatS switch for printing package Standard
10050         This replaces gnatpsta
10051
10052         * usage.adb:
10053         Add line for  new -gnatS switch for printing package Standard
10054         This replaces gnatpsta
10055
10056 2003-11-10  Andreas Jaeger  <aj@suse.de>
10057
10058         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
10059         integer.
10060
10061 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
10062
10063         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
10064         by gnat1.
10065
10066 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
10067
10068         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
10069         no longer needed.
10070
10071         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
10072
10073         * sysdep.c: Add handling of cygwin.
10074
10075 2003-11-10  GNAT Script  <nobody@gnat.com>
10076
10077         * Make-lang.in: Makefile automatically updated
10078
10079 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
10080
10081         PR 12950
10082         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
10083         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
10084         Replace GNAT_ROOT by GCC_ROOT.
10085
10086         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
10087
10088 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
10089
10090         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
10091         and update for changed meaning of GET_MODE_BITSIZE.
10092
10093 2003-11-04  Doug Rupp  <rupp@gnat.com>
10094
10095         * sysdep.c: Problem discovered during IA64 VMS port.
10096         [VMS] #include <unixio.h> to get proper prototypes.
10097
10098         * adaint.c:
10099         Issues discovered/problems fixed during IA64 VMS port.
10100         [VMS] #define _POSIX_EXIT for proper semantics.
10101         [VMS] #include <unixio.h> for proper prototypes.
10102         [VMS] (fork): #define IA64 version.
10103         (__gnat_os_exit): Remove unnecessary VMS specific code.
10104
10105 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10106
10107         Part of PR ada/12806
10108
10109         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
10110         tree, not integer.
10111
10112         * decl.c:
10113         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
10114         not integer.
10115
10116         * targtyps.c, decl.c, misc.c,
10117         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
10118         routines to work around change in FP sizing semantics in GCC.
10119
10120         * utils.c:
10121         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
10122
10123         * gigi.h: (enumerate_modes): New function.
10124
10125         * Make-lang.in: (ada/misc.o): Add real.h.
10126
10127         * misc.c: (enumerate_modes): New function.
10128
10129 2003-11-04  Robert Dewar  <dewar@gnat.com>
10130
10131         * 3vtrasym.adb: Minor reformatting
10132         Use terminology encoded/decoded name, rather than C++ specific notion
10133         of mangling (this is the terminology used throughout GNAT).
10134
10135         * einfo.h: Regenerated
10136
10137         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
10138
10139         * exp_ch6.adb:
10140         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
10141
10142         * par-prag.adb: Add dummy entry for Thread_Body pragma
10143
10144         * rtsfind.ads:
10145         Add entries for System.Threads entities for thread body processing
10146
10147         * sem_attr.adb:
10148         (Analyze_Pragma, Access attributes): Check these are not applied to a
10149         thread body, since this is not permitted
10150
10151         * sem_prag.adb: Add processing for Thread_Body pragma.
10152         Minor comment fix.
10153
10154         * sem_res.adb:
10155         (Resolve_Call): Check for incorrect attempt to call a thread body
10156          procedure with a direct call.
10157
10158         * snames.ads, snames.adb: Add entry for Thread_Body pragma
10159         Add names associated with thread body expansion
10160
10161         * snames.h: Add entry for Thread_Body pragma
10162
10163         * s-thread.adb: Add entries for thread body processing
10164         These are dummy bodies so far
10165
10166         * s-thread.ads: Add documentation on thread body handling.
10167         Add entries for thread body processing.
10168
10169 2003-11-04  Javier Miranda  <miranda@gnat.com>
10170
10171         * sem_ch10.adb:
10172         (Build_Limited_Views): Return after posting an error in case of limited
10173         with_clause on subprograms, generics, instances or generic renamings
10174         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
10175         on subprograms, generics, instances or generic renamings
10176
10177 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
10178
10179         * raise.c (setup_to_install): Correct mistake in last revision; two
10180         arguments out of order.
10181
10182         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
10183         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
10184         notice, missed in previous change.
10185         Remove trailing blanks and other style errors introduced in previous
10186         change.
10187
10188 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
10189
10190         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
10191         rid of the wrapper for a LJM type, ensuring we don't do that if the
10192         field is addressable.  This avoids potential low level type view
10193         mismatches later on, for instance in a by-reference argument passing
10194         process.
10195
10196 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10197
10198         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
10199         aligned at byte boundary.
10200
10201 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
10202
10203         * decl.c (components_to_record): Do not delete the empty variants from
10204         the end of the union type.
10205
10206 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
10207
10208         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
10209         operation for a derived type, an explicit declaration may use a local
10210         subtype of Boolean.
10211
10212 2003-11-04  Vincent Celier  <celier@gnat.com>
10213
10214         * make.adb (Gnatmake): Allow main sources on the command line with a
10215         library project when it is only for compilation (no binding or
10216         linking).
10217
10218 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10219
10220         * Makefile.in: Remove many duplicate variables.
10221
10222 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
10223
10224         * Make-lang.in (dvi): Move targets to $(docobjdir).
10225         (gnat_ug_vms.dvi): Simplify rule and adjust target.
10226         (gnat_ug_wnt.dvi): Likewise.
10227         (gnat_ug_unx.dvi): Likewise.
10228         (gnat_ug_vxw.dvi): Likewise.
10229         (gnat_rm.dvi): Likewise.
10230         (gnat-style.dvi): Likewise.
10231
10232 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
10233
10234         * gigi.h: Missed commit from update for C90.
10235
10236 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
10237
10238         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
10239
10240 2003-10-31  Andreas Schwab  <schwab@suse.de>
10241
10242         * raise.c (get_action_description_for): Fix typo in last change.
10243
10244 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
10245
10246         PR ada/12761
10247         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
10248         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
10249
10250 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
10251
10252         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
10253         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
10254         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
10255         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
10256         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
10257
10258 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
10259
10260         * 3vtrasym.adb:
10261         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
10262         numbers when symbol name is too long.
10263
10264 2003-10-30  Ed Falis  <falis@gnat.com>
10265
10266         * g-signal.ads, g-signal.adb: New files
10267
10268         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
10269
10270         * Makefile.rtl: Introduce GNAT.Signals
10271
10272 2003-10-30  Robert Dewar  <dewar@gnat.com>
10273
10274         * freeze.adb: Minor reformatting
10275
10276         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
10277
10278         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
10279         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
10280         New handling of Id_Check parameter to improve recognition of keywords
10281         used as identifiers.
10282         Update copyright notice to include 2003
10283
10284 2003-10-29  Robert Dewar  <dewar@gnat.com>
10285
10286         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
10287         sem_ch10.adb: Minor reformatting
10288
10289         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
10290         (Expand_Assign_Record): Test right hand side for bit unaligned as well
10291
10292 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
10293
10294         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
10295         Support for TBK$SYMBOLIZE-based symbolic traceback.
10296
10297 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
10298
10299         * exp_disp.adb:
10300         Revert previous change, that did not work well when pragma No_Run_Time
10301         was used in conjunction with a run-time other than ZFP.
10302
10303 2003-10-29  Vincent Celier  <celier@gnat.com>
10304
10305         * make.adb:
10306         (Gnatmake): When there are no Ada mains in attribute Main, disable the
10307          bind and link steps only is switch -z is not used.
10308
10309 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
10310
10311         * Makefile.generic: Remove duplicated setting of CC.
10312
10313         * Makefile.prolog: Set CC to gcc by default, to override make's
10314         default (cc).
10315
10316         * einfo.h: Regenerated.
10317
10318 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
10319
10320         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
10321         current body, after compiling subunit.
10322
10323         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
10324         when in deleted code, because gigi needs properly ordered freeze
10325         actions to annotate types.
10326
10327         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
10328         prevent the premature freezing of record type that contains
10329         subcomponents with a private type that does not yet have a completion.
10330
10331 2003-10-29  Javier Miranda  <miranda@gnat.com>
10332
10333         * sem_ch12.adb:
10334         (Analyze_Package_Instantiation): Check that instances can not be used in
10335         limited with_clauses.
10336
10337         * sem_ch8.adb:
10338         (Analyze_Package_Renaming): Check that limited withed packages cannot
10339         be renamed. Improve text on error messages related to limited
10340         with_clauses.
10341
10342         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
10343
10344         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
10345         Update copyright notice.
10346
10347         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
10348         (Install_Limited_Context_Clauses): New subprogram that isolates all the
10349         checks required for limited context_clauses and installs the limited
10350         view.
10351         (Install_Limited_Withed_Unit): Complete its documentation.
10352         (Analyze_Context): Check that limited with_clauses are only allowed in
10353         package specs.
10354         (Install_Context): Call Install_Limited_Context_Clauses after the
10355         parents have been installed.
10356         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
10357         package as 'From_With_Type'; this mark indicates that the limited view
10358         is installed. Used to check bad usages of limited with_clauses.
10359         (Build_Limited_Views): Do not add shadow entities to the scope's list
10360         of entities. Do not add real entities to the Non_Limited_Views chain.
10361         Improve error notification.
10362         (Remove_Context_Clauses): Remove context clauses in two phases:
10363         limited views first and regular views later (to maintain the
10364         stack model).
10365         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
10366         its visible entities.
10367
10368 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
10369
10370         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
10371         with any type that Is_Fixed_Point_Type.
10372
10373         * sinfo.ads: Fix documentation for Associated_Node attribute.
10374
10375 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
10376
10377         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
10378         both '-gnatc' and '-gnatt' are specified.
10379
10380         * atree.adb (Initialize): Add initialization for Node_Count (set to
10381         zero).
10382
10383 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10384
10385         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
10386         do not consider as Pure.
10387
10388         Part of implementation of function-at-a-time:
10389
10390         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
10391         (tree_transform): Add new argument to build_component_ref.
10392         (tree_transform, case N_Assignment_Statement): Make and return an
10393         EXPR_STMT.
10394         (tree_transform): If result IS_STMT, set flags and return it.
10395         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10396
10397         * utils2.c (build_simple_component_ref, build_component_ref): Add new
10398         arg, NO_FOLD_P.
10399         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
10400         (build_allocator): Likewise.
10401
10402         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
10403         Add new arg to build_component_ref.
10404         (maybe_unconstrained_array, unchecked_convert): Likewise.
10405
10406         * ada-tree.def (EXPR_STMT): New code.
10407
10408         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
10409
10410         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
10411         build_component_ref calls.
10412
10413         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
10414
10415         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10416         (build_component_ref): Add new argument, NO_FOLD_P.
10417
10418 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
10419
10420         * Makefile.generic: Add missing substitution on object_deps handling.
10421
10422         PR ada/5909:
10423         * Make-lang.in (check-ada): Enable ACATS test suite.
10424
10425 2003-10-27  Robert Dewar  <dewar@gnat.com>
10426
10427         * exp_ch3.adb:
10428         (Freeze_Array_Type): We do not need an initialization routine for types
10429         derived from String or Wide_String. They should be treated the same
10430         as String and Wide_String themselves. This caused problems with the
10431         use of Initialize_Scalars.
10432
10433         * exp_ch5.adb:
10434         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
10435         composites. This allows use of component clauses that are not byte
10436         aligned.
10437
10438         * sem_prag.adb:
10439         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
10440         is an attempt to pack an array of atomic objects.
10441
10442         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
10443
10444 2003-10-27  Pascal Obry  <obry@gnat.com>
10445
10446         * g-dirope.adb:
10447         (Basename): Check for drive letters in a pathname only on DOS based OS.
10448
10449 2003-10-27  Vincent Celier  <celier@gnat.com>
10450
10451         * make.adb:
10452         (Gnatmake): When unable to change dir to the object dir, display the
10453         content of the parent dir of the obj dir, to try to understand why this
10454         happens.
10455
10456 2003-10-27  GNAT Script  <nobody@gnat.com>
10457
10458         * Make-lang.in: Makefile automatically updated
10459
10460 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
10461
10462         * sem_ch12.adb:
10463         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
10464         should not be done in Save/Restore_Scope_Stack, because it is performed
10465         locally.
10466
10467         * sem_ch8.adb:
10468         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10469         whether use clauses should be removed/restored.
10470
10471         * sem_ch8.ads:
10472         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10473         whether use clauses should be removed/restored.
10474
10475 2003-10-26  Andreas Jaeger  <aj@suse.de>
10476
10477         * Makefile.in: Remove duplicated lines.
10478
10479 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
10480
10481         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
10482         minimize the differences with ACT tree.
10483
10484         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
10485         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
10486         Gnatvsn.Gnat_Static_Version_String to reduce differences between
10487         ACT and FSF trees.
10488
10489 2003-10-24  Pascal Obry  <obry@gnat.com>
10490
10491         * adadecode.c (ostrcpy): New function.
10492         (__gnat_decode): Use ostrcpy of strcpy.
10493         (has_prefix): Set first parameter a const.
10494         (has_suffix): Set first parameter a const.
10495         Update copyright notice. Fix source name in header.
10496         Removes a trailing space.
10497         PR ada/12014.
10498
10499 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
10500
10501         * exp_disp.adb:
10502         Remove the test against being in No_Run_Time_Mode before generating a
10503         call to Register_Tag. It is redundant with the test against the
10504         availability of the function Register_Tag.
10505
10506 2003-10-24  Vincent Celier  <celier@gnat.com>
10507
10508         * g-catiio.adb: (Month_Name): Correct spelling of February
10509
10510         * make.adb: (Mains): New package
10511         (Initialize): Call Mains.Delete
10512         (Gnatmake): Check that each main on the command line is a source of a
10513         project file and, if there are several mains, each of them is a source
10514         of the same project file.
10515         (Gnatmake): When a foreign language is specified in attribute Languages,
10516         no main is specified on the command line and attribute Mains is not
10517         empty, only build the Ada main. If there is no Ada main, just compile
10518         the Ada sources and their closure.
10519         (Gnatmake): If a main is specified on the command line with directory
10520         information, check that the source exists and, if it does, that the path
10521         is the actual path of a source of a project.
10522
10523         * prj-env.adb:
10524         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
10525         Full_Path is True, return the full path instead of the simple file name.
10526         (Project_Of): New function
10527
10528         * prj-env.ads:
10529         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
10530         defaulted to False.
10531         (Project_Of): New function
10532
10533 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
10534
10535         * Makefile.generic:
10536         Ensure objects of main project are always checked and rebuilt if needed.
10537         Set CC to gcc by default.
10538         Prepare new handling of link by creating a global archive (not activated
10539         yet).
10540
10541         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10542         stringt.h: Update copyright notice. Remove trailing blanks.
10543         Fix source name in header.
10544
10545 2003-10-24  Robert Dewar  <dewar@gnat.com>
10546
10547         * sem_ch12.adb: Minor reformatting
10548
10549         * sem_ch3.adb:
10550         Minor reformatting (including new function return style throughout)
10551
10552         * sem_ch3.ads:
10553         Minor reformatting (including new function return style throughout)
10554
10555 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
10556
10557         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10558         stringt.h: Update copyright notice. Remove trailing blanks.
10559         Fix source name in header.
10560
10561 2003-10-24  GNAT Script  <nobody@gnat.com>
10562
10563         * Make-lang.in: Makefile automatically updated
10564
10565 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
10566
10567         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
10568         stringt.h: Convert to ISO C90 declarations and definitions.
10569
10570 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
10571
10572         PR ada/11978:
10573         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
10574         External_Tag attribute definition clauses.
10575
10576 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
10577
10578         PR ada/7613:
10579         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
10580         child unit, generate a fully qualified name to avoid spurious errors
10581         when the context contains renamings of different child units with
10582         the same simple name.
10583
10584         * exp_dbug.ads: Add documentation on name qualification for renamings
10585         of child units.
10586
10587 2003-10-23  Robert Dewar  <dewar@gnat.com>
10588
10589         * g-regpat.ads, g-regpat.adb: Minor reformatting
10590
10591 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
10592
10593         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
10594
10595 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10596
10597         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
10598         Machine call.
10599
10600         * urealp.h: (Machine): Update to proper definition.
10601
10602 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
10603
10604         * init.c, adaint.c: Minor reformatting.
10605
10606 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
10607
10608         * adaint.c (w32_epoch_offset): Define static const at file level.
10609         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
10610         rather than t_create, t_access in call to GetFileTime. Use union
10611         to convert between FILETIME and  unsigned long long.
10612         (__gnat_file_time_name): Test for invalid file handle.
10613         (__gnat_set_filetime_name): Support win32 targets using
10614         w32api SetFileTime.
10615
10616 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
10617
10618         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
10619
10620         * ctrl_c.c (__gnat_int_handler): Remove declaration.
10621
10622         * decl.c (creat_concat_name):  Const-ify prefix.
10623
10624         * adaint.c: Include ctype.h if __MINGW32__.
10625         (__gnat_readlink): Mark arguments as possibly unused.
10626         (__gnat_symlink): Likewise.
10627         (__gnat_is_symbolic_link): Likewise.
10628         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
10629         declaration
10630         (__gnat_file_time_name): Don't declare struct stat statbuf when
10631         not needed.
10632         (__gnat_is_absolute_path): Add parenthesis around condition of
10633         'if' statement to avoid warning.
10634         (__gnat_plist_init): Specify void as parameter.
10635         (plist_enter): Likewise.
10636         (plist_leave): Likewise.
10637         (remove_handle): Make static. Initialize prev.
10638
10639 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
10640
10641         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
10642         * cstreams.c (__gnat_full_name): Minor improvements and clean up
10643         of previous change.
10644
10645 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10646
10647         * tracebak.c (MAX): Avoid redefinition warning.
10648
10649         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
10650         Change msg to const char *.
10651         (__gnat_install_handler): Remove ss, unused.
10652         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
10653         to const char *.
10654         * cstreams.c (__gnat_full_name): Declare p only when used.
10655         (__gnat_full_name) [sgi] Return buffer.
10656
10657 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
10658
10659         * mingw32.h: New file.
10660         * gnat_wrapper.adb: New file.
10661
10662 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
10663
10664         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
10665         string match a pre compiled regular expression (the corresponding
10666         version of the function working on a raw regular expression)
10667         Fix typos in various comments
10668         Update copyright notice in spec
10669
10670 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
10671
10672         * exp_ch3.adb:
10673         (Component_Needs_Simple_Initialization): Return False when the type is a
10674         packed bit array. Revise spec comments to document this case.
10675
10676         * exp_prag.adb:
10677         (Expand_Pragma_Import): Set any expression on the imported object to
10678         empty to avoid initializing imported objects (in particular this
10679         covers the case of zero-initialization of bit arrays).
10680         Update copyright notice.
10681
10682 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
10683
10684         * sem_ch12.adb:
10685         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
10686         a subunit is missing.
10687         (Instantiate_Subprogram_Body): If body of function is missing, set type
10688         of return expression explicitly in dummy body, to prevent cascaded
10689         errors when a subunit is missing.
10690         Fixes PR 5677.
10691
10692         * sem_ch3.adb:
10693         (Access_Subprogram_Declaration): Verify that return type is valid.
10694         Fixes PR 8693.
10695
10696         * sem_elab.adb:
10697         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
10698         generic.
10699         Fixes PR 12318.
10700
10701         * sem_util.adb:
10702         (Corresponding_Discriminant): If the scope of the discriminant is a
10703         private type without discriminant, use its full view.
10704         Fixes PR 8247.
10705
10706 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
10707
10708         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
10709         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
10710         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
10711         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
10712         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
10713         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
10714         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
10715         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
10716         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
10717         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
10718         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
10719         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
10720         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
10721         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
10722         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
10723         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
10724         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
10725         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
10726         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
10727         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10728         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
10729         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
10730         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
10731         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
10732         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
10733         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
10734         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
10735         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
10736         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
10737         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
10738         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
10739         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10740         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
10741         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
10742         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
10743         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
10744         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
10745         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
10746         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
10747         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
10748         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
10749         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
10750         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
10751         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
10752         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
10753         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
10754         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
10755         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
10756         vms_conv.ads, vms_conv.adb, vms_data.ads,
10757         vxaddr2line.adb: Files added. Merge with ACT tree.
10758
10759         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
10760         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
10761         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
10762         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
10763         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
10764         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
10765         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10766         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
10767         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
10768         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
10769
10770         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10771         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10772         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10773         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10774         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
10775         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
10776         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10777         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
10778         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
10779         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
10780         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
10781         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
10782         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
10783         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
10784         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
10785         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
10786         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
10787         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10788         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
10789         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
10790         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
10791         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
10792         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
10793         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
10794         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
10795         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
10796         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
10797         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
10798         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
10799         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
10800         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
10801         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
10802         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10803         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
10804         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
10805         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
10806         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
10807         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
10808         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
10809         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
10810         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
10811         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
10812         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
10813         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
10814         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
10815         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
10816         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
10817         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
10818         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
10819         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
10820         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
10821         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
10822         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
10823         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
10824         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
10825         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
10826         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
10827         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
10828         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
10829         checks.adb, checks.ads, cio.c, comperr.adb,
10830         comperr.ads, csets.adb, cstand.adb, cstreams.c,
10831         debug_a.adb, debug_a.ads, debug.adb, decl.c,
10832         einfo.adb, einfo.ads, errout.adb, errout.ads,
10833         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
10834         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
10835         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
10836         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10837         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
10838         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
10839         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10840         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
10841         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
10842         fe.h, fmap.adb, fmap.ads, fname.adb,
10843         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
10844         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
10845         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
10846         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10847         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10848         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10849         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
10850         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
10851         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
10852         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
10853         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
10854         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
10855         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
10856         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
10857         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
10858         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
10859         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
10860         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
10861         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
10862         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
10863         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
10864         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
10865         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
10866         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
10867         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
10868         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
10869         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
10870         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
10871         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
10872         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
10873         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
10874         layout.adb, lib.adb, lib.ads, lib-list.adb,
10875         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
10876         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10877         link.c, live.adb, make.adb, make.ads,
10878         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
10879         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10880         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
10881         misc.c, mkdir.c, mlib.adb, mlib.ads,
10882         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
10883         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
10884         namet.adb, namet.ads, namet.h, nlists.ads,
10885         nlists.h, nmake.adt, opt.adb, opt.ads,
10886         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
10887         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
10888         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10889         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
10890         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
10891         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
10892         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
10893         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
10894         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10895         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10896         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10897         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10898         prj-util.adb, prj-util.ads, raise.c, raise.h,
10899         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
10900         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
10901         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
10902         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
10903         scans.ads, scn.adb, scn.ads, s-crc32.adb,
10904         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
10905         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10906         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10907         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
10908         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
10909         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10910         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10911         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
10912         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
10913         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
10914         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
10915         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
10916         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
10917         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
10918         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10919         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
10920         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
10921         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
10922         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
10923         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
10924         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
10925         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
10926         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
10927         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
10928         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
10929         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
10930         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
10931         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
10932         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
10933         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
10934         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
10935         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
10936         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
10937         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
10938         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
10939         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
10940         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
10941         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
10942         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
10943         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
10944         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10945         stringt.adb, stringt.ads, stringt.h, style.ads,
10946         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
10947         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
10948         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
10949         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
10950         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
10951         table.adb, table.ads, targparm.adb, targparm.ads,
10952         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
10953         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
10954         ttypes.ads, types.ads, types.h, uintp.adb,
10955         uintp.ads, uintp.h, uname.adb, urealp.adb,
10956         urealp.ads, urealp.h, usage.adb, utils2.c,
10957         utils.c, validsw.adb, validsw.ads, widechar.adb,
10958         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
10959         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
10960         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
10961         gnatvsn.ads: Merge with ACT tree.
10962
10963         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
10964
10965 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
10966
10967         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
10968         (gnat_ug_vmx.info): Likewise.
10969         (gnat_ug_vxw.info): Likewise.
10970         (gnat_ug_wnt.info): Likewise.
10971         (gnat_rm.info): Likewise.
10972         (gnat-style.info): Likewise.
10973
10974         * Make-lang.in (ada.install-info): Remove target.
10975         (info): New target.
10976         (install-info): Likewise.
10977         (gnat_ug_unx.info): Simplify rule.
10978         (gnat_ug_vmx.info): Likewise.
10979         (gnat_ug_vxw.info): Likewise.
10980         (gnat_ug_wnt.info): Likewise.
10981         (gnat_rm.info): Likewise.
10982         (gnat-style.info): Likewise.
10983
10984 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10985
10986         * Make-lang.in: Replace uses of $(target_alias) with
10987         $(target_noncanonical).
10988         * ada/Makefile.in: Remove unused mention of $(target_alias).
10989
10990 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
10991
10992         * Make-lang.in (ada.info): Replace with ...
10993         (info): ... this.
10994         (ada.dvi): Replace with ...
10995         (dvi): ... this.
10996
10997 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
10998
10999         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
11000         initialize dconstp5 and dconstmp5.
11001
11002 2003-09-28  Richard Henderson  <rth@redhat.com>
11003
11004         * trans.c (tree_transform): Update call to expand_asm_operands.
11005
11006 2003-09-21  Richard Henderson  <rth@redhat.com>
11007
11008         * trans.c, utils.c: Revert.
11009
11010 2003-09-21  Richard Henderson  <rth@redhat.com>
11011
11012         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
11013         change to const.
11014
11015 2003-09-04  Michael Matz  <matz@suse.de>
11016
11017         * misc.c: Include "target.h".
11018         * Make-lang.in (misc.o): Add dependency on target.h.
11019
11020 2003-09-03  DJ Delorie  <dj@redhat.com>
11021
11022         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
11023         hook.
11024
11025 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
11026
11027         * Makefile.in: Update substitutions to match changes to
11028         configure.  Use include directives instead of @-insertions
11029         to read in host and target fragments.  Add a rule to
11030         regenerate ada/Makefile.
11031
11032 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
11033
11034         * lang-options.h: Remove.
11035         * lang.opt: Add help text.
11036
11037 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
11038
11039         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
11040         calls.
11041
11042 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
11043
11044         * misc.c (gnat_handle_option): Don't handle filenames.
11045
11046 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
11047
11048         * Make-lang.in: Replace PWD with PWD_COMMAND.
11049         * Makefile.adalib: Likewise.
11050         * Makefile.in: Likewise.
11051
11052 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
11053
11054         * misc.c (gnat_argv): Revert last change.
11055         (gnat_handle_option, gnat_init_options): Copy arguments.
11056
11057 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
11058
11059         * misc.c (gnat_argv): Make const.
11060
11061 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
11062
11063         * misc.c (save_argc, save_argv): Keep non-static!
11064
11065 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
11066
11067         * misc.c (save_argc, save_argv): Make static.
11068         (gnat_init_options): New prototype.
11069         (gnat_init_options): Update.
11070
11071 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
11072
11073         * gnat_ug.texi: Remove unlikely characters from @vars.
11074         * gnat_ug_vms.texi: Regenerate.
11075
11076 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
11077
11078         * misc.c (record_code_position): Adjust emit_note call.
11079
11080 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
11081
11082         * misc.c (gnat_handle_option): Don't check for missing arguments.
11083
11084 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
11085
11086         * utils.c (end_subprog_body): Adjust expand_function_end call.
11087
11088 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
11089
11090         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
11091         Bind_Main_Program.
11092
11093 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
11094
11095         * lang.opt: Declare Ada.
11096         * misc.c (gnat_init_options): Update.
11097
11098 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
11099
11100         * utils.c (begin_subprog_body): Adjust init_function_start call.
11101
11102 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
11103
11104         * Make-lang.in: Update to use options.c and options.h.
11105         * misc.c: Include options.h not aoptions.h.
11106         (gnat_handle_option): Abort on unrecognized switch.
11107         (gnat_init_options): Request Ada switches.
11108
11109 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
11110
11111         * lang.opt: Add -Wall.
11112         * misc.c (gnat_handle_option): Handle it.
11113
11114 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
11115
11116         * misc.c (gnat_handle_option): Fix warnings.
11117
11118 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
11119
11120         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
11121
11122 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
11123
11124         * Make-lang.in: Update to handle command-line options.
11125         * lang.opt: New file.
11126         * misc.c: Include aoptions.h.
11127         (cl_options_count, cl_options): Remove.
11128         (gnat_handle_option): New.
11129         (gnat_decode_option): Remove.
11130         (LANG_HOOKS_DECODE_OPTION): Remove.
11131         (LANG_HOOKS_HANDLE_OPTION): Override.
11132
11133 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
11134
11135         * init.c, misc.c, trans.c, utils.c: Remove dead code.
11136
11137 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
11138
11139         * Makefile.in: Replace "host_canonical" with "host" for autoconf
11140         substitution.
11141
11142 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
11143
11144         * Make-lang.in: Update.
11145         * misc.c: Include opts.h. Define cl_options_count and cl_options.
11146
11147 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
11148
11149         * misc.c (gnat_init_options): Update.
11150
11151 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
11152
11153         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
11154         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
11155         __attribute__ ((__unused__)).
11156
11157 2003-06-05  Jan Hubicka  <jh@suse.cz>
11158
11159         * Make-lang.in:  Add support for stageprofile and stagefeedback
11160
11161 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
11162
11163         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
11164         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
11165
11166 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
11167
11168         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
11169         Remove non-VMS directive.
11170         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
11171         alternatives.
11172         (Examples of gnatls Usage): Remove VMS alternative.
11173
11174 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
11175
11176         PR ada/9953:
11177         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
11178         and turn ZCX_By_Default back to False since the underlying support
11179         is not quite there yet.
11180
11181 2003-06-01  Andreas Jaeger  <aj@suse.de>
11182
11183         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
11184         and ROUND_TYPE_SIZE_UNIT.
11185
11186 2003-05-22   Geert Bosch <bosch@gnat.com>
11187
11188         * gnat_rm.texi : Remove reference to Ada Core Technologies.
11189
11190 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
11191
11192         * trans.c (tree_transform): Use location_t and input_location
11193         directly.
11194         (build_unit_elab): Likewise.
11195         * utils.c (create_label_decl): Likewise.
11196
11197 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
11198
11199         * trans.c (tree_transform, build_unit_elab,
11200         set_lineno): Rename lineno to input_line.
11201         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
11202         end_subprog_body): Likewise.
11203         * utils2.c (build_call_raise): Likewise.
11204
11205 2003-05-01  Laurent Guerby <guerby@acm.org>
11206
11207         PR ada/10546
11208         * 5iosinte.ads: Increase pthread_cond_t size to match recent
11209         LinuxThread and NPTL version, merge from ACT.
11210
11211 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
11212
11213         * utils.c (convert): No need to clear TREE_CST_RTL.
11214
11215 2003-04-23   Geert Bosch <bosch@gnat.com>
11216
11217         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
11218         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
11219         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
11220         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
11221         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
11222         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
11223         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
11224         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
11225         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
11226         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
11227         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
11228         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
11229         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
11230         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
11231         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
11232         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
11233         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
11234         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
11235         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
11236         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
11237         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
11238         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
11239         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
11240         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
11241         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
11242         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
11243         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
11244         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
11245         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
11246         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
11247         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
11248         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
11249         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
11250         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
11251         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
11252         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
11253         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
11254         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
11255         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
11256         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
11257         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
11258         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
11259         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
11260         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
11261         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
11262         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
11263         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
11264         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
11265         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
11266         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
11267         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
11268         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
11269         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
11270         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
11271         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
11272         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
11273         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
11274         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
11275         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
11276         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
11277         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
11278         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
11279         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
11280         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
11281         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
11282         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
11283         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
11284         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
11285         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
11286         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
11287         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
11288         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
11289         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
11290         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
11291         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
11292         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
11293         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
11294         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
11295         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
11296         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
11297         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
11298         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
11299         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
11300         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
11301         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
11302         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
11303         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
11304         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
11305         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
11306         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
11307         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
11308         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
11309         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
11310         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
11311         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
11312         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
11313         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
11314         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
11315         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
11316         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
11317         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
11318         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
11319         ali.adb, ali.ads, alloc.ads, argv.c,
11320         atree.adb, atree.ads, atree.h, aux-io.c,
11321         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
11322         binde.adb, binde.ads, binderr.adb, binderr.ads,
11323         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
11324         butil.adb, butil.ads, cal.c, calendar.ads,
11325         casing.adb, casing.ads, ceinfo.adb, checks.adb,
11326         checks.ads, cio.c, comperr.adb, comperr.ads,
11327         config-lang.in, csets.adb, csets.ads, csinfo.adb,
11328         cstand.adb, cstand.ads, cuintp.c, debug.adb,
11329         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
11330         dec-io.ads, dec.ads, deftarg.c, directio.ads,
11331         einfo.adb, einfo.ads, elists.adb, elists.ads,
11332         elists.h, errno.c, errout.adb, errout.ads,
11333         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
11334         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
11335         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
11336         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
11337         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
11338         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
11339         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
11340         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
11341         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
11342         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
11343         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
11344         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
11345         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
11346         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
11347         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
11348         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
11349         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
11350         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
11351         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
11352         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
11353         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
11354         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
11355         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
11356         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
11357         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
11358         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
11359         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
11360         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
11361         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
11362         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
11363         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
11364         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
11365         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
11366         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
11367         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
11368         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
11369         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
11370         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
11371         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
11372         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
11373         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
11374         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
11375         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
11376         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
11377         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
11378         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
11379         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
11380         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
11381         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
11382         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
11383         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
11384         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
11385         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
11386         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
11387         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
11388         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
11389         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
11390         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
11391         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
11392         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
11393         lib.adb, lib.ads, live.adb, live.ads,
11394         machcode.ads, make.adb, make.ads, makeusg.adb,
11395         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
11396         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
11397         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
11398         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
11399         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
11400         mlib.ads, namet.adb, namet.ads, nlists.adb,
11401         nlists.ads, opt.adb, opt.ads, osint-b.adb,
11402         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
11403         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
11404         osint.ads, output.adb, output.ads, par-ch10.adb,
11405         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
11406         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
11407         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
11408         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
11409         par-tchk.adb, par-util.adb, par.adb, par.ads,
11410         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
11411         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
11412         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
11413         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
11414         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
11415         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
11416         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
11417         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
11418         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
11419         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
11420         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
11421         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
11422         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
11423         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
11424         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
11425         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
11426         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
11427         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
11428         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
11429         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
11430         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
11431         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
11432         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
11433         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
11434         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
11435         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
11436         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
11437         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
11438         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
11439         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
11440         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
11441         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
11442         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
11443         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
11444         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
11445         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
11446         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
11447         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
11448         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
11449         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
11450         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
11451         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
11452         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
11453         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
11454         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
11455         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
11456         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
11457         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
11458         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
11459         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
11460         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
11461         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
11462         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
11463         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
11464         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
11465         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
11466         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
11467         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
11468         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
11469         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
11470         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
11471         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
11472         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
11473         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
11474         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
11475         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
11476         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
11477         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
11478         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
11479         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
11480         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
11481         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
11482         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
11483         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
11484         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
11485         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
11486         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
11487         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
11488         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
11489         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
11490         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
11491         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
11492         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
11493         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11494         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
11495         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
11496         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
11497         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
11498         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
11499         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
11500         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
11501         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
11502         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
11503         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
11504         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
11505         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
11506         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
11507         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
11508         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
11509         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
11510         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
11511         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
11512         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
11513         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
11514         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
11515         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
11516         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
11517         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
11518         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
11519         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
11520         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
11521         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
11522         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
11523         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
11524         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
11525         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
11526         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
11527         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
11528         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
11529         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
11530         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
11531         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
11532         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
11533         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
11534         snames.ads, sprint.adb, sprint.ads, stand.adb,
11535         stand.ads, stringt.adb, stringt.ads, style.adb,
11536         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
11537         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
11538         switch-m.ads, switch.adb, switch.ads, system.ads,
11539         table.adb, table.ads, targparm.adb, targparm.ads,
11540         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
11541         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
11542         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
11543         ttypef.ads, ttypes.ads, types.adb, types.ads,
11544         uintp.adb, uintp.ads, uname.adb, uname.ads,
11545         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
11546         usage.adb, usage.ads, validsw.adb, validsw.ads,
11547         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
11548         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
11549         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
11550         formatting and other trivial changes from ACT.
11551
11552 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11553
11554         * gigi.h, utils2.c (build_constructor):
11555         Rename gnat_build_constructor. Use build_constructor.
11556         * decl.c (gnat_to_gnu_entity)
11557         * trans.c (tree_transform, pos_to_constructor, extract_values)
11558         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
11559         (unchecked_convert)
11560         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
11561         (fill_vms_descriptor):
11562         Update to match.
11563
11564 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
11565
11566         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
11567         * misc.c (gnat_tree_size): New function.
11568         (LANG_HOOKS_TREE_SIZE): Override.
11569
11570 2003-04-03  Jason Merrill  <jason@redhat.com>
11571
11572         * misc.c (gnat_adjust_rli): #if 0.
11573
11574 2003-03-31   Geert Bosch <bosch@gnat.com>
11575
11576         PR ada/10020
11577         * link.c : Fix misspelled "const" keyword
11578
11579 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
11580
11581         PR c++/7086
11582         * utils2.c: Adjust calls to put_var_into_stack.
11583
11584 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11585
11586         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
11587
11588 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11589
11590         * misc.c (gnat_init): Update for new prototype.
11591
11592 2003-03-05  Olivier Hainque  <hainque@gnat.com>
11593
11594         ada/9961
11595         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
11596         warning, and fix return type for the IN_RTS && !SJLJ case.
11597
11598 2003-03-04  Tom Tromey  <tromey@redhat.com>
11599
11600         * Make-lang.in (ada.tags): New target.
11601
11602 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
11603
11604         ada/9911
11605         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
11606         wrapper, which name remains constant whatever underlying GCC
11607         scheme.
11608
11609         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
11610         the stable interface needed for a-except.
11611
11612 2003-03-02  Andreas Jaeger  <aj@suse.de>
11613
11614         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11615         gnat_ug_wnt.texi: Regenerate.
11616
11617 2003-03-02  Laurent Guerby <guerby@acm.org>
11618
11619         * Makefile.in (install-gnatlib): Match previous change there
11620         so it works.
11621
11622 2003-02-28  Andreas Schwab  <schwab@suse.de>
11623
11624         * Make-lang.in (install-gnatlib): Change to ada directory before
11625         running make instead of using ada/Makefile directly.
11626
11627 2003-02-18  Ben Elliston  <bje@redhat.com>
11628
11629         Part of fix for PR ada/9406
11630         * gnat_ug.texi (Binder output file): Grammar fix.
11631
11632 2003-02-18  Ben Elliston  <bje@redhat.com>
11633
11634         PR other/7350
11635         * 5qtaprop.adb (Sleep): Fix typo in comment.
11636
11637 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
11638
11639         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
11640         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11641         gnat_ug_wnt.texi: Regenerate.
11642
11643 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
11644
11645         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
11646         be created if necessary.
11647         (ada.install-common): Let $(DESTDIR)$(bindir) be created
11648         if necessary.  Remove erroneous and redundant gnatchop
11649         installation commands.  Test for gnatdll before attempting
11650         to install it.
11651         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
11652         and gnatdll from all plausible locations.
11653
11654 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
11655
11656         * utils2.c (build_unary_op): Don't check flag_volatile.
11657         * gnat_ug.texi: Remove -fvolatile from example.
11658         * gnat_ug_vxw.texi: Likewise.
11659
11660 2003-01-29  Laurent Guerby <guerby@acm.org>
11661
11662         PR ada/8344
11663         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
11664         * Makefile.in: match previous change.
11665         * Make-lang.in: match previous change.
11666
11667 2003-01-29      Joel Sherrill <joel@OARcorp.com>
11668
11669         * 5rosinte.ads: Add SIGXCPU.
11670         * 5rtpopsp.adb: New file.
11671         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
11672         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
11673         specific file 5rtpopsp.adb.
11674         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
11675         is likely needed for all newlib targets.
11676         * init.c: Add RTEMS specific version of __gnat_initialize().
11677
11678 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11679
11680         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
11681
11682 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11683
11684         * init.c (__gnat_error_handler): Make msg const.
11685
11686         * gmem.c (convert_addresses): Move declaration ...
11687         * adaint.h: ... here.
11688         * adaint.c (convert_addresses): Adapt addrs type to match
11689         prototype.
11690
11691         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
11692
11693 2003-01-24  Andreas Schwab  <schwab@suse.de>
11694
11695         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
11696         size_t to avoid warning.
11697
11698 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
11699
11700         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
11701
11702 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
11703
11704         * gnat_rm.texi: Remove RCS version number.
11705
11706         * ada-tree.h (union lang_tree_node): Add chain_next option.
11707
11708 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
11709
11710         * Make-lang.in (ada.install-info, ada.install-common,
11711         ada.uninstall): Prepend $(DESTDIR) to the destination
11712         directory in all (un)installation commands.
11713         * Makefile.in (install-gnatlib, install-rts): Ditto.
11714
11715 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
11716
11717         * gnat_rm.texi, gnat_ug.texi: Use @copying.
11718         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11719         gnat_ug_wnt.texi: Regenerate.
11720
11721 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
11722
11723         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
11724         only.
11725         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
11726         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
11727         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
11728         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
11729         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
11730         $(srcdir)/doc/include/gcc-common.texi.
11731
11732 2002-12-15   Geert Bosch <bosch@gnat.com>
11733
11734         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
11735
11736 2002-12-14   Geert Bosch <bosch@gnat.com>
11737
11738         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
11739         case of a body created for a Renaming_As_Body, on which
11740         conformance checks are not performed. Fixes PR ada/5690.
11741
11742 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
11743
11744         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
11745         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
11746         not already included.
11747         * Make-lang.in: Update dependencies.
11748
11749 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
11750         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
11751         solution to buffer overflow bug on GNU/Linux.
11752
11753 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
11754         Closes PR ada/5856 and PR ada/6919 !
11755         * bindgen.adb: Remove all references to Public_Version.
11756         * comperr.adb: Remove all references to Public_Version and
11757         GNATPRO_Version; correct bug reporting instructions.
11758         * comperr.ads: Change to match bug box.
11759         * gnatvsn.ads: Remove all references to Public version and
11760         GNATPRO version.
11761
11762 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
11763         PR ada/6919
11764         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
11765         GNU/Linux.
11766
11767         PR ada/6558
11768         * config-lang.in: Remove diff_excludes.
11769
11770 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
11771         PR ada/8358
11772         * trans.c (gnu_pending_elaboration_lists): New GC root.
11773         (build_unit_elab): Use..
11774
11775 2002-10-30   Geert Bosch <bosch@gnat.com>
11776         PR ada/6558
11777         * misc.c : Include optabs.h
11778
11779         * Make-lang.in (misc.o): Add dependency on optabs.h
11780
11781 2002-10-29   Geert Bosch <bosch@gnat.com>
11782         PR ada/6558
11783         * Make-lang.in (gnatbind): Depend on CONFIG_H
11784
11785 2002-10-29  Geert bosch  <bosch@gnat.com>
11786         PR ada/6558
11787         * misc.c: Unrevert misc.c (1.13)
11788
11789 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
11790
11791         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
11792         maintainership comments.
11793
11794 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
11795         PR ada/5904
11796         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
11797         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
11798         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
11799         7staprop.adb: Correct statements in comments about
11800         maintainership of GNAT.
11801
11802         PR ada/5904
11803         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
11804         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
11805         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
11806         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
11807         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
11808         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
11809         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
11810         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
11811         comments about maintainership of GNAT.
11812
11813         PR ada/6919 (forward port of patch for PR ada/5904)
11814         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
11815         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
11816         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
11817         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
11818         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
11819         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
11820         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
11821         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
11822         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
11823         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
11824         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
11825         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
11826         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
11827         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
11828         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
11829         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
11830         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
11831         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
11832         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
11833         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
11834         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
11835         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
11836         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
11837         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
11838         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
11839         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
11840         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
11841         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
11842         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
11843         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
11844         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
11845         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
11846         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
11847         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
11848         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
11849         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
11850         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
11851         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
11852         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
11853         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
11854         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
11855         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
11856         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
11857         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
11858         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
11859         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
11860         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
11861         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
11862         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
11863         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
11864         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
11865         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
11866         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
11867         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
11868         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
11869         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
11870         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
11871         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
11872         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
11873         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
11874         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
11875         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
11876         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
11877         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
11878         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
11879         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
11880         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
11881         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
11882         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
11883         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
11884         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
11885         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
11886         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
11887         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
11888         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
11889         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
11890         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
11891         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
11892         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
11893         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
11894         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
11895         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
11896         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
11897         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
11898         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
11899         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
11900         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
11901         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
11902         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
11903         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
11904         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
11905         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
11906         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
11907         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
11908         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
11909         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
11910         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
11911         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
11912         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
11913         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
11914         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
11915         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
11916         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
11917         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
11918         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
11919         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
11920         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
11921         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
11922         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
11923         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
11924         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
11925         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
11926         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
11927         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
11928         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
11929         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
11930         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
11931         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
11932         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
11933         par-endh.adb par-labl.adb par-load.adb par-prag.adb
11934         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
11935         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
11936         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
11937         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
11938         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
11939         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
11940         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
11941         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
11942         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
11943         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
11944         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
11945         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
11946         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
11947         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
11948         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
11949         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
11950         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
11951         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
11952         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
11953         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
11954         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
11955         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
11956         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
11957         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
11958         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
11959         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
11960         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
11961         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
11962         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
11963         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
11964         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
11965         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
11966         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
11967         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
11968         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
11969         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
11970         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
11971         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
11972         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
11973         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
11974         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
11975         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
11976         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
11977         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
11978         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
11979         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
11980         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
11981         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
11982         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
11983         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
11984         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
11985         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
11986         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
11987         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
11988         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
11989         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
11990         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
11991         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
11992         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
11993         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
11994         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
11995         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
11996         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
11997         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
11998         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
11999         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
12000         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
12001         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
12002         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
12003         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
12004         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
12005         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
12006         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
12007         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
12008         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
12009         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
12010         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
12011         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
12012         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
12013         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
12014         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
12015         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
12016         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
12017         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
12018         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
12019         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
12020         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
12021         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
12022         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
12023         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
12024         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
12025         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
12026         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
12027         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
12028         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
12029         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
12030         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
12031         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
12032         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
12033         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
12034         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
12035         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
12036         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
12037         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
12038         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
12039         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
12040         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
12041         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
12042         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
12043         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
12044         stringt.ads stringt.h style.adb style.ads stylesw.adb
12045         stylesw.ads switch.adb switch.ads sysdep.c system.ads
12046         table.adb table.ads targparm.adb targparm.ads targtyps.c
12047         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
12048         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
12049         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
12050         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
12051         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
12052         usage.ads utils.c utils2.c validsw.adb validsw.ads
12053         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
12054         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
12055         xtreeprs.adb: Correct statements in comments about maintainership
12056         of GNAT.
12057
12058 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
12059
12060         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
12061         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
12062         * gnatvsn.ads: Gnat_Version_String is now a function.
12063         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
12064         copy the C version_string into a String and return it.
12065         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
12066         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
12067         Remove pragma Ident (Gnat_Version_String).  If this was the
12068         sole use of package Gnatvsn, remove the with statement too.
12069         * gnat1drv.adb: Tweak -gnatv output.
12070
12071 2002-09-17  Richard Henderson  <rth@redhat.com>
12072
12073         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
12074         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
12075         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
12076         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12077         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
12078         and real_2expN instead of a loop.
12079         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
12080         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
12081
12082 2002-08-25  Andre Leis <a.leis@gmx.net>
12083             David Billinghurst (David.Billinghurst@riotinto.com>
12084
12085         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
12086
12087 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12088
12089         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
12090         Remove $(CONFIG_H) dependency.
12091
12092 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
12093
12094         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
12095
12096 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12097
12098         * adadecode.c (ada_demangle): Use xstrdup in lieu of
12099         xmalloc/strcpy.
12100         * misc.c (gnat_decode_option): Likewise.
12101
12102 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
12103
12104         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
12105         function approach did not work well because of a side effect (the
12106         function call could reallocate the table which was being indexed
12107         using its result). Fixes ada/4851. [RESURRECTED]
12108
12109 2002-07-01  Roger Sayle  <roger@eyesopen.com>
12110
12111         * ada/utils.c (builtin_function): Accept an additional parameter.
12112
12113 2002-06-28  Andreas Jaeger  <aj@suse.de>
12114
12115         PR ada/7144
12116         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
12117         <adi@thur.de>.
12118
12119 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12120
12121         * Makefile.in (SHELL): Set to @SHELL@.
12122
12123 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12124
12125         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
12126         array size calculation.
12127
12128 2002-06-04  Andreas Jaeger  <aj@suse.de>
12129
12130         * Make-lang.in (gnatbind): Readd rule that has been lost in last
12131         patch.
12132
12133 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
12134
12135         Merge from pch-branch:
12136
12137         * config-lang.in (gtfiles): Add ada-tree.h.
12138         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
12139         (SET_TYPE_MODULUS): New.
12140         (SET_TYPE_INDEX): New.
12141         (SET_TYPE_DIGITS_VALUE): New.
12142         (SET_TYPE_RM_SIZE): New.
12143         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
12144         (SET_TYPE_ADA_SIZE): New.
12145         (SET_TYPE_ACTUAL_BOUNDS): New.
12146         (SET_DECL_CONST_CORRESPONDING_VAR): New.
12147         (SET_DECL_ORIGINAL_FIELD): New.
12148         (TREE_LOOP_ID): Correct typo.
12149         * decl.c: Use new macros.
12150         * utils.c: Include debug.h, use new macros.
12151         * utils2.c: Use new macros.
12152
12153         * ada-tree.h: Update all macros for new tree description.
12154         (struct tree_loop_id): New.
12155         (union lang_tree_node): New.
12156         (struct lang_decl): New.
12157         (struct lang_type): New.
12158         * misc.c (gnat_mark_tree): Delete.
12159         (LANG_HOOKS_MARK_TREE): Delete.
12160         * trans.c (tree_transform): No longer any need to cast
12161         for TREE_LOOP_ID.
12162
12163         * utils.c (struct language_function): New dummy structure.
12164
12165         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
12166         (misc.o): Likewise.
12167         (utils.o): Likewise; also gtype-ada.h.
12168         * Make-lang.in (gnat1): Add dependency on s-gtype.
12169         (gnatbind): Add dependency on $(CONFIG_H).
12170         * utils.c: Correct last #include.
12171         (stuct e_stack): Remove unnecessary 'static'.
12172         (mark_e_stack): Remove unused prototype.
12173
12174         * scn-nlit.adb: Remove whitespace after version number to
12175         keep lines under 80 chars.
12176         * snames.adb: Likewise.
12177         * treepr.ads: Likewise.
12178
12179         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
12180         (misc.o): Likewise.
12181         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
12182         * config-lang.in (gtfiles): New.
12183         * decl.c: Use gengtype for roots.
12184         * gigi.h: Use gengtype for roots.
12185         * trans.c: Use gengtype for roots.
12186         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
12187
12188 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
12189
12190         * misc.c (gnat_init): Adjust setting of internal_error_function.
12191
12192 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12193
12194         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
12195         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
12196         gnat_ug_wnt.texi: Regenerate.
12197
12198 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
12199
12200         * 5ntaprop.adb (with System.OS_Primitives): Remove.
12201
12202         * cstreams.c (max_path_len): Move from here ...
12203         * adaint.c (__gnat_max_path_len): ... to here.
12204         * adaint.c (__gnat_max_path_len): Declare.
12205         * g-dirope.adb (Max_Path): Adjust.
12206         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
12207         * i-cstrea.ads (max_path_len): Adjust.
12208         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
12209         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
12210
12211         * Makefile.in, Make-lang.in: Documentation is now built in
12212         Make-lang.in.  Store Info and generated Texinfo files in the
12213         source directory.
12214         * gnat_ug.texi: Remove CVS keywords, correct version number.
12215         Set file name correctly.
12216
12217         * gnat_ug_*.texi: Add.
12218         * .cvsignore: Ignore generated Texinfo files.
12219
12220 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
12221
12222         * ada.h: Add MI guard macro.
12223         (SUBTYPE): Define constants with an anonymous enum, not static
12224         const variables.
12225         (IN): Cast constants to appropriate type before use.
12226
12227 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
12228
12229         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
12230         (experimental)".
12231
12232 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12233
12234         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
12235         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
12236         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
12237         (ALL_ADA_CFLAGS): Likewise.
12238         (ADA_INCLUDES): Likewise.
12239         Adapt for new working dir.
12240         (GNATBIND): Use Makefile.in version.
12241         (.SUFFIXES): Copy from Makefile.in.
12242         (ada-warn): Define.
12243         (.adb.o, .ads.o): Copy from Makefile.in.
12244         Added $(OUTPUT_OPTION).
12245         (GNAT1_C_OBJS): Moved from Makefile.in.
12246         Prefix with ada subdir.
12247         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
12248         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
12249         Adapt for new working dir.
12250         (EXTRA_GNATBIND_OBJS): Likewise.
12251         (ADA_BACKEND): Moved from Makefile.in.
12252         Renamed to avoid conflict with global BACKEND.
12253         Use that one.
12254         (TARGET_ADA_SRCS): Moved from Makefile.in.
12255         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
12256         Use ADA_BACKEND.
12257         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
12258         (ada_extra_files): Moved from Makefile.in.
12259         Prefix with ada subdir.
12260         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
12261         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
12262         (ada/nmake.ads): Likewise.
12263         (update-sources): Moved from Makefile.in.
12264         Prefix with ada subdir.
12265         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
12266         (ADA_TREE_H): Likewise.
12267         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
12268         (ada/memtrack.o): Likewise.
12269         (ada/adadecode.o): Likewise.
12270         Update dependencies.
12271         (ada/adaint.o): New.
12272         (ada/argv.o): Moved from Makefile.in.
12273         Prefix with ada subdir.
12274         Update dependencies.
12275         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
12276         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
12277         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
12278         Prefix with ada subdir.
12279         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
12280         (GNAT DEPENDENCIES): Regenerate.
12281         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
12282         toplevel Makefile.in.
12283         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
12284         (TARGET_ADA_SRCS): Removed.
12285         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
12286         (GNATBIND_OBJS): Likewise.
12287         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
12288         (BACKEND): Removed.
12289         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
12290         (TREE_H): Likewise.
12291         (ada_extra_files): Likewise.
12292         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
12293         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
12294         (update-sources): Likewise.
12295         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
12296         (ADA_TREE_H): Likewise.
12297         (adadecoce.o): Likewise.
12298         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
12299         (GNAT DEPENDENCIES): Likewise.
12300
12301 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12302
12303         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
12304         * Makefile.in: Likewise.
12305
12306 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12307
12308         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
12309         Restore $(CONFIG_H) and prefix.o dependencies.
12310         (ada.stage[1-4]): Depend on stage?-start.
12311
12312         * Makefile.in (b_gnatb.c): Depend on interfac.o.
12313
12314 2002-05-02  Jim Wilson  <wilson@redhat.com>
12315
12316         * utils.c (finish_record_type): Change record_size to record_type.
12317
12318 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12319
12320         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
12321         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
12322         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
12323
12324 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12325
12326         * misc.c (gnat_parse_file): Update.
12327
12328 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12329
12330         * misc.c (gnat_init): Don't set lang_attribute_common.
12331
12332 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
12333
12334         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
12335
12336 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
12337
12338         * gnat_ug.texi: New file.
12339
12340         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
12341         instead of gfdl.texi
12342
12343         * xgnatug.adb, ug_words: New files.
12344
12345         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
12346         gnat_rm and gnat-style manuals.
12347
12348 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12349
12350         * gigi.h (incomplete_type_error): Remove.
12351         * utils.c (incomplete_type_error): Remove.
12352
12353 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
12354
12355         * trans.c (tree_transform): Add has_scope argument to
12356         expand_start_stmt_expr.
12357
12358 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12359
12360         * gigi.h (truthvalue_conversion): Rename.
12361         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12362         * trans.c (tree_transform): Update.
12363         * utils2.c (truthvalue_conversion): Rename, update.
12364         (build_binary_op, build_unary_op): Update.
12365
12366 2002-04-04  Laurent Guerby  <guerby@acm.org>
12367
12368         * make.adb: Implement -margs, remove restriction about file name placement.
12369         * makeusg.adb: Documentation update.
12370         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
12371         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
12372
12373 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12374
12375         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
12376         (builtin_function): Similarly.
12377
12378 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12379
12380         * decl.c (gnat_to_gnu_entity): Update.
12381         * gigi.h (mark_addressable): Rename.
12382         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12383         * trans.c (tree_transform): Update.
12384         * utils.c (create_var_decl): Update.
12385         * util2.c (build_binary_op, build_unary_op,
12386         fill_vms_descriptor): Update.
12387         (mark_addressable): Rename, update.
12388
12389 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12390
12391         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
12392         Rename.
12393         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12394         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12395         * trans.c (tree_transform, convert_with_check): Update.
12396         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
12397         Rename.
12398
12399 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12400
12401         * gigi.h (finish_incomplete_decl): Rename.
12402         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
12403         * utils.c (gnat_init_decl_processing): Don't set hook.
12404         (finish_incomplete_decl): Rename.
12405
12406 2002-03-29  Andreas Schwab  <schwab@suse.de>
12407
12408         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
12409         directory.
12410
12411 2001-03-28  Robert Dewar <dewar@gnat.com>
12412
12413         * checks.ads:
12414         (Remove_Checks): New procedure
12415
12416         * checks.adb:
12417         (Remove_Checks): New procedure
12418
12419         * exp_util.adb:
12420         Use new Duplicate_Subexpr functions
12421         (Duplicate_Subexpr_No_Checks): New procedure
12422         (Duplicate_Subexpr_No_Checks_Orig): New procedure
12423         (Duplicate_Subexpr): Restore original form (checks duplicated)
12424         (Duplicate_Subexpr): Call Remove_Checks
12425
12426         * exp_util.ads:
12427         (Duplicate_Subexpr_No_Checks): New procedure
12428         (Duplicate_Subexpr_No_Checks_Orig): New procedure
12429         Add 2002 to copyright notice
12430
12431         * sem_util.adb: Use new Duplicate_Subexpr functions
12432
12433         * sem_eval.adb:
12434         (Eval_Indexed_Component): This is the place to call
12435         Constant_Array_Ref and to replace the value. We simply merge
12436         the code of this function in here, since it is now no longer
12437         used elsewhere. This fixes the problem of the back end not
12438         realizing we were clever enough to see that this was
12439         constant.
12440         (Expr_Val): Remove call to Constant_Array_Ref
12441         (Expr_Rep_Val): Remove call to Constant_Array_Ref
12442         Minor reformatting
12443         (Constant_Array_Ref): Deal with string literals (patch
12444         suggested by Zack Weinberg on the gcc list)
12445
12446 2001-03-28  Ed Schonberg <schonber@gnat.com>
12447
12448         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
12449         Duplicate_Subexpr_Move_Checks.
12450
12451         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
12452         Duplicate_Subexpr_Move_Checks.
12453
12454         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
12455         value of array exists before retrieving it (it may a private
12456         protected component in a function).
12457
12458 2002-03-28   Geert Bosch <bosch@gnat.com>
12459
12460         * prj-pp.adb : New file.
12461
12462         * prj-pp.ads : New file.
12463
12464 2002-03-28  Andreas Jaeger  <aj@suse.de>
12465
12466         * Makefile.in (stamp-sdefault): Fix path for Makefile.
12467
12468 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12469
12470         * misc.c (gnat_expand_expr): Move prototype.
12471
12472 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12473
12474         * misc.c (insert_default_attributes): Remove.
12475
12476 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12477
12478         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12479         (gnat_init): Don't set hook.
12480         (gnat_expand_expr): Fix prototype.
12481
12482 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12483
12484         * misc.c (ggc_p): Remove.
12485
12486 2002-03-27  Geert Bosch  <bosch@gnat.com>
12487
12488         * prj-makr.ads, prj-makr.adb : New files.
12489
12490 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12491
12492         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
12493         (lang_mark_tree): Make static, rename.
12494
12495 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12496
12497         * misc.c (maybe_build_cleanup): Remove.
12498
12499 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12500
12501         * gigi.h (yyparse): Remove.
12502
12503 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
12504
12505         * gnat_rm.texi: Sync with ACT version.
12506           (From Ben Brosgol <brosgol@gnat.com>)
12507
12508 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12509
12510         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12511         (gnat_init): Remove old hook.
12512
12513 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12514
12515         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
12516         (yyparse): Rename gnat_parse_file.
12517
12518 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
12519
12520         Delete all lines containing "$Revision:".
12521         * xeinfo.adb: Don't look for revision numbers.
12522         * xnmake.adb: Likewise.
12523         * xsinfo.adb: Likewise.
12524         * xsnames.adb: Likewise.
12525         * xtreeprs.adb: Likewise.
12526
12527 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12528
12529         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
12530         gnat_tree_code_name): Delete.
12531         (tree_code_type, tree_code_length, tree_code_name): Define.
12532         (gnat_init): Don't try to copy into the various tree_code
12533         arrays.
12534
12535 2002-03-11  Richard Henderson  <rth@redhat.com>
12536
12537         * Makefile.in (.NOTPARALLEL): Add fake tag.
12538
12539 2002-03-07  Geert Bosch  <bosch@gnat.com>
12540
12541         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
12542         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
12543         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
12544         switch-m.adb, switch-m.ads : New files.
12545
12546 2002-03-07  Geert Bosch  <bosch@gnat.com>
12547
12548         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
12549         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
12550         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
12551         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
12552         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
12553         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
12554         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
12555         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
12556         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
12557         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
12558         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
12559         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
12560         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
12561         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
12562         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
12563         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
12564         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
12565         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
12566         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
12567         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
12568         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
12569         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
12570         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
12571         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
12572         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
12573         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
12574         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
12575         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
12576         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
12577         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
12578         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
12579         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
12580         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
12581         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
12582         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
12583         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
12584         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
12585         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
12586         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
12587         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
12588         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
12589         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
12590         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
12591         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
12592         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
12593         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
12594         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
12595         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
12596         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
12597         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
12598         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
12599         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
12600         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
12601         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
12602         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
12603         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
12604         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
12605         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
12606         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
12607         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
12608         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
12609         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
12610         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
12611         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
12612         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
12613         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
12614         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
12615         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
12616         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
12617         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
12618         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
12619         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
12620         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
12621         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
12622         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
12623         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
12624         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
12625         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
12626         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
12627         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
12628         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
12629         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
12630         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
12631         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
12632         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
12633         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
12634         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
12635         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
12636         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
12637         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
12638         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
12639         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
12640         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
12641         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
12642         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
12643         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
12644         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
12645
12646         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
12647         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
12648         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
12649         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
12650
12651         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
12652         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
12653
12654         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
12655         to mdll-fil.ad[bs] and mdll-util.ad[bs]
12656
12657         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
12658         from mdllfile.ad[bs] and mdlltool.ad[bs]
12659
12660 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12661
12662         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
12663         lieu of explicit sizeof/sizeof.
12664
12665 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12666
12667         * misc.c (copy_lang_decl): Remove.
12668
12669 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
12670
12671         * misc.c: Delete traditional-mode-related code copied from the
12672         C front end but not used, or used only to permit the compiler
12673         to link.
12674
12675 2002-02-07  Richard Henderson  <rth@redhat.com>
12676
12677         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
12678         * adaint.h (__gnat_to_gm_time): Update prototype.
12679
12680 2002-01-30  Richard Henderson  <rth@redhat.com>
12681
12682         * trans.c (tree_transform) [N_Loop_Statement]: Use
12683         expand_exit_loop_top_cond.
12684
12685 2001-12-23  Richard Henderson  <rth@redhat.com>
12686
12687         * utils.c (end_subprog_body): Push GC context around
12688         rest_of_compilation for nested functions.
12689
12690 2001-12-23  Richard Henderson  <rth@redhat.com>
12691
12692         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
12693
12694 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
12695
12696         * gnat-style.texi (Declarations and Types): Remove ancient style
12697         rule which was mandated by code generation issues.
12698
12699         * gnat-style.texi (header): Add @dircategory, @direntry.
12700         (title page): Remove date.
12701         (general) Add @./@: where approriate, and two spaces after the
12702         full stop at the end of a sentence.  Use @samp markup when
12703         referring concrete lexical entities (keywords, attribute names
12704         etc.), and @syntax for ARM grammar elements. Use @r for English
12705         text in comments.  Use @emph for emphasis.  Change "if-statements"
12706         etc. to "if statements" (without @samp). Break long lines.  Make
12707         casing of section names consistent.
12708         (Identifiers): Use @samp markup for variable names.
12709         (Comments): Use @samp markup for comment characters. Line-end
12710         comments may follow any Ada code, not just statements.  Fix
12711         misspelling of "Integer" as "integer".
12712         (Loop statements): Do not use variable name "I", use "J".
12713         (Subprogram Declarations): Document alignment.
12714         (Subprogram Bodies, Block statements): Document empty line before
12715         "begin".
12716
12717 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
12718
12719         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
12720         function approach did not work well because of a side effect (the
12721         function call could reallocate the table which was being indexed
12722         using its result). Fixes ada/4851.
12723
12724 2001-12-19  Robert Dewar <dewar@gnat.com>
12725
12726         * bindgen.adb: Minor reformatting
12727
12728         * cstand.adb: Minor reformatting
12729
12730         * fmap.adb: Minor reformatting
12731         Change name from Add for Add_To_File_Map (Add is much too generic)
12732         Change Path_Name_Of to Mapped_Path_Name
12733         Change File_Name_Of to Mapped_File_Name
12734         Fix copyright dates in header
12735
12736         * fmap.ads:
12737         Change name from Add for Add_To_File_Map (Add is much too generic)
12738         Change Path_Name_Of to Mapped_Path_Name
12739         Change File_Name_Of to Mapped_File_Name
12740         Fix copyright dates in header
12741
12742         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
12743         Add use clause for Fmap.
12744
12745         * make.adb: Minor reformatting
12746
12747         * osint.adb: Minor reformatting.  Change of names in Fmap.
12748         Add use clause for Fmap.
12749
12750         * prj-env.adb: Minor reformatting
12751
12752         * prj-env.ads: Minor reformatting
12753
12754         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
12755         error found (there were odd exceptions to this general rule in
12756         -gnatec/-gnatem processing)
12757
12758 2001-12-19  Olivier Hainque <hainque@gnat.com>
12759
12760         * raise.c (__gnat_eh_personality): Exception handling personality
12761         routine for Ada.  Still in rough state, inspired from the C++ version
12762         and still containing a bunch of debugging artifacts.
12763         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
12764         inspired from the C++ library.
12765
12766         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
12767         exception handling integration.
12768
12769 2001-12-19  Arnaud Charlet <charlet@gnat.com>
12770
12771         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
12772         (HIE_SOURCES): Add s-secsta.ad{s,b}.
12773         (HIE_OBJS): Add s-fat*.o
12774         (RAVEN_SOURCES): Remove files that are no longer required. Add
12775         interrupt handling files.
12776         (RAVEN_MOD): Removed, no longer needed.
12777
12778 2001-12-19  Robert Dewar <dewar@gnat.com>
12779
12780         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
12781         Add 2001 to copyright date
12782
12783         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
12784         need to force universal inlining for these cases.
12785
12786 2001-12-19  Arnaud Charlet <charlet@gnat.com>
12787
12788         * s-taprob.adb: Minor clean ups so that this unit can be used in
12789         Ravenscar HI.
12790
12791         * exp_ch7.adb: Allow use of secondary stack in HI mode.
12792         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
12793
12794 2001-12-19  Vincent Celier <celier@gnat.com>
12795
12796         * prj-tree.ads (Project_Node_Record): Add comments for components
12797         Pkg_Id and Case_Insensitive.
12798
12799 2001-12-19  Pascal Obry <obry@gnat.com>
12800
12801         * g-socket.adb: Minor reformatting. Found while reading code.
12802
12803 2001-12-19  Robert Dewar <dewar@gnat.com>
12804
12805         * prj-tree.ads: Minor reformatting
12806
12807 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12808
12809         * config-lang.in (diff_excludes): Remove.
12810
12811 2001-12-17  Ed Schonberg <schonber@gnat.com>
12812
12813         * sem_res.adb (Resolve_Selected_Component): do not generate a
12814         discriminant check if the selected component is a component of
12815         the argument of an initialization procedure.
12816
12817         * trans.c (tree_transform, case of arithmetic operators): If result
12818         type is private, the gnu_type is the base type of the full view,
12819         given that the full view itself may be a subtype.
12820
12821 2001-12-17  Robert Dewar <dewar@gnat.com>
12822
12823         * sem_res.adb: Minor reformatting
12824
12825         * trans.c (tree_transform, case N_Real_Literal): Add missing third
12826         parameter in call to Machine (unknown horrible effects from this
12827         omission).
12828
12829         * urealp.h: Add definition of Round_Even for call to Machine
12830         Add third parameter for Machine
12831
12832 2001-12-17  Ed Schonberg <schonber@gnat.com>
12833
12834         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
12835         predefined units in No_Run_Time mode.
12836
12837 2001-12-17  Richard Kenner <kenner@gnat.com>
12838
12839         * misc.c (insn-codes.h): Now include.
12840
12841 2001-12-17  Olivier Hainque <hainque@gnat.com>
12842
12843         * a-except.adb: Preparation work for future integration of the GCC 3
12844         exception handling mechanism
12845         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
12846         to factorize previous code sequences and make them externally callable,
12847         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
12848         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
12849         Use the new notification routines.
12850
12851 2001-12-17  Emmanuel Briot <briot@gnat.com>
12852
12853         * prj-tree.ads (First_Choice_Of): Document the when others case
12854
12855 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12856
12857         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
12858         HI-E mode, in order to support Ravenscar profile properly.
12859
12860         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
12861         mode on 32 bits targets.
12862
12863 2001-12-17  Vincent Celier <celier@gnat.com>
12864
12865         * fmap.adb: Initial version.
12866
12867         * fmap.ads: Initial version.
12868
12869         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
12870         If search is successfully done, add to mapping.
12871
12872         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
12873
12874         * make.adb:
12875         (Gnatmake): Add new local variable Mapping_File_Name.
12876          Create mapping file when using project file(s).
12877          Delete mapping file before exiting.
12878
12879         * opt.ads (Mapping_File_Name): New variable
12880
12881         * osint.adb (Find_File): Use path name found in mapping, if any.
12882
12883         * prj-env.adb (Create_Mapping_File): New procedure
12884
12885         * prj-env.ads (Create_Mapping_File): New procedure.
12886
12887         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
12888         (Mapping_File)
12889
12890         * usage.adb: Add entry for new switch -gnatem.
12891
12892         * Makefile.in: Add dependencies for fmap.o.
12893
12894 2001-12-17  Ed Schonberg <schonber@gnat.com>
12895
12896         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
12897         is a package instantiation rewritten as a package body.
12898         (Install_Withed_Unit): Undo previous change, now redundant.
12899
12900 2001-12-17  Gary Dismukes <dismukes@gnat.com>
12901
12902         * layout.adb:
12903         (Compute_Length): Move conversion to Unsigned to callers.
12904         (Get_Max_Size): Convert Len expression to Unsigned after calls to
12905         Compute_Length and Determine_Range.
12906         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
12907         Compute_Length and Determine_Range.
12908         Above changes fix problem with length computation for supernull arrays
12909         where Max (Len, 0) wasn't getting applied due to the Unsigned
12910         conversion used by Compute_Length.
12911
12912 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12913
12914         * rtsfind.ads:
12915         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
12916          System.Secondary_Stack.
12917         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
12918          in HI-E mode.
12919         Remove unused entity RE_Exception_Data.
12920
12921         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
12922
12923         * rident.ads (No_Secondary_Stack): New restriction.
12924
12925 2001-12-17  Joel Brobecker <brobecke@gnat.com>
12926
12927         * gnat_rm.texi: Fix minor typos. Found while reading the section
12928         regarding "Bit_Order Clauses" that was sent to a customer.
12929         Very interesting documentation!
12930
12931 2001-12-17  Robert Dewar <dewar@gnat.com>
12932
12933         * sem_case.adb (Choice_Image): Avoid creating improper character
12934         literal names by using the routine Set_Character_Literal_Name. This
12935         fixes bombs in certain error message cases.
12936
12937 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12938
12939         * a-reatim.adb: Minor reformatting.
12940
12941 2001-12-17  Ed Schonberg <schonber@gnat.com>
12942
12943         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
12944         case where the formal is an extension of another formal in the current
12945         unit or in a parent generic unit.
12946
12947 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12948
12949         * s-tposen.adb: Update comments.  Minor reformatting.
12950         Minor code clean up.
12951
12952         * s-tarest.adb: Update comments.  Minor code reorganization.
12953
12954 2001-12-17  Gary Dismukes <dismukes@gnat.com>
12955
12956         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
12957         when Java_VM.
12958
12959 2001-12-17  Robert Dewar <dewar@gnat.com>
12960
12961         * exp_attr.adb: Minor reformatting
12962
12963 2001-12-17  Ed Schonberg <schonber@gnat.com>
12964
12965         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
12966         derivations nested within a child unit: verify that the parent
12967         type is declared in an outer scope.
12968
12969 2001-12-17  Robert Dewar <dewar@gnat.com>
12970
12971         * sem_ch12.adb: Minor reformatting
12972
12973 2001-12-17  Ed Schonberg <schonber@gnat.com>
12974
12975         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
12976         warning if current unit is a predefined one, from which bodies may
12977         have been deleted.
12978
12979 2001-12-17  Robert Dewar <dewar@gnat.com>
12980
12981         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
12982         Fix header format. Add 2001 to copyright date.
12983
12984         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
12985         which caused CE during compilation if checks were enabled.
12986
12987 2001-12-17  Vincent Celier <celier@gnat.com>
12988
12989         * make.adb:
12990         (Switches_Of): New function
12991         (Test_If_Relative_Path): New procedure
12992         (Add_Switches): Use new function Switches_Of
12993         (Collect_Arguments_And_Compile): Use new function Switches_Of.
12994         When using a project file, test if there are any relative
12995         search path. Fail if there are any.
12996         (Gnatmake): Only add switches for the primary directory when not using
12997         a project file. When using a project file, change directory to the
12998         object directory of the main project file. When using a project file,
12999         test if there are any relative search path. Fail if there are any.
13000         When using a project file, fail if specified executable is relative
13001         path with directory information, and prepend executable, if not
13002         specified as an absolute path, with the exec directory.  Make sure
13003         that only one -o switch is transmitted to the linker.
13004
13005         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
13006
13007         * prj-nmsc.adb:
13008         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
13009         when using a non standard naming scheme.
13010         (Check_Ada_Naming_Scheme): Make sure that error messages
13011         do not raise exceptions.
13012         (Is_Illegal_Append): Return True if there is no dot in the suffix.
13013         (Language_Independent_Check): Check the exec directory.
13014
13015         * prj.adb (Project_Empty): Add new component Exec_Directory
13016
13017         * prj.ads:
13018         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
13019         (Project_Data): Add component Exec_Directory
13020
13021         * snames.adb: Updated to match snames.ads revision 1.215
13022
13023         * snames.ads: Added Exec_Dir
13024
13025 2001-12-17  Robert Dewar <dewar@gnat.com>
13026
13027         * make.adb: Minor reformatting
13028
13029         * prj-nmsc.adb: Minor reformatting
13030
13031         * snames.adb: Updated to match snames.ads
13032
13033         * snames.ads: Alphebetize entries for project file
13034
13035 2001-12-17  Ed Schonberg <schonber@gnat.com>
13036
13037         * trans.c (process_freeze_entity): Do nothing if the entity is a
13038         subprogram that was already elaborated.
13039
13040 2001-12-17  Richard Kenner <kenner@gnat.com>
13041
13042         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
13043         and Esize if object is referenced via pointer.
13044
13045 2001-12-17  Ed Schonberg <schonber@gnat.com>
13046
13047         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
13048         is discrete before analyzing choices.
13049
13050 2001-12-17  Joel Brobecker <brobecke@gnat.com>
13051
13052         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
13053         containing the name of the Ada Main Program. This string is mainly
13054         intended for the debugger.
13055         (Gen_Output_File_C): Do the equivalent change when generating a C file.
13056
13057 2001-12-17  Robert Dewar <dewar@gnat.com>
13058
13059         * ali.adb: Set new Dummy_Entry field in dependency entry
13060
13061         * ali.ads: Add Dummy_Entry field to source dependency table
13062
13063         * bcheck.adb (Check_Consistency): Ignore dummy D lines
13064
13065         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
13066
13067         * lib-writ.ads: Document dummy D lines for missing files.
13068
13069         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
13070
13071 2001-12-17  Robert Dewar <dewar@gnat.com>
13072
13073         * ali.adb: Type reference does not reset current file.
13074
13075         * ali.adb: Recognize and scan renaming reference
13076
13077         * ali.ads: Add spec for storing renaming references.
13078
13079         * lib-xref.ads: Add documentation for handling of renaming references
13080
13081         * lib-xref.adb: Implement output of renaming reference.
13082
13083         * checks.adb:
13084         (Determine_Range): Document local variables
13085         (Determine_Range): Make sure Hbound is initialized. It looks as though
13086          there could be a real problem here with an uninitialized reference
13087          to Hbound, but no actual example of failure has been found.
13088
13089 2001-12-17  Laurent Pautet <pautet@gnat.com>
13090
13091         * g-socket.ads:
13092         Fix comment of Shutdown_Socket and Close_Socket. These functions
13093         should not fail silently because if they are called twice, this
13094         probably means that there is a race condition in the user program.
13095         Anyway, this behaviour is consistent with the rest of this unit.
13096         When an error occurs, an exception is raised with the error message
13097         as exception message.
13098
13099 2001-12-17  Robert Dewar <dewar@gnat.com>
13100
13101         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
13102         that it happens before modification of Sloc values for -gnatD.
13103
13104         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
13105         so that it happens before modification of Sloc values for -gnatD.
13106
13107         * switch.adb: Minor reformatting
13108
13109 2001-12-15  Richard Henderson  <rth@redhat.com>
13110
13111         * sem_ch7.adb: Wrap comment.
13112
13113 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
13114
13115         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
13116         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
13117         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
13118         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
13119         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
13120         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
13121         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
13122         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
13123         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
13124         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
13125         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
13126         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
13127         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
13128         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
13129         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
13130         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
13131         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
13132         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
13133         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
13134         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
13135         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
13136         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
13137         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
13138         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
13139         spelling errors.
13140
13141 2001-12-14  Vincent Celier <celier@gnat.com>
13142
13143         * osint.adb(Create_Debug_File): When an object file is specified,
13144         put the .dg file in the same directory as the object file.
13145
13146 2001-12-14  Robert Dewar <dewar@gnat.com>
13147
13148         * osint.adb: Minor reformatting
13149
13150         * lib-xref.adb (Output_Instantiation): New procedure to generate
13151         instantiation references.
13152
13153         * lib-xref.ads: Add documentation of handling of generic references.
13154
13155         * ali.adb (Read_Instantiation_Ref): New procedure to read
13156         instantiation references
13157
13158         * ali.ads: Add spec for storing instantiation references
13159
13160         * bindusg.adb: Minor reformatting
13161
13162         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13163
13164         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13165
13166         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13167
13168         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13169
13170         * csets.ads:
13171         Fix header format
13172         Add 2001 to copyright date
13173         Add entry for Latin-5 (Cyrillic ISO-8859-5)
13174
13175 2001-12-14  Matt Gingell <gingell@gnat.com>
13176
13177         * adaint.c: mktemp is a macro on Lynx and can not be used as an
13178         expression.
13179
13180 2001-12-14  Richard Kenner <kenner@gnat.com>
13181
13182         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
13183         if operand is CONSTRUCTOR.
13184
13185 2001-12-14  Ed Schonberg <schonber@gnat.com>
13186
13187         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
13188         before emiting check on right-hand side, so that exception information
13189         is correct.
13190
13191 2001-12-14  Richard Kenner <kenner@gnat.com>
13192
13193         * utils.c (create_var_decl): Throw away initializing expression
13194         if just annotating types and non-constant.
13195
13196 2001-12-14  Vincent Celier <celier@gnat.com>
13197
13198         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
13199         Default_Ada_...
13200
13201         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13202         Remove functions.
13203         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
13204
13205         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13206         Remove functions.
13207         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
13208
13209 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
13210
13211         * ChangeLog: Remove piece of diff output.
13212
13213 2001-12-14  Geert Bosch <bosch@gnat.com>
13214
13215         * config-lang.in: Update copyright notice
13216
13217         * layout.adb: Remove commented out code.
13218
13219         * mdllfile.ads: Update copyright notice. Fix header format.
13220
13221         * sem_case.ads: Likewise.
13222
13223         * sem_ch3.adb: Minor reformatting.
13224
13225 2001-12-12  Geert Bosch <bosch@gnat.com>
13226
13227         * freeze.ads: Update copyright date.
13228
13229         * g-comlin.ads: Minor reformatting.
13230
13231         * gnat-style.texi: Fix typo.
13232
13233 2001-12-12  Geert Bosch <bosch@gnat.com>
13234
13235         *  einfo.h: Regenerate.
13236
13237 2001-12-12  Ed Schonberg <schonber@gnat.com>
13238
13239         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
13240         on known node types, rather than untyped fields. Further cleanups.
13241
13242 2001-12-12  Robert Dewar <dewar@gnat.com>
13243
13244         * sem_ch12.adb:
13245         (Save_Entity_Descendant): Minor comment update.
13246         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
13247          of an N_Attribute_Reference node. As per note below, this does not
13248         eliminate need for Associated_Node in attribute ref nodes.
13249         (Associated_Node): Documentation explicitly mentions attribute
13250         reference nodes, since this field is used in such nodes.
13251
13252         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
13253
13254 2001-12-12  Robert Dewar <dewar@gnat.com>
13255
13256         * s-stalib.adb: Add more comments on with statements being needed
13257
13258         * par-ch12.adb: Minor reformatting
13259
13260         * prj-dect.ads: Fix copyright header
13261
13262         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
13263         inputs fit in 32 bits, but the result still overflows.
13264
13265         * s-fatgen.ads: Minor comment improvement
13266
13267 2001-12-12  Ed Schonberg <schonber@gnat.com>
13268
13269         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
13270         formal derived type, look for an inherited component from the full
13271         view of the parent, if any.
13272
13273 2001-12-12  Robert Dewar <dewar@gnat.com>
13274
13275         * checks.ads (Apply_Alignment_Check): New procedure.
13276
13277         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
13278         ensure that the alignment of objects with address clauses is
13279         appropriate, and raise PE if not.
13280
13281         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
13282         Exp_Pakd.Known_Aligned_Enough
13283
13284         * mdllfile.ads: Minor reformatting
13285
13286         * mlib-fil.ads: Minor reformatting
13287
13288 2001-12-12  Ed Schonberg <schonber@gnat.com>
13289
13290         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
13291         fix to any component reference if enclosing record has non-standard
13292         representation.
13293
13294 2001-12-12  Vincent Celier <celier@gnat.com>
13295
13296         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
13297         Iteration
13298
13299 2001-12-12  Ed Schonberg <schonber@gnat.com>
13300
13301         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
13302         sem_attr.
13303
13304 2001-12-12  Robert Dewar <dewar@gnat.com>
13305
13306         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
13307
13308 2001-12-12  Emmanuel Briot <briot@gnat.com>
13309
13310         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
13311         and it adds dependencies to system.io.
13312
13313 2001-12-12  Pascal Obry <obry@gnat.com>
13314
13315         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
13316         variable name.
13317
13318 2001-12-11  Ed Schonberg <schonber@gnat.com>
13319
13320         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
13321         that is the parent of other generics, the instance body replaces the
13322         instance node.  Retrieve the instance of the spec, which is the one
13323         that is visible in clients and within the body.
13324
13325 2001-12-11  Vincent Celier <celier@gnat.com>
13326
13327         * gnatmain.adb: Initial version.
13328
13329         * gnatmain.ads: Initial version.
13330
13331         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
13332
13333         * snames.adb: Updated to match snames.ads.
13334
13335         * snames.ads: Added Gnatstub.
13336
13337 2001-12-11  Vincent Celier <celier@gnat.com>
13338
13339         * prj-attr.adb (Initialization_Data): Change name from
13340         Initialisation_Data.
13341
13342 2001-12-11  Emmanuel Briot <briot@gnat.com>
13343
13344         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
13345         + and * applied to backslashed expressions like \r.
13346
13347 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
13348
13349         * g-os_lib.ads: String_List type added, Argument_List type is now
13350         subtype of String_List.
13351
13352 2001-12-11  Robert Dewar <dewar@gnat.com>
13353
13354         * g-os_lib.ads: Change copyright to FSF
13355         Add comments for String_List type
13356
13357 2001-12-11  Vincent Celier <celier@gnat.com>
13358
13359         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
13360         string to the buffer).
13361
13362 2001-12-11  Ed Schonberg <schonber@gnat.com>
13363
13364         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
13365         sem_attr.
13366
13367         * sem_attr.adb: Simplify previous fix for Address.
13368         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
13369         to avoid anomalies where the bound of the type appears to raise
13370         constraint error.
13371
13372 2001-12-11  Robert Dewar <dewar@gnat.com>
13373
13374         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
13375         handled.
13376
13377 2001-12-11  Ed Schonberg <schonber@gnat.com>
13378
13379         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
13380         renamed unit before checking for recursive instantiations.
13381
13382 2001-12-11  Emmanuel Briot <briot@gnat.com>
13383
13384         * prj.ads: Add comments for some of the fields.
13385
13386 2001-12-11  Robert Dewar <dewar@gnat.com>
13387
13388         * lib-xref.adb (Output_Refs): Don't output type references outside
13389         the main unit if they are not otherwise referenced.
13390
13391 2001-12-11  Ed Schonberg <schonber@gnat.com>
13392
13393         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
13394         code and diagnose additional illegal uses
13395
13396         * sem_util.adb (Is_Object_Reference): An indexed component is an
13397         object only if the prefix is.
13398
13399 2001-12-11  Vincent Celier <celier@gnat.com>
13400
13401         * g-diopit.adb: Initial version.
13402
13403         * g-diopit.ads: Initial version.
13404
13405         * g-dirope.adb:
13406         (Expand_Path): Avoid use of Unbounded_String
13407         (Find, Wildcard_Iterator): Moved to child package Iteration
13408
13409         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
13410
13411 2001-12-11  Robert Dewar <dewar@gnat.com>
13412
13413         * sem_attr.adb: Minor reformatting
13414
13415 2001-12-11  Ed Schonberg <schonber@gnat.com>
13416
13417         * sem_ch3.adb: Clarify some ???.
13418
13419 2001-12-11  Robert Dewar <dewar@gnat.com>
13420
13421         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
13422         Exp_Pakd.Known_Aligned_Enough
13423
13424         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
13425         version is moved to Exp_Ch13.
13426
13427 2001-12-11  Robert Dewar <dewar@gnat.com>
13428
13429         * einfo.ads: Minor reformatting
13430
13431         * exp_ch5.adb: Add comment for previous.change
13432
13433         * ali.adb: New interface for extended typeref stuff.
13434
13435         * ali.ads: New interface for typeref stuff.
13436
13437         * checks.adb (Apply_Alignment_Check): New procedure.
13438
13439         * debug.adb: Add -gnatdM for modified ALI output
13440
13441         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
13442
13443         * lib-xref.adb: Extend generation of <..> notation to cover
13444         subtype/object types. Note that this is a complete rewrite,
13445         getting rid of the very nasty quadratic algorithm previously
13446         used for derived type output.
13447
13448         * lib-xref.ads: Extend description of <..> notation to cover
13449         subtype/object types. Uses {..} for these other cases.
13450         Also use (..) for pointer types.
13451
13452         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
13453
13454         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
13455         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
13456
13457 2001-12-11  Vincent Celier <celier@gnat.com>
13458
13459         * gnatcmd.adb:
13460         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
13461         Changed /BIND_ONLY to /ACTIONS=BIND
13462         Changed /LINK_ONLY to /ACTIONS=LINK
13463
13464 2001-12-11  Ed Schonberg  <schonber@gnat.com>
13465
13466         * sem_ch8.adb (Find_Selected_Component): improved search for a
13467         candidate package in case of error.
13468
13469         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
13470         chain back on scope stack before reinstalling use clauses.
13471
13472         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
13473         is enabled, do not kill the code for the condition, to preserve
13474         warning.
13475
13476 2001-12-11  Robert Dewar <dewar@gnat.com>
13477
13478         * checks.adb (Insert_Valid_Check): Apply validity check to expression
13479         of conversion, not to result of conversion.
13480
13481 2001-12-11  Ed Schonberg <schonber@gnat.com>
13482
13483         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
13484         before freezing parent. If the declarations are mutually recursive,
13485         an access to the current record type may be frozen before the
13486         derivation is complete.
13487
13488 2001-12-05  Vincent Celier <celier@gnat.com>
13489
13490         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
13491         -c /COMPILE_ONLY, -l /LINK_ONLY
13492
13493         * opt.ads:
13494         (Bind_Only): New Flag
13495         (Link_Only): New flag
13496
13497         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
13498         and -l (Link_Only)
13499
13500         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
13501
13502         * make.adb:
13503         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
13504         (Gnatmake): Set the step flags. Only perform a step if the
13505         corresponding step flag is True.
13506         (Scan_Make_Arg): Reset the bind and link step flags when -u
13507         or -gnatc has been specified.
13508
13509 2001-12-05  Ed Schonberg <schonber@gnat.com>
13510
13511         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
13512         get bounds from right operand.
13513
13514         * sem_eval.adb: Minor reformatting
13515
13516         * exp_util.adb (Make_Literal_Range): use bound of literal rather
13517         than Index'First, its lower bound may be different from 1.
13518
13519         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
13520         and C48009J
13521
13522 2001-12-05  Vincent Celier <celier@gnat.com>
13523
13524         * prj-nmsc.adb Minor reformatting
13525
13526         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
13527         set and libraries are not supported.
13528
13529 2001-12-05  Ed Schonberg <schonber@gnat.com>
13530
13531         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
13532         private view explicitly, so the back-end can treat as a global
13533         when appropriate.
13534
13535 2001-12-05  Ed Schonberg <schonber@gnat.com>
13536
13537         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
13538          unit, always replace instance node with new body, for ASIS use.
13539
13540 2001-12-05  Vincent Celier <celier@gnat.com>
13541
13542         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
13543         libraries are not supported and both attributes Library_Name and
13544         Library_Dir are specified.
13545
13546         * prj-proc.adb (Expression): Set location of Result to location of
13547         first term.
13548
13549         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
13550         (prj-nmsc is now importing MLib.Tgt)
13551
13552         * prj-proc.adb: Put the change indicated above that was forgotten.
13553
13554 2001-12-05  Robert Dewar <dewar@gnat.com>
13555
13556         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
13557
13558 2001-12-05  Ed Schonberg <schonber@gnat.com>
13559
13560         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
13561         constraint, introduce explicit subtype declaration and derive from it.
13562
13563         * sem_ch3.adb: Minor reformatting
13564
13565 2001-12-05  Robert Dewar <dewar@gnat.com>
13566
13567         * checks.adb (Determine_Range): Increase cache size for checks.
13568         Minor reformatting
13569
13570         * exp_ch6.adb: Minor reformatting
13571         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
13572         a parameter whose root type is System.Address, since treating such
13573         subprograms as pure in the code generator is almost surely a mistake
13574         that will lead to unexpected results.
13575
13576         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
13577         change handling of conversions.
13578
13579         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
13580
13581 2001-12-05  Ed Schonberg <schonber@gnat.com>
13582
13583         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
13584         aggregate with static wrong size, attach generated Raise node to
13585         declaration.
13586
13587 2001-12-05  Robert Dewar <dewar@gnat.com>
13588
13589         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
13590         Fixes compilation abandoned bomb in B24009B.
13591
13592 2001-12-05  Ed Schonberg <schonber@gnat.com>
13593
13594         * sem_ch12.adb:
13595         Document use of Associated_Node on Selected_Components.
13596         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
13597         to clarify use of untyped descendant fields.
13598
13599 2001-12-05  Robert Dewar <dewar@gnat.com>
13600
13601         * prj-dect.ads: Add ??? comment
13602         Add 2001 to copyright notice (was not done in after all)
13603
13604         * prj-part.adb: Minor reformatting. Reword one awkward error message.
13605
13606         * prj.ads: Minor reformatting throughout, and add some ??? comments
13607
13608         * snames.ads: Minor reformatting
13609
13610 2001-12-05  Geert Bosch <bosch@gnat.com>
13611
13612         * snames.adb: Autoupdate
13613
13614 2001-12-05  Vincent Celier <celier@gnat.com>
13615
13616         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
13617
13618         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
13619
13620         * prj-env.adb: Minor comment changes (modifying -> extends).
13621
13622         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
13623
13624         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
13625         Tok_Extends.
13626
13627         * prj.adb (Initialize): Change Modifying to Extends.
13628
13629         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
13630
13631         * prj.ads: Minor comment change (Modifying -> extending).
13632
13633         * snames.ads: Change modifying to extends.
13634
13635 2001-12-05  Robert Dewar <dewar@gnat.com>
13636
13637         * sem_warn.adb: Remove stuff for conditionals, we are not going to
13638         do this after all.
13639
13640         * sem_warn.ads: Remove stuff for conditionals, we are not going to
13641         do this after all.  Add 2001 to copyright notice
13642
13643 2001-12-04  Geert Bosch <bosch@gnat.com>
13644
13645         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
13646
13647 2001-12-04  Robert Dewar <dewar@gnat.com>
13648
13649         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
13650         location if we already have errors. Stops some cases of cascaded
13651         errors.
13652
13653         * errout.adb: Improve comment.
13654
13655 2001-12-04  Robert Dewar <dewar@gnat.com>
13656
13657         * sem_ch12.adb:
13658         (Analyze_Formal_Type_Definition): Defend against Error.
13659         (Analyze_Formal_Subprogram): Defend against Error.
13660
13661         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
13662         remove following semicolon if present. Removes cascaded error.
13663
13664 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
13665
13666         * bindgen.adb:
13667         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
13668          exceptions equals 0.
13669         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
13670         Fixes PIWG E tests (which have to be run with -gnatL).
13671
13672 2001-12-04  Robert Dewar <dewar@gnat.com>
13673
13674         * einfo.ads: Minor reformatting
13675
13676 2001-12-04  Ed Schonberg <schonber@gnat.com>
13677
13678         * einfo.ads: Block_Node points to the identifier of the block, not to
13679         the block node itself, to preserve the link when the block is
13680         rewritten, e.g. within an if-statement with a static condition.
13681
13682         * inline.adb (Cleanup_Scopes): recover block statement from block
13683         entity using new meaning of Block_Node.
13684
13685         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
13686         identifier of block node, rather than to node itself.
13687
13688 2001-12-04  Gary Dismukes <dismukes@gnat.com>
13689
13690         * layout.adb:
13691         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
13692         (Discrimify): Go back to setting the Etypes of the selected component
13693         because the Vname component does not exist at this point and will
13694         fail name resolution. Also set Analyzed.
13695         Remove with and use of Sem_Res.
13696
13697 2001-12-04  Arnaud Charlet <charlet@gnat.com>
13698
13699         * Makefile.in: (HIE_SOURCES): add s-fat*.
13700
13701 2001-12-04  Robert Dewar <dewar@gnat.com>
13702
13703         * sem_attr.adb:
13704         (Compile_Time_Known_Attribute): New procedure.
13705         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
13706          proper range check.
13707
13708 2001-12-04  Ed Schonberg <schonber@gnat.com>
13709
13710         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
13711         processing discriminants to diagnose illegal default values.
13712
13713 2001-12-04  Ed Schonberg <schonber@gnat.com>
13714
13715         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
13716         access discriminant within a type extension that constrains its
13717         parent discriminants.
13718
13719 2001-12-04  Ed Schonberg <schonber@gnat.com>
13720
13721         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
13722         is malformed, use instance of Any_Id to allow analysis to proceed.
13723
13724         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
13725         type definition is illegal.
13726         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
13727         misplaced.
13728
13729 2001-12-04  Ed Schonberg <schonber@gnat.com>
13730
13731         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
13732         constants.
13733
13734 2001-12-04  Robert Dewar <dewar@gnat.com>
13735
13736         * errout.adb: Minor reformatting
13737
13738 2001-12-04  Robert Dewar <dewar@gnat.com>
13739
13740         * exp_util.adb: Minor reformatting from last change
13741
13742         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
13743         which is a rewriting of an expression, traverse the original
13744         expression to remove warnings that may have been posted on it.
13745
13746 2001-12-04  Ed Schonberg <schonber@gnat.com>
13747
13748         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
13749         record that has other packed components.
13750
13751 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
13752
13753         * adaint.c: Minor cleanups.
13754
13755 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
13756
13757         * adaint.c: Do not use utime.h on vxworks.
13758
13759 2001-12-04  Arnaud Charlet <charlet@gnat.com>
13760
13761         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
13762         more confusion than it solves.
13763
13764 2001-12-04  Geert bosch <bosch@gnat.com>
13765
13766         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
13767
13768 2001-12-04  Geert Bosch  <bosch@gnat.com>
13769
13770         * Makefile.in (update-sources): New target.
13771         For use by gcc_release script.
13772
13773 2001-12-04  Ed Schonberg <schonber@gnat.com>
13774
13775         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
13776         a configuration pragma, it is now legal wherever a pragma can appear.
13777
13778 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
13779
13780         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
13781         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
13782         is now @CROSS@ -DIN_GCC; update comment.
13783
13784 2001-12-04  Robert Dewar <dewar@gnat.com>
13785
13786         * einfo.adb (Has_Pragma_Pure_Function): New flag.
13787         Fix problem that stopped ceinfo from working
13788
13789         * einfo.ads (Has_Pragma_Pure_Function): New flag.
13790
13791         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
13792
13793 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
13794
13795         * gnatchop.adb:
13796         (File_Time_Stamp): New procedure.
13797         (Preserve_Mode): New boolean.
13798         (Write_Unit): Pass time stamp.
13799         Implement -p switch (preserve time stamps).
13800
13801         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
13802
13803         * gnatchop.adb: Do usage info for -p switch
13804
13805         * adaint.h (__gnat_set_file_time_name): New function
13806
13807         * adaint.c (__gnat_set_file_time_name): Implement
13808
13809         * adaint.h: Fix typo
13810
13811 2001-12-03  Robert Dewar <dewar@gnat.com>
13812
13813         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
13814         have Associated_Node.
13815
13816 2001-12-03  Robert Dewar <dewar@gnat.com>
13817
13818         * prj-proc.adb: Minor reformatting
13819
13820         * make.adb: Minor reformatting
13821
13822 2001-12-03  Geert Bosch <bosch@gnat.com>
13823
13824         * make.adb: Minor reformatting.
13825
13826 2001-12-03 Robert Dewar  <dewar@gnat.com>
13827
13828         * sem_ch12.adb: Minor reformatting
13829
13830 2001-12-03  Ed Schonberg <schonber@gnat.com>
13831
13832         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
13833         push Standard on the stack before analyzing the instance body,
13834         in order to have a clean visibility environment.
13835
13836         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
13837
13838 2001-12-03  Ed Schonberg <schonber@gnat.com>
13839
13840         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13841         instantiation of a body that contains an inlined body.
13842
13843 2001-12-03  Ed Schonberg <schonber@gnat.com>
13844
13845         * sem_ch12.adb:
13846         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
13847         to prevent freezing within formal packages.
13848         (Freeze_Subprogram_Body): If body comes from another instance that
13849         appeared before its own body, place freeze node at end of current
13850         declarative part, to prevent a back-end crash.
13851         (Inline_Instance_Body): Handle properly a package instance within
13852         a subprogram instance that is a child unit.
13853
13854 2001-12-01  Graham Stott  <grahams@redhat.com>
13855
13856         * Makefile.in (misc.o): Add missing $(srcdir) prefix
13857         and add optabs.h dependency.
13858
13859         * misc.c: Include optabs.h
13860         (gnat_tree_code_type): Make static and const.
13861         (gnat_tree_code_length): Likewise.
13862         (gnat_tree_code_name): Likewise.
13863         (update_setjmp_buf): Obtain operands mode from insn_data.
13864
13865 2001-11-29  Richard Henderson  <rth@redhat.com>
13866
13867         * init.c: Remove obsolete dwarf2 frame.h section.
13868
13869 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
13870
13871         * Make-lang.in (ada.generated-manpages): New dummy target.
13872
13873 2001-11-29  Ed Schonberg <schonber@gnat.com>
13874
13875         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
13876         into Command, an array conversion is illegal here. Uncovered by
13877         ACATS B460005.
13878
13879 2001/11/28  Geert Bosch <bosch@gnat.com>
13880
13881         * init.c: Minor whitespace changes.
13882
13883 2001-11-28  Doug Rupp <rupp@gnat.com>
13884
13885         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
13886         signal stack.
13887
13888 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
13889
13890         * misc.c (gnat_expand_constant): Move declaration above
13891         definition of lang_hooks.
13892         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
13893         (gnat_init): lang_expand_constant no longer exists.
13894
13895         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
13896         always have vprintf.
13897         (gnat_init): Always call set_internal_error_function.
13898
13899 2001-11-27  Andreas Jaeger  <aj@suse.de>
13900
13901         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
13902
13903 2001-11-27  Laurent Guerby  <guerby@acm.org>
13904
13905         * Makefile.in: Regenerate Ada dependencies.
13906
13907 2001-11-26  Richard Henderson  <rth@redhat.com>
13908
13909         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
13910         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
13911         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
13912
13913 2001-11-25  Laurent Guerby  <guerby@acm.org>
13914
13915         * sysdep.c (rts_get_*): Fix style.
13916
13917 2001-11-19  Laurent Guerby  <guerby@acm.org>
13918
13919         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
13920         since it is of no apparent use and cause warnings.
13921
13922 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
13923
13924         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
13925         static too.
13926         (gnat_init): Don't return NULL.
13927         (finish_parse): Remove.
13928
13929 2001-11-17  Laurent Guerby  <guerby@acm.org>
13930
13931         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
13932         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
13933         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
13934         * lang-spec.h: Add missing struct field to silence warnings.
13935         * sysdep.c (rts_get_*): Provide K&R prototype.
13936         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
13937         * traceback.c (Unlock_Task, Lock_Task): Likewise.
13938         * tracebak.c (__gnat_backtrace): Remove unused variable.
13939         * utils.c (end_subprog_body): Move to K&R style.
13940
13941 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13942
13943         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
13944
13945 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
13946
13947         * misc.c (gnat_init): Change prototype.  Include the
13948         functionality of the old init_parse and init_decl_processing.
13949         (gnat_init_decl_processing): New prototype.
13950         (init_parse): Remove.
13951         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
13952
13953 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13954
13955         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
13956         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
13957         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
13958         set_yydebug): Remove.
13959
13960 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13961
13962         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
13963         (struct lang_hooks): Constify.
13964         (language_string, lang_identify): Remove.
13965         * utils.c (init_decl_processing): Update.
13966
13967 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13968
13969         * misc.c: Include langhooks-def.h.
13970         * Makefile.in: Update.
13971
13972 2001-10-30  Robert Dewar <dewar@gnat.com>
13973
13974         * style.adb:
13975         (Check_Identifier): Rewrite circuit to be compatible with use of letters
13976         in the upper half of ASCII.
13977         (Check_Identifier): Minor reformatting
13978
13979 2001-10-30  Geert Bosch <bosch@gnat.com>
13980
13981         * (Associated_Node, Set_Associated_Node): Do not check for
13982         Freeze_Entity.
13983
13984 2001-10-30  Robert Dewar <dewar@gnat.com>
13985
13986         * a-reatim.ads: Minor reformatting
13987
13988 2001-10-30  Robert Dewar <dewar@gnat.com>
13989
13990         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
13991         undocumented declarations.
13992
13993 2001-10-30  Pascal Obry <obry@gnat.com>
13994
13995         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
13996         to the binder and linker.
13997         Minor style fix.
13998
13999         * mdll.ads: Fix layout.  Update copyright notice.
14000
14001         * mdll.adb: Fix layout.  Update copyright notice.
14002
14003 2001-10-30  Robert Dewar <dewar@gnat.com>
14004
14005         * usage.adb: Minor fix to output for -gnaty.
14006
14007 2001-10-30  Ed Schonberg <schonber@gnat.com>
14008
14009         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
14010         to accommodate all its possible values.
14011
14012         * a-reatim.adb (Split): Special-case handling of Time_Span_First
14013         and of small absolute values of T.
14014
14015 2001-10-30  Richard Kenner <kenner@gnat.com>
14016
14017         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
14018         set_mem_attributes since not needed and wrong if RESULT if a REG;
14019         fixes ACATS failures.
14020
14021 2001-10-30  Geert Bosch <bosch@gnat.com>
14022
14023         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
14024         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
14025
14026 2001-10-30  Robert Dewar <dewar@gnat.com>
14027
14028         * bindusg.adb: Undocument -f switch.
14029
14030         * gnatcmd.adb: Remove /FULL_ELABORATION.
14031
14032         * opt.ads (Force_RM_Elaboration_Order): Document that this is
14033         obsolescent.
14034
14035         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
14036
14037         * gnatbind.adb: Minor update of warning msg.
14038
14039 2001-10-30  Vincent Celier <celier@gnat.com>
14040
14041         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
14042         for project file switches (-P (/PROJECT_FILE=),
14043          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
14044         or MEDIUM or HIGH)
14045
14046 2001-10-30  Geert Bosch <bosch@gnat.com>
14047
14048         * decl.c: Minor whitespace fixes.
14049
14050 2001-10-30  Richard Kenner <kenner@gnat.com>
14051
14052         * utils2.c (build_allocator): Test for SIZE overflow in array case too
14053
14054 2001-10-30  Geert Bosch <bosch@gnat.com>
14055
14056         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
14057         Found due to GCC 3.0 warning of using uninitialized value.
14058
14059         * layout.adb:
14060         (Get_Max_Size): Use variant record for tracking value/expression.
14061          Makes logic clearer and prevents warnings for uninitialized variables.
14062         (Layout_Array_Type): Use variant record for tracking value/expression.
14063          Makes logic clearer and prevents warnings for uninitialized variables.
14064
14065 2001-10-30  Robert Dewar <dewar@gnat.com>
14066
14067         * lib.adb: Minor reformatting
14068
14069         * s-taprop.ads: Minor reformatting
14070
14071 2001-10-29  Laurent Guerby  <guerby@acm.org>
14072
14073         * init.c:
14074         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
14075         const.
14076         (_gnat_error_handler): Make MSG const.
14077
14078 2001-10-29  Richard Kenner <kenner@gnat.com>
14079
14080         * sysdep.c: Fix localtime_r problem on LynxOS.
14081         Also remove #elif to avoid warnings.
14082
14083         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
14084         used by this.
14085
14086         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
14087
14088 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
14089
14090         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
14091         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
14092         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
14093         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
14094         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
14095         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
14096         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
14097         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
14098         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
14099         types.ads, urealp.adb: Fix spelling errors.
14100
14101 2001-10-27  Laurent Guerby <guerby@acm.org>
14102
14103         * trans.c (gigi): Fix non determinism leading to bootstrap
14104         comparison failures for debugging information.
14105
14106 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
14107
14108         * gnat_rm.texi: Use @./@: where appropriate.
14109
14110 2001-10-26  Robert Dewar <dewar@gnat.com>
14111
14112         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
14113
14114 2001-10-26  Richard Kenner <kenner@gnat.com>
14115
14116         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
14117
14118 2001-10-26  Richard Kenner <kenner@gnat.com>
14119
14120         * decl.c (validate_size): Modify message for bad size to avoid
14121         implication that compiler is modifying the size.
14122
14123 2001-10-26  Robert Dewar <dewar@gnat.com>
14124
14125         * prj-util.adb: Minor reformatting. Fix bad header format.
14126
14127 2001-10-26  Robert Dewar <dewar@gnat.com>
14128
14129         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
14130
14131         * sinfo.ads: Clarify use of Associated_Node (documentation only).
14132
14133         * sem_ch12.adb: Change Node4 to Associated_Node. Change
14134         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
14135         much more narrowly in places where needed. These are cleanups.
14136
14137 2001-10-26  Joel Brobecker <brobecke@gnat.com>
14138
14139         * 5zosinte.ads (null_pthread): new constant.
14140
14141         * 5ztaprop.adb:
14142         (Initialize_TCB): Initialize thread ID to null, to be able to verify
14143          later that this field has been set.
14144         (Finalize_TCB): ditto.
14145         (Suspend_Task): Verify that the thread ID is not null before using it.
14146         (Resume_Task): ditto.
14147
14148         * s-tasdeb.adb:
14149         (Resume_All_Tasks): Lock the tasks list before using it.
14150         (Suspend_All_Tasks): ditto.
14151
14152 2001-10-26  Richard Kenner <kenner@gnat.com>
14153
14154         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
14155         Make constant variant of designated type for Is_Access_Constant.
14156         Call update_pointer_to with main variant.
14157
14158         * trans.c (process_freeze_entity, process_type):
14159         Call update_pointer_to on main variant.
14160
14161         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
14162         If main variant, update all other variants.
14163
14164         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
14165         TREE_STATIC.
14166
14167 2001-10-26  Robert Dewar <dewar@gnat.com>
14168
14169         * prj-util.adb: Minor reformatting
14170
14171 2001-10-26  Robert Dewar <dewar@gnat.com>
14172
14173         * prj-util.adb: Minor reformatting
14174
14175 2001-10-26  Robert Dewar <dewar@gnat.com>
14176
14177         * prj-attr.adb: Minor reformatting throughout
14178
14179 2001-10-26  Robert Dewar <dewar@gnat.com>
14180
14181         * prj-attr.ads: Minor reformatting
14182         Add ??? comment (this whole spec has almost no comments)
14183
14184 2001-10-26  Vincent Celier <celier@gnat.com>
14185
14186         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
14187         ("//") that precede the drive letter on Interix.
14188
14189 2001-10-26  Geert Bosch <bosch@gnat.com>
14190
14191         * gnat_rm.texi: Add GNAT Reference Manual.
14192
14193 2001-10-25  Robert Dewar <dewar@gnat.com>
14194
14195         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
14196         is Error. Similar change for other renaming cases.
14197
14198 2001-10-25  Robert Dewar <dewar@gnat.com>
14199
14200         * s-atacco.ads: Add pragma Inline_Always for functions.
14201         Fix header format. Add copyright 2001
14202
14203 2001-10-25  Ed Schonberg <schonber@gnat.com>
14204
14205         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
14206         return Error rather than Empty so that analysis can proceed.
14207
14208 2001-10-25  Ed Schonberg <schonber@gnat.com>
14209
14210         * sem_util.adb (Enter_Name): better handling of cascaded error
14211         messages when a unit appears in its own context.
14212
14213 2001-10-25  Ed Schonberg <schonber@gnat.com>
14214
14215         * sem_util.adb (Defining_Entity): in case of error, attach created
14216         entity to specification, so that semantic analysis can proceed.
14217
14218 2001-10-25  Robert Dewar <dewar@gnat.com>
14219
14220         * sem_util.adb
14221         (Defining_Entity): Deal with Error.
14222         (Process_End_Label): Deal with bad end label for.
14223
14224 2001-10-25  Ed Schonberg <schonber@gnat.com>
14225
14226         * sem_elab.adb (Check_A_Call): refine message when call is in an
14227         instance but callee is not declared in the generic unit.
14228
14229 2001-10-25  Ed Schonberg <schonber@gnat.com>
14230
14231         * sem_elab.adb (Check_A_Call): check for renaming before finding the
14232         enclosing unit, which may already be different from the calling unit.
14233
14234 2001-10-25  Geert Bosch <bosch@gnat.com>
14235
14236         * 4gintnam.ads: fix header format.
14237
14238 2001-10-25  Ed Schonberg <schonber@gnat.com>
14239
14240         * sem_res.adb (Resolve_Call): if the call is actually an indexing
14241         operation on the result of a parameterless call, perform elaboration
14242         check after the node has been properly rewritten.
14243
14244         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
14245         inlined within the generic tree, the defining identifier is not a
14246         compilation_unit.
14247
14248 2001-10-25  Ed Schonberg <schonber@gnat.com>
14249
14250         * sem_res.adb (Resolve): special-case resolution of Null in an
14251          instance or an inlined body to avoid view conflicts.
14252
14253         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
14254          compatibility by retrieving the access type of the generic copy.
14255
14256 2001-10-25  Robert Dewar <dewar@gnat.com>
14257
14258         * sem_ch3.adb:
14259         (Analyze_Number_Declaration): Handle error expression.
14260         (Signed_Integer_Type_Declaration): Handle error bound.
14261         (Analyze_Subtype_Indication): Handle error range.
14262
14263         * sem_util.adb (Get_Index_Bounds): Check for Error.
14264
14265 2001-10-25  Robert Dewar <dewar@gnat.com>
14266
14267         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
14268         in no run time mode.
14269
14270 2001-10-25  Pascal Obry <obry@gnat.com>
14271
14272         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
14273         mode case for ALLOC case.
14274
14275         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
14276         all platforms. Improvement of last change.
14277
14278 2001-10-25  Robert Dewar <dewar@gnat.com>
14279
14280         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
14281
14282 2001-10-25  Geert Bosch  <bosch@gnat.com>
14283
14284         * osint.adb (Is_Relative): Remove duplicate.
14285
14286 2001-10-25  Pascal Obry <obry@gnat.com>
14287
14288         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
14289         pathnames in UNIX and DOS style with drive letter.
14290         (Is_Relative): new routine.
14291
14292         * osint.adb: Minor reformatting
14293
14294         * osint.adb (Is_Relative): implementation using
14295         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
14296
14297 2001-10-25  Pascal Obry <obry@gnat.com>
14298
14299         * g-dirope.adb (Basename): correctly compute offset between the
14300         original Path and the translated one.
14301
14302         * g-dirope.adb: (Base_Name): add some comments.
14303
14304 2001-10-25  Robert Dewar <dewar@gnat.com>
14305
14306         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
14307         in HIE mode, avoids compilation abandoned message
14308
14309         * exp_imgv.adb: Correct typo in previous change
14310
14311         * exp_imgv.adb: Correct typo in previous change (not my day!)
14312
14313 2001-10-25  Robert Dewar <dewar@gnat.com>
14314
14315         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
14316
14317 2001-10-25  Pascal Obry <obry@gnat.com>
14318
14319         * g-awk.ads: Move all pragma inlines next to the routine
14320          declarations. This is more uniform with other GNAT spec.
14321
14322 2001-10-22  Geert Bosch  <bosch@gnat.com>
14323
14324         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
14325
14326 2001-10-19  Geert Bosch  <bosch@gnat.com>
14327
14328         * Makefile.in (tools, gnattools): Remove gnatmem.
14329
14330 2001-10-17  Richard Henderson  <rth@redhat.com>
14331
14332         * Makefile.in (misc.o): Depend on langhooks.h.
14333         * misc.c: Include it.
14334         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
14335         (LANG_HOOKS_DECODE_OPTION): New.
14336         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
14337
14338 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
14339
14340         * trans.c (tree_transform): Adjust to recent change in
14341         expand_asm_operands to implement named asm operands.
14342
14343 2001-10-11  Ed Schonberg  <schonber@gnat.com>
14344
14345         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
14346         renaming of discriminant for mutable record type.
14347
14348 2001-10-11  Robert Dewar  <dewar@gnat.com>
14349
14350         * validsw.adb: Properly save -gnatVn status.
14351
14352 2001-10-11  Robert Dewar <dewar@gnat.com>
14353
14354         * usage.adb: Add lines for V switch.
14355
14356         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
14357         (/VALIDITY_CHECKING).
14358
14359 2001-10-11  Ed Schonberg <schonber@gnat.com>
14360
14361         * sem_type.adb (Add_One_Interp): an operator for a type declared in
14362         an extension of System is known to be visible.
14363
14364 2001-10-11  Ed Schonberg <schonber@gnat.com>
14365
14366         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
14367         properly. Fixes regression on ACATS C34005G.
14368
14369 2001-10-11  Robert Dewar <dewar@gnat.com>
14370
14371         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
14372         loop in generic instance, since this is likely not very useful.
14373
14374 2001-10-11  Robert Dewar <dewar@gnat.com>
14375
14376         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
14377         the error message for high integrity mode.
14378
14379         * rtsfind.adb (RTE): Give message if we try to find an entity that
14380         is not available in high integrity mode.
14381
14382         * rtsfind.ads:
14383         (OK_To_Use_In_HIE_Mode): New array.
14384         (RTE): May return Empty in high integrity mode.
14385
14386         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
14387         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
14388
14389         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
14390         unit if not inlined always and in no runtime mode. Fixes problem
14391         caused by new Rtsfind changes.
14392
14393         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
14394         body is deleted.
14395
14396         * rtsfind.adb (RTE): Make sure we do not try to load unit after
14397         giving message for entity not available in high integrity mode.
14398
14399 2001-10-11  Pascal Obry <obry@gnat.com>
14400
14401         * impunit.adb: Add GNAT.CRC32.
14402
14403 2001-10-11  Ed Schonberg <schonber@gnat.com>
14404
14405         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
14406         properly the case where one universal operand in a non-static
14407         exponentiation of a real literal.
14408
14409 2001-10-11  Ed Schonberg <schonber@gnat.com>
14410
14411         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
14412         clause, return the gobal finalization list, for lack of anthing else.
14413
14414 2001-10-11  Ed Schonberg <schonber@gnat.com>
14415
14416         * exp_ch7.adb (Make_Transient_Block): if statement is within
14417         exception handler, always use new transient scope to place Clean
14418         procedure.
14419
14420 2001-10-11  Pascal Obry <obry@gnat.com>
14421
14422         * Makefile.in:
14423         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14424         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14425         (GNATLS_RTL_OBJS): add g-crc32.o
14426         (GNATMAKE_RTL_OBJS): add g-crc32.o
14427
14428         * ali-util.adb:
14429         (CRC_Match): new function.
14430         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
14431         instead of the previous simple checksum algorithm.
14432         (Time_Stamp_Mismatch): use CRC_Match for comparison.
14433         (Set_Source_Table): idem.
14434
14435         * ali-util.ads:
14436         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
14437         instead of simple checksum.
14438         (CRC_Match): new function.
14439         (CRC_Error): new constant.
14440
14441         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
14442         a CRC now and not a simple checksum. A CRC uses lower-case hex
14443         letters, fixes ambiguity in parsing.
14444
14445         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
14446         is what this variable will store.
14447
14448         * bcheck.adb: Change reference to chechsum in comments by CRC.
14449         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
14450         rename All_Checksum_Match to All_CRC_Match. Change due to API
14451         renaming since now GNAT does not use a simple checksum but a
14452         CRC using GNAT.CRC32.
14453
14454         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
14455         now and not anymore a simple checksum.
14456
14457         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
14458         places.
14459
14460         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
14461
14462         * scans.adb:
14463         (Restore_Scan_State): rename Checksum to CRC.
14464         (Save_Scan_State): idem.
14465
14466         * scans.ads:
14467         With GNAT.CRC32.
14468         (Checksum): rename to CRC.
14469         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
14470
14471         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
14472         GNAT.CRC32).  Update copyright notice.
14473
14474         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
14475         GNAT.CRC32).  Update copyright notice.
14476
14477         * scn.adb:
14478         (Accumulate_Checksum): removed.
14479         (Update): new procedure. Add a wide-character into the CRC.
14480
14481         * sinput-l.adb:
14482         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
14483         (Load_File): fix initialization of S (change Source_Checksum to
14484         Source_CRC)
14485
14486         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
14487         Source_CRC in S initialization.
14488
14489         * sinput.adb (Source_Checksum): renamed to Source_CRC.
14490
14491         * sinput.ads (Source_Checksum): renamed to Source_CRC.
14492         Update comments for the CRC.
14493
14494         * types.adb (Hex): Use lowercase for the letter part.
14495
14496         * types.ads (Get_Hex_String): Returns the hexadecimal representation
14497         for a word. This is currently used only for CRC. In previous version,
14498         the checksum was using a representation with all letter being
14499         upper-case. With the new implementation (using CRC) we do not remove
14500         the 32th bit of the CRC, so we can have an upper-case starting letter
14501         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
14502         It is ambigous since the CRC was optional and could be followed by
14503         options like EB, EE. So now this routines uses lower-case letter for
14504         the hexadecimal representation. Strange enough only lower case letters
14505         where checked in Scan_ALI (even if this was not a possible case).
14506
14507         * gnatvsn.ads (Library_Version): changed to 3.15a.
14508
14509         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
14510         for the compiler.
14511
14512         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
14513         for the compiler.
14514
14515         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
14516         Add 2001 to copyright notice
14517         (Accumulate_Checksum): Modify to use System.CRC32.
14518
14519         * ali-util.ads: Redo changes of previous revision to continue to use
14520         the word Checksum. Add 2001 to copyright notice.
14521
14522         * ali.adb: Undo some of previous changes, not needed.
14523         Keep the change for lower case letters in the checksum.
14524
14525         * ali.ads: Undo previous change not needed.
14526
14527         * bcheck.adb: Undo most of previous change, not needed.
14528         But do use Checksums_Match for checksum comparison.
14529
14530         * gnatls.adb: Undo most of previous change, not needed.
14531         But do use Checksums_Match for comparing checksums.
14532
14533         * lib-load.adb: Undo previous change, not needed.
14534
14535         * lib-writ.adb: Undo previous change, not needed.
14536
14537         * lib-writ.ads: Document that checksums use lower case,
14538         not upper case letters.
14539
14540         * scans.adb: Undo previous change, not needed
14541
14542         * scans.ads: Undo previous change, not needed.
14543
14544         * scn-nlit.adb: Undo previous changes, not needed.
14545
14546         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
14547
14548         * scn.adb:
14549         (Accumulate_Checksum): Use System.CRC32.
14550         (Initialize_Checksum): New procedure.
14551         Remove other changes of previous revision.
14552
14553         * sinput-p.adb: Undo previous change, not needed.
14554
14555         * sinput.adb: Undo previous change, not needed.
14556
14557         * sinput-l.adb: Undo previous change, not needed.
14558
14559         * sinput.ads: Undo previous change, not needed.  Keep only comment
14560         on new checksum algorithm
14561
14562         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
14563         Also remove a-tags and a-stream from GNAT sources.
14564
14565         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
14566
14567         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
14568
14569 2001-10-11  Geert Bosch  <bosch@gnat.com>
14570
14571         * einfo.h: Regenerate.
14572
14573         * nmake.ads: Regenerate.
14574
14575         * nmake.adb: Regenerate.
14576
14577         * sinfo.h: Regenerate.
14578
14579         * treeprs.adb: Regenerate.
14580
14581 2001-10-10  Geert Bosch  <bosch@gnat.com>
14582
14583         * gnat-style.texi: New file describing coding guidelines for Ada.
14584
14585 2001-10-10  Ed Schonberg <schonber@gnat.com>
14586
14587         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
14588         is Flag174.
14589
14590 2001-10-10  Geert Bosch  <bosch@gnat.com>
14591
14592         * snames.ads: Add new names for project facility.
14593
14594         * snames.adb: Update to reflect snames.ads changes.
14595
14596         * snames.h: Update to reflect snames.ads changes.
14597
14598 2001-10-10  Vincent Celier <celier@gnat.com>
14599
14600         * make.adb:
14601         (Add_Switches): reflect the changes for the switches attributes
14602         Default_Switches indexed by the programming language,
14603         Switches indexed by the file name.
14604         (Collect_Arguments_And_Compile): Idem.
14605         Reflect the attribute name changes.
14606
14607         * prj-attr.adb:
14608         (Initialisation_Data): Change the names of some packages and
14609         attributes.
14610         (Initialize): process case insensitive associative arrays.
14611
14612         * prj-attr.ads:
14613         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
14614
14615         * prj-dect.adb:
14616         (Parse_Attribute_Declaration): For case insensitive associative
14617          arrays, set the index string to lower case.
14618
14619         * prj-env.adb:
14620         Reflect the changes of the project attributes.
14621
14622         * prj-nmsc.adb:
14623         Replace Check_Naming_Scheme by Ada_Check and
14624         Language_Independent_Check.
14625
14626         * prj-nmsc.ads:
14627         Replaced Check_Naming_Scheme by 2 procedures:
14628         Ada_Check and Language_Independent_Check.
14629
14630         * prj-proc.adb:
14631         (Process_Declarative_Items): For case-insensitive associative
14632         arrays, set the index string to lower case.
14633         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
14634         Prj.Nmsc.Check_Naming_Scheme.
14635
14636         * prj-tree.adb:
14637         (Case_Insensitive): New function
14638         (Set_Case_Insensitive): New procedure
14639
14640         * prj-tree.ads:
14641         (Case_Insensitive): New function
14642         (Set_Case_Insensitive): New procedure
14643         (Project_Node_Record): New flag Case_Insensitive.
14644
14645         * prj-util.adb:
14646         (Value_Of): new function to get the string value of a single
14647         string variable or attribute.
14648
14649         * prj-util.ads:
14650         (Value_Of): new function to get the string value of a single
14651         string variable or attribute.
14652
14653         * prj.adb:
14654         (Ada_Default_Spec_Suffix): New function
14655         (Ada_Default_Impl_Suffix): New function
14656         Change definitions of several constants to reflect
14657         new components of record types.
14658
14659         * prj.ads:
14660         (Naming_Data): Change several components to reflect new
14661         elements of naming schemes.
14662         (Project_Data): New flags Sources_Present and
14663         Language_Independent_Checked.
14664         (Ada_Default_Spec_Suffix): New function.
14665         (Ada_Default_Impl_Suffix): New function.
14666
14667         * snames.ads:
14668         Modification of predefined names for project manager: added
14669         Implementation, Specification_Exceptions, Implementation_Exceptions,
14670         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
14671         Default_Switches, _Languages, Builder, Cross_Reference,
14672         Finder. Removed Body_Part, Specification_Append, Body_Append,
14673         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
14674         Gnatlink.
14675
14676         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
14677         Add comments.
14678
14679         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
14680         not that it is Nil_Variable_Value.
14681
14682         * prj.ads: Add ??? for uncommented declarations
14683
14684 2001-10-10  Ed Schonberg <schonber@gnat.com>
14685
14686         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
14687         constant, do not indicate possible modification, so that gigi can
14688         treat it as a bona fide constant.
14689
14690 2001-10-10  Robert Dewar <dewar@gnat.com>
14691
14692         * sem_prag.adb: Add processing for pragma External.
14693
14694         * snames.ads: Add entry for pragma External.
14695
14696         * par-prag.adb: Add pragma External.
14697
14698         * snames.adb: Updated to match snames.ads.
14699
14700 2001-10-10  Ed Schonberg <schonber@gnat.com>
14701
14702         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
14703         a dynamic task if the allocator appears in an indexed assignment
14704         or selected component assignment.
14705
14706         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
14707         For a dynamic task in an assignment statement, use target of
14708         assignment to generate meaningful name.
14709
14710 2001-10-10  Ed Schonberg <schonber@gnat.com>
14711
14712         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
14713         a generic package.
14714
14715         * einfo.ads: Body_Entity is also defined for generic package.
14716         Documentation change only
14717
14718         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
14719         others_choice for a discriminated component initialization,
14720         convert discriminant references into the corresponding discriminals.
14721
14722         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
14723         only if original type is private and expression has to be wrapped
14724         in a conversion.
14725
14726         * checks.adb:
14727         (Apply_Constraint_Check): Do not perform length check
14728         if expression is an aggregate with only an others_choice.
14729         (Length_N_Cond): two references to the same in_parameter
14730         (typically the discriminal in an init_proc) denote the same value.
14731         Two useful optimization uncovered by bugfixes above.
14732
14733 2001-10-10  Robert Dewar <dewar@gnat.com>
14734
14735         * xeinfo.adb: Change int to char in translation of enumeration types.
14736         This fixes a problem in the C representation of component alignment.
14737         Add 2001 to copyright notice
14738
14739 2001-10-10  Richard Kenner <kenner@gnat.com>
14740
14741         * decl.c: (validate_size): Do check size of object of integral type
14742         if it is a packed array type.
14743
14744 2001-10-10  Richard Kenner <kenner@gnat.com>
14745
14746         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
14747         VAR_DECL for constant if not Is_Public but -O0.
14748
14749 2001-10-10  Richard Kenner  <kenner@gnat.com>
14750
14751         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
14752
14753 2001-10-10  Geert Bosch  <bosch@gnat.com>
14754
14755         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
14756         use '/' as switch character, allowing for absolute file names.
14757
14758 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
14759
14760         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
14761         FSF address.
14762
14763 2001-10-08  Geert Bosch  <bosch@gnat.com>
14764
14765         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
14766         Automatically build utilities when files need to be regenerated.
14767
14768 2001-10-08  Geert Bosch  <bosch@gnat.com>
14769
14770         * xsnames.adb: New utility for updating snames.ads and snames.adb
14771
14772 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
14773
14774         * Make-lang.in (ADAFLAGS): Add -W -Wall.
14775         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
14776         (gnat1): Also depend on attribs.o.
14777         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
14778         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
14779         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
14780         (ADAFLAGS): Add -W -Wall.
14781         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
14782         take out CFLAGS.
14783
14784         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
14785         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
14786         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
14787         Use $(ADAC), not $(CC), as compilation command.
14788
14789         (gnattools): Depend directly on tools to build, don't use
14790         recursive make.
14791         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
14792
14793         * einfo.h, sinfo.h: New files (autogenerated).
14794
14795 2001-10-08  Richard Henderson  <rth@redhat.com>
14796
14797         * comperr.adb (Abort_In_Progress): New.
14798         (Compiler_Abort): Use it to prevent recursion.
14799
14800 2001-10-08  Robert Dewar <dewar@gnat.com>
14801
14802         * atree.adb: Set Error_Posted in Error node, helps error recovery.
14803
14804         * par-endh.adb (Output_End_Expected): We should also not test
14805         Error_Posted on the Error node, since now it is always set.
14806
14807         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
14808         to help error recovery. Part of general work on 9407-004.
14809
14810         * par.adb: Add ??? for misuse of error
14811
14812         * sem_res.adb:
14813         (Resolve): Defend against Error, fixes 9407-003.
14814         (Resolve_Discrete_Subtype_Indication): Defend against Error.
14815
14816         * sinfo.ads (N_Error): Now has Etype field (which will be set
14817         to Any_Type to help error recovery).
14818
14819 2001-10-08  Richard Kenner (kenner@gnat.com)
14820
14821         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
14822         Consistently set MEM attributes from expression; fixes
14823         bootstrap failure on x86.
14824
14825 2001-10-08  Geert Bosch  (bosch@gnat.com)
14826
14827         * 5oosinte.adb: Add 2001 to copyright notice.
14828
14829 2001-10-08  Geert Bosch  (bosch@gnat.com)
14830
14831         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
14832
14833         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
14834
14835 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
14836
14837         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
14838
14839 2001-10-05  Geert Bosch  (bosch@gnat.com)
14840
14841         * adaint.h: Small formatting fix.
14842
14843 2001-10-04  Geert Bosch  <bosch@gnat.com>
14844
14845         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
14846         Arg is int, not FILE *, in dummy version of functions.
14847
14848         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
14849         Arg is int, not FILE *.
14850
14851 2001-10-04  Geert Bosch  <bosch@gnat.com>
14852
14853         * 3lsoccon.ads: Added file, missed with initial check ins.
14854
14855         * 4lintnam.ads: Fix header format.
14856         Change Linux to GNU/Linux.
14857
14858         * 5iosinte.adb: Change Linux to GNU/Linux.
14859
14860         * 5iosinte.ads: Change Linux to GNU/Linux.
14861
14862         * 5itaprop.adb: Change Linux to GNU/Linux.
14863
14864         * 5itaspri.ads: Change Linux to GNU/Linux.
14865         Update copyright notice.
14866
14867         * 5lintman.adb: Change Linux to GNU/Linux.
14868
14869         * 5lml-tgt.adb: Change Linux to GNU/Linux.
14870
14871         * 5losinte.ads: Change Linux to GNU/Linux.
14872
14873         * 5lsystem.ads: Change Linux to GNU/Linux.
14874
14875         * 5qosinte.adb: Change Linux to GNU/Linux.
14876
14877         * 5qosinte.ads: Change Linux to GNU/Linux.
14878
14879         * 5qparame.ads: Change Linux to GNU/Linux.
14880
14881         * 5qtaprop.adb: Change Linux to GNU/Linux.
14882
14883         * 5qtaspri.ads: Change Linux to GNU/Linux.
14884         Add 2001 to copyright notice.
14885
14886         * 5vintman.ads: Change Linux to GNU/Linux.
14887         Fix header format.  Add 2001 to copyright notice.
14888
14889         * g-soccon.ads: Change Linux to GNU/Linux.
14890
14891         * g-trasym.ads: Change Linux to GNU/Linux.
14892         Add 2001 to copyright notice.
14893
14894         * memtrack.adb: Change Linux to GNU/Linux.
14895
14896         * s-intman.ads: Change Linux to GNU/Linux.
14897         Add 2001 to copyright notice.  Fix header format.
14898
14899         * s-stache.adb: Change Linux to GNU/Linux.
14900
14901         * adaint.c: Change Linux to GNU/Linux.
14902
14903         * cio.c: Change Linux to GNU/Linux.
14904
14905         * cstreams.c: Change Linux to GNU/Linux.
14906
14907         * init.c: Change Linux to GNU/Linux.
14908
14909         * gmem.c: Change Linux to GNU/Linux.
14910
14911         * tracebak.c: Change Linux to GNU/Linux.
14912
14913
14914 2001-10-02  Geert Bosch  <bosch@gnat.com>
14915
14916         * misc.c (insert_default_attributes): Add dummy version.