OSDN Git Service

2005-01-27 Laurent GUERBY <laurent@guerby.net>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2005-01-27  Laurent GUERBY <laurent@guerby.net>
2
3         * Makefile.in: Rename GNAT RTEMS specific files.
4         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,  
5         5rosinte.ads, 5rparame.adb: Replaced by files below.
6         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
7         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
8
9 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
10             Laurent GUERBY <laurent@guerby.net>
11
12         PR ada/19488
13         * 5rosinte.ads: Add No_Key constant.
14         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
15         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
16
17 2005-01-26  Laurent GUERBY <laurent@guerby.net>
18
19         PR ada/19414
20         * i-cobol.adb (Valid_Numeric): Handle zero length case.
21         
22 2005-01-20  Richard Henderson  <rth@redhat.com>
23
24         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
25         a-intnam-linux.ads and system-linux-alpha.ads.
26         * a-intnam-linux-alpha.ads: Remove file.
27         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28         * system-linux-alpha.ads: New file.
29
30 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
31
32         PR ada/13470
33         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
34         set to the new string.
35
36 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
37
38         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
39         to True.
40
41 2005-01-18  Richard Henderson  <rth@redhat.com>
42
43         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
44         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
45         for alpha-linux.
46         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
47
48 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
49
50         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
51         (GCC_ZCX_Support): Likewise.
52
53 2005-01-11  Bastian Blank  <waldi@debian.org>
54
55         * system-linux-s390.ads: Define Preallocated_Stacks.
56         * system-linux-s390x.ads: Likewise.
57
58 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
59
60         * gnat_ugn.texi: Fix texi errors with null variables.
61
62 2005-01-03  Thomas Quinot  <quinot@adacore.com>
63
64         * gen-soccon.c: New utility program to generate g-soccon.ads
65         automatically.
66
67         * socket.c, gsocket.h: Split inclusion of system header files into a
68         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
69
70         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
71         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
72         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
73         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
74         should not be edited by hand anymore, but should be regenerated using
75         gen-soccon.
76
77 2005-01-03  Robert Dewar  <dewar@adacore.com>
78             Ed Schonberg  <schonberg@adacore.com>
79             Vincent Celier  <celier@adacore.com>
80
81         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
82         on/off, since this is an obsolescent feature, for which we now generate
83         a warning.
84
85         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
86         warning mode is set and obsolescent usage of this attribute occurs.
87         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
88         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
89         predates, and partly motivates, the adoption of the AI.
90         Implement new Ada 2005 attribute Mod
91
92         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
93         attribute Mod.
94
95         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
96
97         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
98         pragma restrictions.
99         New entry for Ada 2005 attribute Mod.
100
101         * par-prag.adb: 
102         Add recognition of new pragma Restrictions No_Dependence
103         Recognize restriction No_Obsolescent_Features at parse time
104
105         * bcheck.adb: Add circuitry for checking for consistency of
106         No_Dependence restrictions.
107
108         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
109         restrictions.
110
111         * restrict.ads, restrict.adb: Add subprograms to deal with
112         No_Dependence restrictions.
113
114         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
115         restrictions.
116
117         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
118         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
119
120         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
121         dummy parameter to scng instantiation.
122         Needed for new restriction No_Obsolescent_Features
123
124         * scn.adb: (Obsolescent_Check): New procedure
125         Needed for new restriction No_Obsolescent_Features
126
127         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
128         specified by AI-285, needed for implementation of AI-388 (adding greek
129         pi to Ada.Numerics).
130         Add new generic formal to scng, needed for new restriction
131         No_Obsolescent_Features.
132
133         * s-rident.ads: Add new restriction No_Obsolescent_Features.
134
135         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
136         restrictions lines.
137         (Scan_ALI): When finding an unexpected character on an R line, raise
138         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
139         Ignore_Errors is True, default restrictions are set and scanning of the
140         ALI file continues with the next line. Also, when Bad_R_Line is raised
141         and Ignore_Errors is True, skip to the end of le line.
142
143         * sem_ch10.adb: Check that explicit with's do not violate
144         No_Dependence restrictions.
145         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
146         illegal context clauses containing child units of instance.
147
148         * sem_prag.adb: Processing and checking for new No_Dependence
149         restrictions.
150         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
151         analyze and check the External argument.
152
153         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
154
155 2005-01-03  Robert Dewar  <dewar@adacore.com>
156
157         * atree.adb: Add a fifth component to entities
158         This allows us to add 32 flags and four new fields
159
160         * atree.ads: Add a fifth component to entities
161         This allows us to add 32 flags and four new fields
162
163         * einfo.ads, einfo.adb: Document new fields and new flags now available
164         Add routines for printing new fields
165
166         * treepr.adb: Call routines to print out additional fields if present
167
168 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
169
170         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
171         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
172
173         * Makefile.in: Add support to build shared Ada libraries on solaris x86
174         Remove gpr2make, replaced by gprmake.
175         Remove references to gnatmem and libaddr2line.
176         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
177         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
178         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
179         a-numaux-darwin.ads and a-numaux-darwin.adb
180         Enable mlib-tgt-lynxos.adb on lynxos.
181
182         * Make-lang.in: Remove rules for gpr2make.
183         When generating sdefault.adb, do not call Relocate_Path
184         on S3 for function Target_Name, as it is not a path.
185         Remove references to gnatmem and libaddr2line.
186
187         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
188         files.
189
190 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
191
192         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
193         address is incompatible with its base type alignment constraints when
194         this can be decided statically.
195
196 2005-01-03  Olivier Hainque  <hainque@adacore.com>
197
198         * decl.c (compatible_signatures_p): New function. The intended purpose
199         is to check if two function signatures for a call-site and a callee are
200         compatible enough for the call to be valid. The underlying purpose is
201         to check if a call to a mapped builtin is using the right interface.
202         The current code actually does not check antyhing - this a placeholder
203         for future refinements.
204         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
205         builtin calls for convention Intrinsic.
206
207         * gigi.h (builtin_decl_for): Declare (new function).
208
209         * utils.c (gnat_install_builtins): Install the target specific builtins.
210         (builtin_decl_for): New function, provide a dummy body for now.
211
212 2005-01-03  Geert Bosch  <bosch@adacore.com>
213
214         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
215         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
216         (Pred): Implement in terms of Succ.
217         
218         * trans.c (convert_with_check): Reimplement conversion of float to
219         integer.
220
221 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
222             Vincent Celier  <celier@adacore.com>
223
224         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
225         bounds can be negative, and must be declared Int, not Nat.
226
227         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
228         array is checked after using the index in the array.
229
230         * makegpr.adb (Add_Switches): Check if there is a package for the
231         processor. If there is no package, do not look for switches.
232
233 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
234
235         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
236         generation of predefined stream operations (specs and bodies) should
237         proceed. Under various restrictions these subprograms must not be
238         generated.
239
240 2005-01-03  Thomas Quinot  <quinot@adacore.com>
241
242         * exp_dist.adb: 
243         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
244         amount of PCS-specific code in RACW stubs generation.
245         (Copy_Specification): Set Etype on copied formal parameter entities, as
246         this information is needed for PolyORB stubs generation.
247         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
248         variable Dynamic_Async.
249         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
250         (Build_RPC_Receiver_Specification): Make generic again, as recent
251         changes have allowed RPC receivers to have the same profile for both
252         variants of the PCS.
253         Reorganise RPC receiver generation to reduce differences between the
254         structure of GARLIC and PolyORB RPC receivers.
255         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
256         PCS-specific.
257         Simplify elaboration code for RCI packages.
258
259         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
260         generation to reduce differences between the structure of GARLIC and
261         PolyORB RPC receivers.
262
263         * s-stratt.adb: Fix typo in comment.
264
265 2005-01-03  Thomas Quinot  <quinot@adacore.com>
266
267         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
268         copied from Make_Init_Call).
269
270         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
271         reads and assignments on a temporary variable declared with appropriate
272         discriminants.
273
274 2005-01-03  Robert Dewar  <dewar@adacore.com>
275
276         * i-c.adb (To_C): Raise CE if string is null and Append_Null
277
278 2005-01-03  Robert Dewar  <dewar@adacore.com>
279
280         * i-cstrin.adb (Update): Do not append a null in form called with a
281         String. This avoids unintended behavior.
282
283 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
284
285         PR ada/17527
286         * init.c: Fix warnings on Free BSD section.
287
288 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
289
290         PR ada/16949
291         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
292         xsinfo.adb).
293
294 2005-01-03  Vincent Celier  <celier@adacore.com>
295
296         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
297         libraries when Unique_Compile is True (-u switch).
298         (Gnatmake): ditto.
299
300 2005-01-03  Robert Dewar  <dewar@adacore.com>
301
302         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
303         upper case letter or underscore after W, as allowed by spec.
304
305 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
306
307         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
308         darwin port by using proper type definitions from header files.
309         Use SIGTERM instead of SIGABRT for SIGADAABORT.
310
311 2005-01-03  Robert Dewar  <dewar@adacore.com>
312
313         * par.adb: Enhance error message handling for configuration file
314         pragmas.
315
316 2005-01-03  Robert Dewar  <dewar@adacore.com>
317
318         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
319         removed during the previous update (test properly for case of dividing
320         largest negative number by -1, which generates overflow).
321
322 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
323             Sergey Rybin  <rybin@adacore.com>
324
325         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
326         to use as the defining identifier for a formal package.
327         (Remove_Parent): If the instance takes place within (an instance of)
328         a sibling, preserve private declarations of common parent.
329
330 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
331
332         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
333         to determine whether one of the operands is a fixed-point type for
334         which a user-defined multiplication or division operation might be
335         defined.
336
337         * sem_res.adb (Valid_Conversion): The legality rules for conversions
338         of access types are symmetric in Ada 2005: either designated type can
339         be unconstrained.
340
341 2005-01-03  Vincent Celier  <celier@adacore.com>
342
343         * s-fileio.adb (Temp_File_Record): Change length of string component
344         Name from L_tmpnam + 1 to max_path_len + 1.
345
346 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
347
348         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
349         Self_Id.Deferral_Level = 0.
350         (Do_Pending_Action): Move this function to the spec.
351
352         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
353         Do_Pending_Action explicitely when needed, in case we're using
354         No_Abort restrictions.
355
356         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
357         deferral level since it will not get changed by the generated code.
358         Keeping a default value of 1 would prevent some operations (e.g.
359         select or delay) to proceed successfully.
360
361 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
362             Robert Dewar  <dewar@adacore.com>
363             Cyrille Comar  <comar@adacore.com>
364
365         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
366         porting guide chapter (vms version).
367         Revised doc title (removed "for native platforms") and subtitle.
368         Add discussion on warning flag for obsolescent features. First we
369         note that it applies to obsolete GNAT features, which was previously
370         omitted. Second we contrast the behavior with that of the new
371         Ada 2005 AI-368 restriction No_Obsolescent_Features.
372         Preliminary rewriting of GNAT & libraries chapter in order to take
373         into account default project locations & new project manager
374         capabilities.
375
376 2005-01-03  Robert Dewar  <dewar@adacore.com>
377
378         * cstand.adb (Create_Operators): Clean up format and documentation of
379         unary and binary operator result tables. No change in code, just
380         reformatting and addition of comments.
381
382         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
383         sem_ch2.adb: Minor reformatting
384
385         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
386         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
387         comments for Tree_Read and Tree_Write.
388
389 2005-01-03  Pascal Obry  <obry@adacore.com>
390
391         * exp_attr.ads: Minor reformatting.
392
393 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
394
395         * comperr.adb (Compiler_Abort): Add specialized message for GAP
396         versions.
397
398 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
399
400         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
401         whether the ancestor type is private, as may be the case with nested
402         instantiations.
403
404 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
405
406         PR ada/19128
407         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
408
409 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
410
411         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
412         * utils2.c (build_unary_op): Likewise.
413
414 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
415
416         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
417
418 2004-12-19  Richard Henderson  <rth@redhat.com>
419
420         * trans.c (gigi): Update gimplify_body call.
421
422 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
423
424         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
425
426 2004-12-07  Ed Falis  <falis@adacore.com>
427
428         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
429         current task being suspended.
430
431         * init.c (__gnat_clear_exception): added to reset VxWorks exception
432         count.
433         (__gnat_map_signal): removed test for current task being suspended.
434
435 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
436
437         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
438         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
439         targets (such as AAMP).
440
441 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
442
443         * atree.adb (Visit_Itype): Create a new name for the generated itype,
444         because the back-end may otherwise treat it as a redefinition of the
445         old symbol.
446
447 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
448
449         * back_end.adb (Scan_Back_End_Switches): Accept --param.
450
451         * lang-specs.h: Accept --param.
452
453 2004-12-07  Vincent Celier  <celier@adacore.com>
454
455         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
456         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
457         Current_Body_Suffix => Ada_Body_Suffix).
458         Take into account Externally_Built attribute.
459
460         * clean.adb (In_Extension_Chain): Always return False when one of the
461         parameter is No_Project.
462         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
463         Ada_Language_Index).
464         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
465         Process_Languages for procedure Parse).
466
467         * gnatcmd.adb (Carg_Switches): New table.
468         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
469         Adapt to name changes in package Prj (Current_Spec_Suffix =>
470         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
471
472         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
473         Header_Num and function Hash are now declared in package Prj,
474         not Prj.Com.
475
476         * prj.adb (Suffix_Of): New function.
477         (Set (Suffix)): New procedure.
478         (Hash): One function moved from Prj.Com
479         (Is_Present, Language_Processing_Data_Of): New functions
480         (Set): Two new procedures
481         (Add_Language_Name, Display_Language_Name): New procedures
482
483         * prj.ads: (Suffix_Of): New function
484         (Set (Suffix)): New procedure
485         Add several types and tables for multi-language support.
486         (Header_Num): Type moved from Prj.Com
487         (Hash): Two functions moved from Prj.Com
488         (Is_Present, Language_Processing_Data_Of): New functions
489         (Set): Two new procedures
490         (Add_Language_Name, Display_Language_Name): New procedures
491         (Naming): Component name changes:
492         Current_Spec_Suffix => Ada_Spec_Suffix,
493         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
494         Impl_Suffixes, Supp_Suffixes.
495         (Project_Data): New components: Externally_Built, Supp_Languages,
496         First_Language_Processing, Supp_Language_Processing, Default_Linker,
497         Default_Linker_Path.
498
499         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
500         new package Language_Processing with its attributes (Compiler_Driver,
501         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
502         Binder_Driver, Default_Linker).
503
504         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
505         (Header_Num): Type moved to package Prj
506
507         * prj-env.adb: Adapt to name changes in package Prj
508         (Current_Spec_Suffix => Ada_Spec_Suffix,
509         Current_Body_Suffix => Ada_Body_Suffix).
510
511         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
512         default to the project path, except the "-" is one of the directories
513         in env var ADA_PROJECT_PATH.
514         (Current_Project_Path): Global variable, replacing Project_Path
515         that was in the body of Prj.Part.
516         (Project_Path): New function
517         (Set_Project_Path): New procedure
518         Initialize Current_Project_Path during elaboration of the package
519         Remove dependency on Prj.Com, no longer needed
520
521         * prj-ext.ads (Project_Path): New function
522         (Set_Project_Path): New procedure
523
524         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
525         suffix is defined for language <lang>.
526         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
527         accessing directly the components of Naming.
528         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
529         Reorganise of this package.
530         Break procedure Check in several procedures.
531
532         * prj-nmsc.ads: Replace all procedures (Ada_Check,
533         Other_Languages_Check and Language_Independent_Check) with a single
534         procedure Check.
535
536         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
537         Process_Languages, no longer needed.
538
539         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
540         Current_Project_Path.
541         Remove elaboration code, moved to the body of Prj.Ext
542         Use new function Prj.Ext.Project_Path instead of old variable
543         Project_Path.
544         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
545         When comparing with project paths on the stack, first put the resolved
546         path in canonical case.
547         (Parse_Single_Project): Set the path name of the project file in the
548         tree to the normalized path.
549
550         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
551         parameter Process_Languages, no longer needed.
552         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
553         Other_Languages_Check.
554
555         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
556         to store the resolved canonical path of the project file.
557         Remove dependency to Prj.Com, no longer needed
558
559         * prj-util.adb: Adapt to name changes in package Prj
560         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
561         Ada_Body_Suffix).
562
563         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
564         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
565         Externally_Built, Include_Option, Language_Processing.
566
567         * makegpr.adb: Numerous changes due to changes in packages
568         Prj and Prj.Nmsc.
569
570         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
571         default to the project path, except whe "-" is one of the directories
572         in env var ADA_PROJECT_PATH.
573         (Gnatls): In verbose mode, add the new section "Project Search Path:"
574
575 2004-12-07  Robert Dewar  <dewar@adacore.com>
576
577         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
578
579         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
580         set -gnatR3m mode.
581
582         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
583         flag. No longer needed now that we handle this in gnat1drv.adb.
584
585         * repinfo.ads: Minor reformatting
586
587 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
588             Olivier Hainque  <hainque@adacore.com>
589             Eric Botcazou  <ebotcazou@adacore.com>
590
591         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
592         TYPE_SIZE_UNIT of result type if SIZE is not specified.
593         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
594         of a bitfield, which we know is useless and causes trouble because of
595         alignment implications.
596
597         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
598         BSS sections.
599         (process_attributes): Clear DECL_COMMON again when a section attribute
600         is present.
601         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
602         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
603         (create_field_decl): Special case ADDRESSABLE negative to mean
604         "no bitfield creation", to be used by make_aligning_type. Don't
605         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
606         fields claimed addressable still have to be bitfields. Use
607         value_factor_p instead of a raw binop construction to check for the
608         position's alignment.
609
610 2004-12-07  Geert Bosch  <bosch@adacore.com>
611
612         * eval_fat.adb: Revert previous change.
613
614 2004-12-07  Thomas Quinot  <quinot@adacore.com>
615             Ed Schonberg  <schonberg@adacore.com>
616
617         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
618         with an implicit dereference as its prefix, use
619         Insert_Explicit_Dereference instead of merely rewriting the prefix into
620         an explicit dereference. This ensures that a reference to the original
621         prefix is generated, if appropriate.
622
623         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
624         dereference is rewritten to an explicit one, generate a reference to
625         the entity denoted by its prefix using the original prefix node, so
626         the dereference can be properly recorded as a read of the denoted
627         access value, if appropriate.
628
629         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
630         emitting 'assigned but never read' warning on a variable on the basis
631         that it has an access type.
632         (Check_References): Emit unreferenced warning when the scope is a
633         subprogram body.
634
635 2004-12-07  Robert Dewar  <dewar@adacore.com>
636             Ed Schonberg  <schonberg@adacore.com>
637
638         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
639         intrinsic
640
641         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
642         leaving call unchanged.
643         This deals with the case where the pragma Import specified
644         an external name, to be handled by the back end.
645
646         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
647         subprogram which is Imported with convention Intrinsic if an
648         External_Name argument is specified.
649         (Process_Import_Or_Interface): Properly diagnose link name argument.
650         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
651         with Sem_Ch6.Cannot_Inline.
652         (Process_Inline): Provide separate warning for inapplicable inline
653         pragma.
654         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
655         treatment is uniform on different targets.
656
657 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
658
659         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
660         construct is rewritten, preserve end label to permit source navigation.
661
662 2004-12-07  Thomas Quinot  <quinot@adacore.com>
663
664         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
665         Specific_Build_Stub_Target): New subprograms.
666         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
667         the PCS implementation used, using the above PCS-customized subprograms.
668         Minor reformatting.
669         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
670         for generation of DSA code targeted to the PolyORB PCS.
671         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
672         implementation of the partition communication subsystem in ancillary
673         subprograms.
674         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
675         PolyORB_Support.Build_Stub_Type): New subrograms containing the
676         PCS-specific part of Add_Stub_Type.
677         (Insert_Partition_Check): Use runtime library function to perform
678         E.4(19) check.
679
680         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
681         (RE_Same_Partition): New entity, from s-parint.
682
683         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
684
685 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
686
687         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
688         Output the copyright message on a separate line from the version
689         message.
690
691 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
692
693         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
694         compile-time warning.
695
696 2004-12-07  Robert Dewar  <dewar@adacore.com>
697
698         * g-regpat.adb: (Match): Change a misuse of or to or else
699
700 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
701
702         * lib-xref.adb:
703         (Generate_Reference): Handle properly a reference to an entry formal,
704          when an accept statement has a pragma Unreferenced for it.
705
706         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
707         and the Has_Pragma_Unreferenced flag for each formal before analyzing
708         the body, to ensure that warnings are properly emitted for each accept
709         statement of a given task entry.
710
711 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
712
713         * Makefile.in: Add support for foreign threads on VMS.
714
715 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
716
717         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
718         Remove.
719         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
720
721         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
722
723         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
724         exception.
725         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
726
727 2004-12-07  Robert Dewar  <dewar@adacore.com>
728
729         * nlists.adb (Prepend_Debug): Remove parameters and nest within
730         Prepend.
731         (Remove_Next_Debug): Same fix
732
733         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
734         maintain back pointers now, though we did not used to, and comments
735         were out of date).
736         (Prepend): Remove pragma Inline.
737         (Remove_Next): Same cleanup
738
739 2004-12-07  Thomas Quinot  <quinot@adacore.com>
740
741         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
742         used to record an implicit dereference as a read operation on its
743         prefix when operating under -gnatc. Necessary to avoid spurious
744         'variable assigned but never read' warnings in that mode.
745         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
746         is a non-overloaded implicit dereference, call the above subprogram to
747         ensure proper recording of references.
748
749 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
750
751         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
752         to be resolved later as part of Analyze_Iteration_Scheme's call to
753         Make_Index.
754
755 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
756
757         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
758         prefix is not a scalar type, place error message on prefix, not on
759         type entity.
760
761 2004-12-07  Bernard Banner  <banner@adacore.com>
762
763         * vxaddr2line.adb: Add support for x86 vxworks
764
765 2004-12-07  Thomas Quinot  <quinot@adacore.com>
766
767         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
768         documentation of the behaviour of these functions when passed an IP
769         address that has no record in the system hosts database and no reverse
770         record in the DNS.
771
772         * cstand.adb, a-tags.ads: Fix typos in comment.
773
774 2004-12-07  Robert Dewar  <dewar@adacore.com>
775
776         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
777         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
778         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
779         s-poosiz.ads: Minor reformatting
780
781         * make.adb: Minor reformatting
782         Add some ??? comments asking for more comments
783
784         * s-poosiz.adb: Minor reformatting
785         Add comments on alignment requirement
786
787         * sinfo.ads: Remove obsolete comment and fix typo.
788
789 2004-12-07  Vincent Celier  <celier@adacore.com>
790             Sergey Rybin  <rybin@adacore.com>
791
792         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
793         Files" with the new tool and package names.
794         Reformatting to suppress most of the warnings for line too long
795         Document the new section "Project Search Path:" in the output of
796         gnatls -v.
797         Add gnatmetric section
798
799 2004-12-07  Vincent Celier  <celier@adacore.com>
800
801         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
802         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
803         and -eit to -ept. Added qualifier
804         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
805
806 2004-11-27  Andreas Schwab  <schwab@suse.de>
807
808         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
809
810 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
811
812         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
813         internal implementation unit GNAT.Sockets.Thin,
814         as their usage for sockets is non-portable (using the read and write
815         functions from the system runtime library is fine on UNIX but won't
816         work under Windows).
817
818         * mingw32.h: Update copyright notice.
819
820 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
821
822         * ada-tree.h: Minor reformatting of previous change to avoid lines
823         longer than 79 characters.
824
825 2004-11-25  Olivier Hainque  <hainque@adacore.com>
826
827         * tb-gcc.c: GCC infrastructure based implementation of
828         __gnat_backtrace.
829
830 2004-11-24  Steven Bosscher  <stevenb@suse.de>
831
832         * misc.c (gnat_post_options): Don't clear
833         flag_inline_functions.
834
835 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
836
837         PR ada/17986
838         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
839         tree.
840
841 2004-11-21  Andreas Jaeger  <aj@suse.de>
842
843         * stylesw.adb: Change Style_Check_Subprogram_Order to
844         Style_Check_Order_Subprograms.
845
846 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
847
848         * adaint.h, adaint.c
849         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
850         to avoid warnings.
851         Add also a cast to kill another warning.
852         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
853         parameter with the priority class of the parent process instead of
854         always using the NORMAL_PRIORITY_CLASS.
855         (__gnat_dup): New function.
856         (__gnat_dup2): New function.
857         (__gnat_is_symbolic_link): Enable the effective body of this
858         function when __APPLE__ is defined.
859
860         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
861         Update comments.
862
863 2004-11-18  Olivier Hainque  <hainque@adacore.com>
864
865         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
866         address of which may be used to represent "others" and "all others"
867         choices in exception tables, instead of the current harcoded
868         (void *)0 and (void *)1.
869         (Setup_Exception): Do nothing in the GNAT SJLJ case.
870
871         * gigi.h (others_decl, all_others_decl): New decls representing the
872         new Others_Value and All_Others_Value objects.
873         (struct attrib): Rename "arg" component as "args", since GCC expects a
874         list of arguments in there.
875
876         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
877         corresponding objects exported by a-exexpr, instead of hardcoded dummy
878         addresses.
879
880         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
881         others_decl and all_others_decl instead of hardcoded dummy addresses
882         to represent "others" and "all others" choices, which is cleaner and
883         more flexible with respect to the possible eh pointer encoding policies.
884
885         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
886         (process_attributes): Account for the naming change of the "args"
887         attribute list entry component.
888
889         * decl.c (build_attr_list): Rename into prepend_attributes to allow
890         cumulating attributes for different entities into a single list.
891         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
892         attributes for the current entity and propagate first subtype
893         attributes to other subtypes.
894         <E_Procedure>: Attribute arguments are attr->args and not
895         attr->arg any more.
896         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
897         argument provided, as this is what GCC expects. Use NULL_TREE instead
898         of 0 for trees.
899
900 2004-11-18  Robert Dewar  <dewar@adacore.com>
901
902         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
903         Minor reformatting througout (including new function specs)
904         Add ??? comments asking for clarification.
905
906 2004-11-18  Thomas Quinot  <quinot@adacore.com>
907
908         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
909         incomplete duplicate implementation of this subprogram from butil.
910
911 2004-11-18  Thomas Quinot  <quinot@adacore.com>
912
913         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
914         procedures factors the common processing for building an RPC receiver
915         for an RCI package or an RACW type.
916         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
917         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
918         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
919         in use.
920         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
921         Add_RACW_Features.
922         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
923         Add_RAST_Features.
924         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
925         distribution subprogram identifiers that are either subprogram numbers
926         or strings.
927         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
928         string distribution identifiers assigned to a given subprogram.
929         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
930         (Add_RAS_Dereference_TSS): Add comments.
931         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
932         is not referenced yet because it will be used by the PolyORB DSA
933         implementation.
934         (Insert_Partition_Check): Remove fossile code.
935         (First_RCI_Subprogram_Id): Document this constant.
936         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
937         RAS_Access TSS.
938         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
939         replaced with calls to Get_Library_Unit_Name_String. Previously there
940         were several instances of the same code in different locations in the
941         compiler; this checkin completes the replacement of all of these
942         instances with calls to a common subprogram.
943         Minor reformatting.
944
945         * sem_dist.adb: Remove comment noting that RPC receiver generation
946         should be disabled for RACWs that implement RASs.
947         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
948
949         * sem_util.ads, sem_util.adb (Has_Stream): New function
950         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
951         qualified name of a library unit into the name buffer.
952         (Note_Possible_Modification): Generate a reference only
953         if the context comes from source.
954
955         * snames.ads (PCS_Names): New subtype corresponding to names of
956         supported implementations of the Partition Communication Subsystem
957         (PCS) (i.e. the runtime library support modules for the distributed
958         systems annex).
959
960 2004-11-18  Robert Dewar  <dewar@adacore.com>
961             Ed Schonberg  <schonberg@adacore.com>
962
963         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
964         (Has_Rep_Pragma): New function
965         (Has_Attribute_Definition_Clause): New function
966         (Record_Rep_Pragma): Moved here from sem_ch13.adb
967         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
968
969         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
970
971         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
972         (Expand_Pragma_Psect_Object): New procedure
973         These procedures contain the revised and cleaned up processing for
974         these two pragmas. This processing was formerly in Sem_Prag, but
975         is more appropriately moved here. The cleanup involves making sure
976         that the pragmas are properly attached to the tree, and that no
977         nodes are improperly shared.
978
979         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
980         pragmas to Exp_Prag, which is more appropriate.
981         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
982         check for duplicates Remove use of Is_Psected flag, no longer needed.
983         Use new Make_String_Literal function with string.
984
985         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
986         that are functions return universal values, that have to be converted
987         to the context type.
988         Use new Make_String_Literal function with string.
989         (Get_Stream_Convert_Pragma): New function, replaces the use of
990         Get_Rep_Pragma, which had to be kludged to work in this case.
991
992         * freeze.adb: Use new Has_Rep_Pragma function
993
994         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
995         function with string.
996         Use new Has_Rep_Pragma function.
997
998         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
999         string argument.
1000
1001 2004-11-18  Robert Dewar  <dewar@adacore.com>
1002
1003         * errout.ads, errout.adb: (First_Sloc): New function
1004
1005         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
1006         check (-gnatyx) instead of being included as a redundant construct
1007         warning.
1008
1009         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
1010         Style_Check_Order_Subprograms.
1011
1012         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
1013         stylesw.adb: Add Style_Check_Xtra_Parens
1014
1015         * usage.adb: Add line for -gnatyx (check extra parens)
1016
1017         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
1018
1019 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
1020             Robert Dewar  <dewar@adacore.com>
1021
1022         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
1023         discriminant of a constrained subtype, analyze the copy of the
1024         corresponding constraint, because in some cases it may be only
1025         partially analyzed.
1026         Removes long-lived ??? comments.
1027
1028         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
1029         handled controlled or secondary-stack expressions within the
1030         iteration_scheme of a loop.
1031
1032         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
1033         bounds that may contain functions calls, to prevent memory leaks when
1034         the bound contains a call to a function that uses the secondary stack.
1035         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
1036         generate temporaries for loop bounds that might contain function calls
1037         that require secondary stack and/or finalization actions.
1038
1039         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
1040         selected component and the selector is overloadable (not just a
1041         function) treat as function call, Analyze_Call will disambiguate if
1042         necessary.
1043         (Analyze_Selected_Component): Do not generate an actual subtype for the
1044         selected component if expansion is disabled. The actual subtype is only
1045         needed for constraint checks.
1046         (Analyze_Allocator): If restriction No_Streams is set, then do
1047         not permit objects to be declared of a stream type, or of a
1048         composite type containing a stream.
1049
1050         * restrict.ads: Remove the a-stream entry from Unit_Array, since
1051         No_Streams no longer prohibits with'ing this package.
1052
1053         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
1054         discriminants, but the parent base has unknown discriminants, there is
1055         no discriminant constraint to inherit. Such a discrepancy can arise
1056         when the actual for a formal type with unknown discriminants is a
1057         similar private type whose full view has discriminants.
1058         (Analyze_Object_Declaration): If restriction No_Streams is set, then
1059         do not permit objects to be declared of a stream type, or of a
1060         composite type containing a stream.
1061
1062 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
1063
1064         * exp_dbug.ads: Update documentation to reflect simpler encoding for
1065         protected operations.
1066
1067         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
1068         generated name, it complicates decoding in gdb and hinders debugging
1069         of protected operations.
1070         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
1071         flag for the protected entry barrier function.
1072         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
1073         flag for the protected entry function.
1074
1075 2004-11-18  Nicolas Setton  <setton@adacore.com>
1076
1077         * expect.c: Define __unix__ when __APPLE__ is defined.
1078
1079         * Makefile.in: Inform the value of the variable GMEM_LIB in the
1080         Darwin-specific section.
1081
1082         * lang-specs.h: Change the placement of the %1 marker.
1083         Works around the fact that gcc adds -fPIC by default under Darwin.
1084
1085 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
1086
1087         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
1088         type of the object with the packed array type, set the Analyzed flag
1089         on the object if it is an entity or simple indexed component, to avoid
1090         spurious type errors.
1091
1092 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
1093
1094         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
1095         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
1096         separate line from the version message.
1097
1098 2004-11-18  Ed Falis  <falis@adacore.com>
1099
1100         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
1101         vthreads.
1102         (init_float): Eliminate initialization of floating point status for
1103         AE653. The instructions have no effect for vThreads.
1104
1105 2004-11-18  Vincent Celier  <celier@adacore.com>
1106
1107         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
1108         gnatbind is invoked with -shared.
1109
1110 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
1111
1112         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
1113         for Detect_Blocking which is redundant with the check done within the
1114         procedure Protected_Single_Entry_Call.
1115         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
1116         Detect_Blocking which is redundant with the check done within the
1117         procedure Protected_Single_Entry_Call.
1118
1119 2004-11-18  Vincent Celier  <celier@adacore.com>
1120
1121         * makegpr.adb (Compile): Put the compiling switches (in package
1122         Compiler and on the command line) immediately after "-c", instead of
1123         at the end of the command line invocation of the compiler, when
1124         compiling a non-Ada file.
1125         (Build_Global_Archive): When there is no need to rebuild the archive,
1126         set Global_Archive_Exists, so that the archive is passed to the linker
1127         if one is needed.
1128
1129 2004-11-18  Robert Dewar  <dewar@adacore.com>
1130             Sergey Rybin  <rybin@adacore.com>
1131
1132         * gnat_ugn.texi:
1133         Remove extra paren check from list of checks for redundant constructs
1134         Add documentation of new -gnatyx style check (check extra parens)
1135         Remove paragraph about gnatelim debug options.
1136
1137         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
1138         objects rather than forbidding dependencies on the package Ada.Streams.
1139
1140         * sinfo.ads: Add ??? note that we should document pragmas passed to
1141         back end.
1142
1143         * g-expect.ads: Fix a few typos in the comments.
1144
1145 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1146
1147         * misc.c (gnat_handle_option): Use %< and %> for quoting in
1148         warning message.
1149
1150 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1151
1152         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
1153
1154 2004-11-07  Andreas Schwab  <schwab@suse.de>
1155
1156         * Makefile.in (install-gnatlib): Remove spurious hyphen.
1157
1158 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
1159
1160         PR ada/18228
1161         * Makefile.in (darwin): Set soext to .dylib.
1162
1163 2004-10-26  Vincent Celier  <celier@gnat.com>
1164             Thomas Quinot   <quinot@act-europe.fr>
1165
1166         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
1167         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
1168         there is no use of GNAT.Sockets.Constants.
1169         Remove remaining pragma Import for C_Write
1170         Remove C_Read and C_Write from internal implementation unit
1171         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
1172         the read and write functions from the system runtime library is fine
1173         on UNIX but won't work under Windows).
1174
1175         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
1176         (Check_Selector): Use C_Recv instead of C_Read.
1177         Selectors are the GNAT.Sockets abstraction to perform a select()
1178         call on a set of descriptors. To allow abortion of an ongoing
1179         select operation, some data is written to a dedicated socket that
1180         is always monitored.
1181         Under Windows, the write and read library functions cannot operate
1182         on sockets, so we need to use send and recv instead, which is portable
1183         across all supported platforms.
1184
1185         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
1186         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
1187         (using the read and write functions from the system runtime library is
1188         fine on UNIX but won't work under Windows).
1189
1190 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
1191
1192         * mlib-tgt-darwin.adb: New file.
1193
1194         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1195         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1196         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1197         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
1198         subprogram body.
1199
1200         * Makefile.in: Add support for building shared libraries under Darwin.
1201         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
1202         the low level EH init subprogram to be called from __gnat_initialize.
1203
1204         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
1205         indicates which options to pass to the archive indexer.
1206
1207         * mlib-utl.adb: Add support for calling ranlib with additional
1208         options. This is needed for instance under Mac OS X.
1209         (Ranlib_Options): New global variable, used to store the potential
1210         options to pass to ranlib.
1211         (Ar): Use Ranlib_Options when spawning ranlib.
1212         (Initialize): Set the value of ranlib option.
1213
1214 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
1215
1216         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
1217         instead of 8K, to reflect the real potential needs for stack-checking
1218         in the ZCX case.
1219
1220 2004-10-26  Pascal Obry  <obry@gnat.com>
1221
1222         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
1223
1224         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
1225         Windows only the initial thread stack size can be set so it is good to
1226         start we a low stack size.
1227         The OS will adjust the size as needed.
1228
1229 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
1230             Nicolas Setton  <setton@act-europe.fr>
1231
1232         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
1233         "__unix__" instead of "unix".
1234         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
1235         sections were just mistakenly ignored. The former is
1236         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
1237         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
1238         of hpux. This prevents an unwanted definition of the symbol
1239         convert_addresses in adaint.o.
1240
1241 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
1242
1243         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
1244         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
1245
1246 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
1247
1248         * a-filico.ads, a-filico.adb: fix incorrect header.
1249
1250 2004-10-26  Javier Miranda  <miranda@gnat.com>
1251
1252         * a-ststio.ads: Fix typo in identifier
1253
1254 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1255
1256         * sem_ch4.adb: Minor reformatting.
1257
1258 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1259
1260         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
1261         enabled, check the result of unary and binary operations when the
1262         expression is the right-hand side of an assignment.
1263
1264 2004-10-26  Vincent Celier  <celier@gnat.com>
1265
1266         * clean.adb (Delete): Do not output warnings when in quiet output and
1267         not in verbose mode.
1268         (Force_Deletions): New Boolean flag, defaulted to False
1269         (Delete): Only delete a file if it is writable, and when
1270         Force_Deletions is True.
1271         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
1272         (Usage): Line for new switch -f
1273         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
1274         own.
1275
1276 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
1277
1278         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
1279         JM type only if its size matches that of the wrapper.  When a size is
1280         prescribed and the field is not aliased, remove the wrapper of a JM
1281         type only if the size is not greater than that of the packed array.
1282         (gnat_to_gnu_entity): Change the extension of packed array wrappers
1283         from LJM to JM.
1284
1285 2004-10-26  Geert Bosch  <bosch@gnat.com>
1286
1287         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
1288         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
1289         (Pred): Implement in terms of Succ.
1290
1291 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1292
1293         * exp_aggr.adb (Safe_Component): An aggregate component that is an
1294         unchecked conversion is safe for in-place use if the expression of the
1295         conversion is safe.
1296         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
1297         be expandable in place even if the aggregate does not come from source.
1298         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
1299         designated object of an allocator in place, rather than building it
1300         first on the stack. The previous scheme forces a full copy of the array,
1301         and may be altogether unsusable if the size of the array is too large
1302         for stack allocation.
1303
1304 2004-10-26  Robert Dewar  <dewar@gnat.com>
1305
1306         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
1307         compares if the component is atomic.
1308
1309         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
1310         array assignment if the component type is atomic.
1311
1312 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1313             Eric Botcazou  <ebotcazou@act-europe.fr>
1314
1315         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
1316         is aliased and is a by_reference type, do not pass by copy.
1317         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
1318         detect whether the call is in the right side of an assignment or
1319         the expression of an object declaration.  Recurse on component
1320         association within aggregates.
1321         Call it in the condition that determines whether the temporary is
1322         necessary for correct stack-checking.
1323
1324 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1325
1326         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
1327         RACW_Type, used in the PolyORB version.
1328         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
1329         version and the GARLIC version.
1330
1331         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
1332         Rename RCI_Info to RCI_Locator for better consistency between the
1333         GARLIC and PolyORB versions of the distributed systems annex.
1334         (DSA_Implementation_Name): This enumeration lists the possible
1335         implementations of the Partition Communication Subsystem for the
1336         Distributed Systems Annex (DSA). The three available implementations
1337         are the dummy stub implementation (No_DSA), and two versions based on
1338         two different distribution runtime libraries: GARLIC and PolyORB. Both
1339         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
1340         technology.
1341         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
1342         that organization.
1343
1344         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
1345         between the GARLIC and PolyORB versions of the distributed systems
1346         annex.
1347         Remove RE_Unbounded_Reclaim_Pool since it is unused.
1348
1349 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
1350
1351         * gnat1drv.adb: Suppress calling the back end when
1352         Frontend_Layout_On_Target is true.
1353
1354 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1355
1356         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
1357         Set_Read_Only): New subprograms.
1358         These new routines allow the user to set or unset the Owner execute
1359         and Owner write permission flags on a file.
1360
1361         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
1362         GNAT.OS_Lib.Set_Executable instead of rolling our own.
1363
1364 2004-10-26  Matthew Gingell  <gingell@gnat.com>
1365
1366         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
1367
1368 2004-10-26  Pascal Obry  <obry@gnat.com>
1369
1370         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
1371         memory before the faulting page we properly test the process read
1372         access for this address using appropriate Win32 routine.
1373         (HPUX sections): guard with "__hpux__" instead of "hpux".
1374
1375 2004-10-26  Robert Dewar  <dewar@gnat.com>
1376
1377         * lib-xref.adb (Generate_Reference): Don't complain about reference to
1378         entry parameter if pragma Unreferenced set, since we do not properly
1379         handle the case of multiple parameters.
1380
1381 2004-10-26  Vincent Celier  <celier@gnat.com>
1382
1383         * prj-env.adb: (Contains_ALI_Files): New Boolean function
1384         (Ada_Objects_Path.Add): For a library project, add to the object path
1385         the library directory only if there is no object directory or if the
1386         library directory contains ALI files.
1387         (Set_Ada_Paths.Add.Recursive_Add): Ditto
1388
1389 2004-10-26  Vincent Celier  <celier@gnat.com>
1390
1391         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
1392         extension of library projects.
1393
1394         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
1395         path defaults to ".:<prefix>/lib/gnat".
1396         (Parse): For an extending all project, allow direct import of a project
1397         that is virtually extended.
1398
1399         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
1400         the specified name is directly imported, return its ID. Otherwise, if
1401         an extension of this project is imported, return the ID of the
1402         extension.
1403
1404 2004-10-26  Robert Dewar  <dewar@gnat.com>
1405
1406         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
1407         (Sub3): New procedure, used by Scaled_Divide
1408         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
1409         correct more than one instance of failure to propagate carries
1410         correctly.
1411         (Double_Divide): Handle overflow case of largest negative number
1412         divided by minus one.
1413
1414         * s-arit64.ads (Double_Divide): Document that overflow can occur in
1415         the case of a quotient value out of range.
1416         Fix comments.
1417
1418 2004-10-26  Robert Dewar  <dewar@gnat.com>
1419
1420         * s-bitops.adb (Bit_Eq): Remove redundant check.
1421
1422         * s-bitops.ads: Minor comment updates
1423         Change some occurrences of Address to System.Address
1424
1425         * s-carsi8.ads: Fix minor cut-and-paste error in comments
1426
1427 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1428
1429         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
1430         accessibility check to prefix that is a protected operation.
1431
1432 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1433
1434         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
1435         empty, post message on stub.
1436
1437 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1438             Javier Miranda  <miranda@gnat.com>
1439
1440         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
1441         current instance appears within a unit that is directly in the context
1442         of the main unit.
1443         Used to determine whether the body of the instance should be analyzed
1444         immediately after its spec, to make its subprogram bodies available
1445         for front-end inlining.
1446         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
1447         constraint is not allowed on the component type (AARM 12.5.3(3))
1448
1449 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
1450
1451         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1452         'Storage_Pool): enhance, document & limit detection of non-sharable
1453         internal pools.
1454
1455         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
1456
1457         * s-pooglo.ads: Add more documentation now that this pool is properly
1458         documented.
1459
1460 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1461
1462         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
1463         or protected type with discriminants, do not constrain the
1464         corresponding record type if the subtype declaration has no
1465         discriminant constraints. This can be the case in source code, or in
1466         the subtype declaration created to rename an actual type within an
1467         instantiation.
1468
1469 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1470
1471         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
1472         different kind of stub (possibly wrong name for file), do not check
1473         for conformance.
1474         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
1475         includes call to some function that returns an unconstrained type, do
1476         not inline.
1477
1478 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1479
1480         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
1481         appear in the code for the main unit. Dependencies among units in the
1482         context of the main unit are established when those other units are
1483         compiled. Otherwise spurious elaboration constraints can generate
1484         incorrect elaboration circularities.
1485
1486 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1487             Ed Schonberg   <schonberg@gnat.com>
1488
1489         * sem_util.adb (Is_Aliased_View): Defend against the case where this
1490         subprogram is called with a parameter that is not an object name. This
1491         situation arises for some cases of illegal code, which is diagnosed
1492         later, and in this case it is wrong to call Is_Aliased, as that might
1493         cause a compiler crash.
1494         (Explain_Limited_Type): Refine previous fix to include
1495         inherited components of derived types, to provide complete information.
1496
1497         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
1498         is the prival for a protected object.
1499         It is necessary to mark this entity as a variable, in addition to
1500         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
1501         modified to avoid checking the Aliased flag on entities that are not
1502         objects. (Checking that flag for non-objects is erroneous and could
1503         lead to a compiler crash).
1504
1505 2004-10-26  Robert Dewar  <dewar@gnat.com>
1506
1507         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
1508         X_Frac = 0.5, then we know that the number X must be positive.
1509         (Succ): Remove the same redundant test, and also fix the primary test
1510         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
1511         Minor reformatting
1512         (Decompose): Add fuller comments to spec
1513
1514 2004-10-26  Pascal Obry  <obry@gnat.com>
1515
1516         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
1517         validity (process must have read access). Set to 0 in all other cases.
1518         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
1519         violation on Win32.
1520         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
1521         segmentation violation.
1522
1523 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
1524
1525         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
1526         whose type is a constructed subtype of an aliased object with an
1527         unconstrained nominal subtype, convert the actual to the constructed
1528         subtype before taking its address.
1529
1530 2004-10-26  Vincent Celier  <celier@gnat.com>
1531
1532         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
1533         (Is_Path_Name_Case_Sensitive): New function
1534
1535         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
1536         (Base_Name, Simple_Name, Current_Directory, Compose,
1537         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
1538         the result.
1539
1540 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
1541             Vasiliy Fofanov  <fofanov@act-europe.fr>
1542             Vincent Celier   <celier@gnat.com>
1543
1544         * gnat_ugn.texi: Generalize "finding memory problems" section into a
1545         "memory management issues" section and document some of the useful
1546         memory pools provided as part of the GNAT library.
1547         Remove "virtual" from declaration of A::method2 in
1548         the simple example of Ada/C++ mixed system.
1549         Library Projects may be virtually extended: their virtual extensions
1550         are not Library Projects.
1551         Added section on extending project hierarchies.
1552
1553 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1554
1555         * adaint.c (__gnat_get_libraries_from_registry): Cast value
1556         to LPBYTE.
1557         (__gnat_portable_spawn): Remove const.
1558
1559         * mingw32.h (MAXPATHLEN): Check for previous definition.
1560
1561 2004-10-17  Matthias Klose  <doko@debian.org>
1562
1563         * gnatvsn.ads: Set gnat library version to 4.0.
1564
1565 2004-10-05  Vincent Celier  <celier@gnat.com>
1566
1567         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
1568
1569 2004-10-04  Laurent GUERBY <laurent@guerby.net>
1570
1571         PR ada/15156
1572         * Makefile.in: Define and use RANLIB_FLAGS.
1573
1574 2004-10-04  Pascal Obry  <obry@gnat.com>
1575
1576         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
1577         other x86 platforms).
1578
1579 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
1580
1581         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
1582         in general and triggers stack alignment adjustment for thread entry
1583         points on targets where this is necessary.
1584
1585 2004-10-04  Bernard Banner  <banner@gnat.com>
1586
1587         PR ada/13897
1588
1589         * Makefile.in: Add section for powerpc linux
1590         Add variant i-vxwork-x86.ads
1591
1592         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
1593
1594 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
1595
1596         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
1597         table registration calls when need be. Ensures no reference to the crt
1598         ctors symbol are issued in the SJLJ case, which avoids possible
1599         undefined symbol errors in the case of modules to be statically linked
1600         with the kernel.
1601
1602 2004-10-04  Javier Miranda  <miranda@gnat.com>
1603
1604         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
1605         in-line the code corresponding to subprogram Analyze_Actuals. In
1606         addition, analyze the actuals only in case of subprogram call.
1607
1608 2004-10-04  Ed Falis  <falis@gnat.com>
1609
1610         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
1611
1612 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
1613
1614         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
1615         in the documentation.
1616
1617 2004-10-04  Robert Dewar  <dewar@gnat.com>
1618
1619         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
1620         IF and CASE.
1621         (Analyze_Block_Statement): Add circuitry to detect following dead code
1622         (Check_Unreachable_Code): Handle case of block exit
1623
1624 2004-10-04  Robert Dewar  <dewar@gnat.com>
1625
1626         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
1627         (XMatchD): Avoid warning for Logic_Error call
1628
1629 2004-10-04  Robert Dewar  <dewar@gnat.com>
1630
1631         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
1632         consider expressions buried within a procedure actual to be an actual.
1633         This caused some blowups with uses of packed slices within a procedure
1634         actual.
1635
1636 2004-10-04  Robert Dewar  <dewar@gnat.com>
1637
1638         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
1639         longer need to be initialized to zero.
1640         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
1641         initialized to zero.
1642
1643         * checks.adb (Expr_Known_Valid): Packed arrays are now always
1644         considered valid, even if the representation is modular. That's correct
1645         now that we no longer initialize packed modular arrays to zero.
1646
1647         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
1648         suffixes. These are now documented as the only cases in which the
1649         debugger ignores outer records.
1650         Previously, the spec allowed arbitrary suffixes for this purpose.
1651         Change name of LJM to JM for packed array pad records
1652         Create separate section on packed array handling, and add a whole new
1653         set of comments to this section describing the situation with packed
1654         modular types and justification requirements depending on endianness.
1655
1656 2004-10-04  Robert Dewar  <dewar@gnat.com>
1657
1658         * a-except.adb: Add a comment for last change
1659
1660         * einfo.ads: Minor spelling correction in comment
1661
1662         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
1663
1664         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
1665         messages.
1666
1667         * sem_util.ads: Minor comment update
1668
1669 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1670
1671         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
1672         Inline_Always when in Configurable_Run_Time mode.
1673
1674         * sem_prag.adb (Process_Convention): If entity is an inherited
1675         subprogram, apply convention to parent subprogram if in same scope.
1676         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
1677         when in Configurable_Run_Time mode.
1678
1679 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1680
1681         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
1682         class_wide type after component list has been inherited.
1683
1684 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1685
1686         * sem_ch12.adb (Check_Generic_Actuals): New predicate
1687         Denotes_Previous_Actual, to handle properly the case of a private
1688         actual that is also the component type of a subsequent array actual.
1689         The visibility status of the first actual is not affected when the
1690         second is installed.
1691         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
1692         make fully recursive the treatment of formals of packages declared
1693         with a box.
1694         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
1695         the above on exit from an instantiation.
1696         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
1697         current instantiation which is now complete.
1698         (Analyze_Package_Instantiation): No instantiated body is needed if the
1699         main unit is generic. Efficient, and avoid anomalies when a instance
1700         appears in a package accessed through rtsfind.
1701
1702 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1703
1704         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
1705         do not generate a declaration for a temporary if the call is part of a
1706         library-level instantiation.
1707
1708 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1709
1710         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
1711         searching for a limited component to flag.
1712
1713         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
1714         expansion of Input, to account for the fact that the implicit call
1715         generated by the attribute reference must freeze the user-defined
1716         stream subprogram. This is only relevant to 'Input, because it can
1717         appear in an object declaration, prior to the body of the subprogram.
1718
1719         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
1720         expansion can proceed and further errors uncovered.
1721         (Minor clean up): Fix cases of using | instead of \ for continuation
1722         messages.
1723
1724 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1725
1726         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
1727
1728         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
1729         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
1730         Use gcc_assert and gcc_unreachable.
1731
1732         * decl.c (gnat_to_gnu_entity, case object): Check and process a
1733         specified alignment before validating size.
1734         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
1735         stripped-down declaration for the type of the inner field when making
1736         a JM type.
1737
1738         * utils.c (finish_record_type): Do not compute the size in units
1739         incrementally. Instead compute it once for the rep clause case.
1740         Use gcc_assert and gcc_unreachable.
1741
1742 2004-10-04  Vincent Celier  <celier@gnat.com>
1743
1744         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
1745         in file name.
1746         (Is_Valid_Path_Name): Take '/' as a directory separator.
1747
1748 2004-10-04  Vincent Celier  <celier@gnat.com>
1749
1750         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
1751         (Extended_Project) only if Extended_Project is defined, to avoid
1752         assertion error.
1753         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
1754         resolved path.
1755         (Parse_Single_Project): Ditto.
1756
1757         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
1758         Add_To_Project_Path for virtual projects.
1759
1760 2004-10-04  Vincent Celier  <celier@gnat.com>
1761
1762         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1763         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1764         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
1765         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
1766         parameter Options_2.
1767
1768         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
1769         Build_Dynamic_Library with an empty Options_2.
1770
1771         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
1772         default anymore.
1773
1774         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
1775         directory separator, if any.
1776         (Gprmake): Do not allow mains on the command line for library projects.
1777         Do not attempt to link when the project is a library project.
1778         (Library_Opts): New table to store Library_Options.
1779         (Build_Library): If Library_Options is specified, pass these options
1780         when building a shared library.
1781
1782 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
1783
1784         * s-tposen.adb (Service_Entry): The object must be always unlocked at
1785         the end of this procedure now that the unlock operation was inserted
1786         by the expander.
1787
1788 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
1789
1790         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
1791         corresponding to the Preallocated_Stacks flags in System.
1792         (Get_Target_Parameters): Including the processing for
1793         Preallocated_Stacks.
1794
1795         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
1796         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
1797         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
1798         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
1799         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
1800         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
1801         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
1802         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
1803         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
1804         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
1805         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
1806         used to signal whether the compiler creates the required stacks and
1807         descriptors for the different tasks (when True) or it is done by the
1808         underlying operating system at run time (when False).
1809         It is initially set to False in all targets.
1810
1811         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
1812         if it is supported by the target.
1813         (Make_Task_Create_Call): Pass the stack address if it has been
1814         previously created. Otherwise pass a Null_Address.
1815
1816         * snames.adb: Add _stack.
1817
1818         * snames.ads: Add Name_uStack. Required to allow the expander to
1819         statically allocated task stacks.
1820
1821         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
1822         Stack_Address argument.
1823         Check that its value is equal to Null_Address because this target does
1824         not support the static stack allocation.
1825
1826 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
1827
1828         * usage.adb: Change "pragma inline" to "pragma Inline" in information
1829         and error messages
1830
1831 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
1832
1833         * exp_dist.adb: Split declaration of asynchronous flag out of
1834         Add_RACW_Read_Attribute.
1835         Minor reformatting for better alignment with PolyORB version.
1836         Store the entity for the asynchronous flag of an RACW, rather than the
1837         expression, in the asynchronous flags table. This will allow this flag
1838         to be used in other subprograms beside Add_RACW_Read_Attribute.
1839
1840 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
1841
1842         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
1843         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1844         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
1845         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
1846         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
1847         sockets constant MSG_NOSIGNAL (Linux-specific).
1848         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
1849         all Send operations.
1850         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
1851         from trigerring SIGPIPE.
1852         Rename components to avoid clash with Ada 2005 possible reserved
1853         word 'interface'.
1854         (Check_Selector): When the select system call returns with an error
1855         condition, propagate Socket_Error to the caller.
1856
1857 2004-10-01  Jan Hubicka  <jh@suse.cz>
1858
1859         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
1860
1861 2004-09-23  Robert Dewar  <dewar@gnat.com>
1862
1863         PR ada/17540
1864
1865         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
1866         instead do this at freeze time (we won't do it if there is an address
1867         clause).
1868         Change "pragma inline" to "pragma Inline" in information and error
1869         messages.
1870         Minor reformatting.
1871
1872         * freeze.adb (Check_Address_Clause): Remove previous change, not the
1873         right way of doing things after all.
1874         (Freeze_Entity): For object, set Is_Public for imported entities
1875         unless there is an address clause present.
1876
1877 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
1878
1879         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
1880         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
1881         ensures proper handling of types with rep clauses, which might have
1882         their TYPE_SIZE set already.
1883
1884 2004-09-21  Robert Dewar  <dewar@gnat.com>
1885
1886         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
1887         packed array types in both little- and big-endian cases. This change
1888         ensures that we no longer count on the unused bits being initialized
1889         for such types (and in particular ensures that equality testing will
1890         only read the relevant bits).
1891         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1892         These changes mean that we no longer need to initialize small packed
1893         arrays.
1894         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
1895         optimization to an LJM field as to its parent field.
1896
1897         * ada-tree.h, trans.c, utils.c, utils2.c:
1898         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1899
1900 2004-09-20  Jan Hubicka  <jh@suse.cz>
1901
1902         * utils.c (gnat_finalize): Remove.
1903         (end_subprog_body): Directly call cgraph_finalize_function;
1904         do not lower the nested functions.
1905
1906 2004-09-20  Robert Dewar  <dewar@gnat.com>
1907
1908         PR ada/17540
1909
1910         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
1911         if an address clause is present, since that means that the Import
1912         should be ignored.
1913
1914 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
1915
1916         * 5tsystem.ads: Removed, no longer used.
1917
1918 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
1919             Zack Weinberg  <zack@codesourcery.com>
1920
1921         * ada-tree.def: Use tree_code_class enumeration constants
1922         instead of code letters.
1923         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
1924         Update for new tree-class enumeration constants.
1925
1926 2004-09-17  Vincent Celier  <celier@gnat.com>
1927
1928         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
1929         capabilities of the general project manager.
1930
1931 2004-09-09  Vincent Celier  <celier@gnat.com>
1932
1933         * a-direct.ads: Add pragma Ada_05
1934         (Directory_Entry_Type): Give default value to component Kind to avoid
1935         not initialized warnings.
1936
1937         * a-direct.adb (Current_Directory): Remove directory separator at the
1938         end.
1939         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
1940         an existing directory.
1941         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
1942         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
1943         Convert the result to File_Size.
1944
1945         * prj.ads: (Project_Error): New exception
1946
1947         * prj-attr.adb: Except in procedure Initialize, Fail comes from
1948         Prj.Com, not from Osint.
1949         (Attrs, Package_Attributes): Tables moved to private part of spec
1950         (Add_Attribute, Add_Unknown_Package): Moved to new child package
1951         Prj.Attr.PM.
1952         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
1953         Prj.Project_Error after call to Fail.
1954         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
1955         Fail. Check that package name is not already in use.
1956
1957         * prj-attr.ads: Comment updates to indicate that all subprograms may be
1958         used by tools, not only by the project manager, and to indicate that
1959         exception Prj.Prj_Error may be raised in case of problem.
1960         (Add_Unknown_Package, Add_Attribute): Moved to new child package
1961         Prj.Attr.PM.
1962         (Attrs, Package_Attributes): Table instantiations moved from the body to
1963         the private part to be accessible from Prj.Attr.PM body.
1964
1965         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
1966         from new package Prj.Attr.PM.
1967         (Parse_Attribute_Declaration): Call Add_Attribute from new package
1968         Prj.Attr.PM.
1969
1970         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
1971
1972         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
1973         instead of Elaboration_Checks).
1974
1975         * a-calend.adb: Minor reformatting
1976
1977 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1978
1979         * gigi.h (maybe_pad_type): New declaration.
1980         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
1981
1982         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
1983
1984         * cuintp.c: Convert to use buildN.
1985
1986         * decl.c (maybe_pad_type): No longer static.
1987         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
1988         target pointer.
1989         Convert to use buildN.
1990
1991         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
1992         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
1993         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
1994         RHS.
1995         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
1996         (gnat_gimplify_expr, case ADDR_EXPR): New case.
1997         Convert to use buildN.
1998
1999         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
2000         TREE_READONLY for const.
2001         Convert to use buildN.
2002
2003         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
2004         (create_var_decl): Refine when TREE_STATIC is set.
2005         Convert to use buildN.
2006
2007 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
2008
2009         * gnat_ugn.texi: Delete text relating to checking of ali and object
2010         consistency.
2011
2012         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
2013         routines.
2014
2015 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
2016
2017         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
2018         pragmas recognized by GNAT.
2019
2020         * gnat_rm.texi: Document pragma Detect_Blocking.
2021
2022         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
2023         raise Program_Error if called from a protected operation.
2024
2025         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
2026         the protected action nesting level.
2027         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
2028         protected action nesting level.
2029         (Unlock): When pragma Detect_Blocking is active decrease the protected
2030         action nesting level.
2031
2032         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
2033         Protected_Action_Nesting.
2034
2035         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
2036         Common_ATCB record. It contains the dynamic level of protected action
2037         nesting for each task. It is needed for checking whether potentially
2038         blocking operations are called from protected operations.
2039         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
2040         Detect_Blocking is active or not in the partition.
2041
2042         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
2043         raise Program_Error if called from a protected operation.
2044         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
2045         Program_Error if called from a protected operation.
2046         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
2047         Program_Error if called from a protected operation.
2048
2049         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
2050         raise Program_Error if called from a protected operation.
2051
2052         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
2053         raise Program_Error if called from a protected operation, and increase
2054         the protected action nesting level.
2055         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
2056         Program_Error if called from a protected operation, and increase the
2057         protected action nesting level.
2058         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
2059         protected action nesting level.
2060
2061         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
2062         raise Program_Error if called from a protected operation, and increase
2063         the protected action nesting level.
2064         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
2065         Program_Error if called from a protected operation, and increase the
2066         protected action nesting level.
2067         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
2068         raise Program_Error if called from a protected operation.
2069         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
2070         active, raise Program_Error if called from a protected operation.
2071         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
2072         protected action nesting level.
2073
2074         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
2075         insertion of the statement raising Program_Error. The run time
2076         contains the required machinery for handling that.
2077
2078         * sem_util.ads: Change comment associated to procedure
2079         Check_Potentially_Blocking_Operation.
2080         This procedure does not insert a call for raising the exception because
2081         that is currently done by the run time.
2082
2083         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
2084
2085         * init.c: Add the global variable __gl_detect_blocking that indicates
2086         whether pragma Detect_Blocking is active (1) or not (0). Needed for
2087         making the pragma available at run time.
2088         (__gnat_set_globals): Pass and update the detect_blocking parameter.
2089
2090         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
2091         pragma Detect_Blocking is active.
2092
2093         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
2094
2095         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
2096         DB is found in the ali file. Any unit compiled with pragma
2097         Detect_Blocking active forces its effect in the whole partition.
2098
2099         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
2100         Detect_Blocking is active and delay is called from a protected
2101         operation.
2102
2103         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
2104         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
2105         Detect_Blocking is active (0 otherwise).
2106         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
2107         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
2108         otherwise).
2109
2110 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
2111
2112         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
2113         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
2114         package.
2115
2116         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
2117         (Register_Receiving_Stub): Add Subp_Info formal parameter.
2118         Update API in placeholder implemetation of s-parint to reflect changes
2119         in distribution runtime library.
2120
2121         * sem_ch3.adb (Expand_Derived_Record): Rename to
2122         Expand_Record_Extension.
2123
2124         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
2125         primitive operations of potentially distributed object types that have
2126         non-controlling anonymous access formals.
2127
2128         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
2129         subprogram.
2130         New implementation of expansion for remote access-to-subprogram types,
2131         based on the RACW infrastructure.
2132         This version of sem_dist is compatible with PolyORB/DSA as well as
2133         GLADE.
2134
2135         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
2136         Asynchrronous that applies to a remote access-to-subprogram type, mark
2137         the underlying RACW type as asynchronous.
2138
2139         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
2140          __gnat_using_gnu_linker to 1.
2141
2142         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
2143         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
2144         GNAT.Perfect_Hash_Generators, and remove the empty
2145         GNAT.Perfect_Hash package.
2146
2147         * atree.adb: Minor reformatting
2148
2149         * exp_ch3.adb (Expand_Derived_Record): Rename to
2150         Expand_Record_Extension.
2151         (Build_Record_Init_Proc.Build_Assignment): The default expression in
2152         a component declaration must remain attached at that point in the
2153         tree so New_Copy_Tree copies it if the enclosing record type is derived.
2154         It is therefore necessary to take a copy of the expression when building
2155         the corresponding assignment statement in the init proc.
2156         As a side effect, in the case of a derived record type, we now see the
2157         original expression, without any rewriting that could have occurred
2158         during expansion of the ancestor type's init proc, and we do not need
2159         to go back to Original_Node.
2160
2161         * exp_ch3.ads (Expand_Derived_Record): Rename to
2162         Expand_Record_Extension.
2163
2164         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
2165         Returns the RACW type used to implement a remote access-to-subprogram
2166         type.
2167         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
2168         New subprograms. Used to create a proxy tagged object for a remote
2169         subprogram. The proxy object is used as the designated object
2170         for RAS values on the same partition (unless All_Calls_Remote applies).
2171         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
2172         System.Partition_Interface.Get_Unique_Remote_Pointer.
2173         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
2174         Renamed from Add_RAS_*_Attribute.
2175         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
2176         subprograms.
2177         New implementation of expansion for remote access-to-subprogram types,
2178         based on the RACW infrastructure.
2179
2180         * exp_dist.ads (Copy_Specification): Update comment to note that this
2181         function can copy the specification from either a subprogram
2182         specification or an access-to-subprogram type definition.
2183
2184 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
2185
2186         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
2187         in an instance, between an explicit subprogram an one inherited from a
2188         type derived from an actual.
2189
2190         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
2191         add a polling call if the subprogram is to be inlined by the back-end,
2192         to avoid repeated calls with multiple inlinings.
2193
2194         * checks.adb (Apply_Alignment_Check): If the expression in the address
2195         clause is a call whose name is not a static entity (e.g. a dispatching
2196         call), treat as dynamic.
2197
2198 2004-09-09  Robert Dewar  <dewar@gnat.com>
2199
2200         * g-trasym.ads: Minor reformatting
2201
2202         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
2203         packed arrays, since unused bits are expected to be zero for a
2204         comparison.
2205
2206 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
2207
2208         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
2209         comment.
2210
2211 2004-09-09  Pascal Obry  <obry@gnat.com>
2212
2213         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
2214         enable map file generation. Add the right option to generate the map
2215         file if Map_File is set to True.
2216
2217         * gnatdll.adb (Gen_Map_File): New variable.
2218         (Syntax): Add info about new -m (Map_File) option.
2219         (Parse_Command_Line): Add support for -m option.
2220         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
2221         Minor reformatting.
2222
2223 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
2224
2225         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
2226         new gnatdist implementation.
2227         Define a subpackage isolating the output routines specific to this
2228         verbose mode.
2229
2230 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
2231
2232         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
2233
2234         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
2235
2236 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
2237
2238         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
2239         internal unit.
2240
2241         * opt.ads: Add Ada_Version_Runtime constant used to decide which
2242         version of the language is used to compile the run time.
2243
2244 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
2245
2246         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
2247         of variable length temporaries for function return now that the
2248         back-end and gigi support it.
2249
2250 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2251
2252         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
2253
2254         * trans.c (struct stmt_group): Delete field GLOBAL.
2255         (gnat_init_stmt_group): Do not initialize it.
2256         (call_to_gnu): Use save_expr, not protect_multiple_eval.
2257         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
2258         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
2259         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
2260         (start_stmt_group): Likewise.
2261         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
2262
2263         * utils2.c (ggc.h): Include.
2264         (build_call_raise): Call build_int_cst, not build_int_2.
2265
2266         * utils.c (gnat_init_decl_processing): Fix arg to
2267         build_common_tree_nodes.
2268         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
2269         (gnat_define_builtin): Set built_in_decls.
2270         (init_gigi_decls): Call build_int_cst, not build_int_2.
2271
2272         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
2273         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
2274         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
2275         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
2276         SET_TYPE_MODULE): Use them.
2277         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
2278         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
2279         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
2280         SET_TYPE_ADA_SIZE): Likewise.
2281         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
2282         (DECL_CONST_CORRESPONDING_VAR,
2283         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
2284         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
2285         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
2286         (TYPE_RM_SIZE_NUM): New macro.
2287         (TYPE_RM_SIZE): Modified to use above.
2288
2289         * cuintp.c: (build_cst_from_int): New function.
2290         (UI_To_gnu): Use it.
2291
2292         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
2293         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
2294         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
2295         MIN_EXPR for the size, copy it into new.
2296
2297 2004-09-01  Robert Dewar  <dewar@gnat.com>
2298
2299         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
2300         packed indexed component where array is an IN OUT formal. This
2301         generated garbage code previously.
2302
2303         * gnat_ugn.texi: Document -fverbose-asm
2304
2305         * gnat-style.texi: Minor updates (note that boolean constants and
2306         variables are joined with AND/OR rather than short circuit forms).
2307
2308 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
2309
2310         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
2311         it is an upward conversion of an untagged type with no representation
2312         change.
2313
2314 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
2315
2316         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
2317         System.Partition_Interface.
2318
2319         * checks.adb (Apply_Access_Checks): Do not generate checks when
2320         expander is not active (but check for unset reference to prefix of
2321         dereference).
2322
2323         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
2324         pragma Debug as an if statement with a constant condition, for
2325         consistent treatment of entity references contained within the
2326         enclosed procedure call.
2327
2328 2004-09-01  Vincent Celier  <celier@gnat.com>
2329
2330         * bindgen.adb: (Set_EA_Last): New procedure
2331         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
2332         Set_EA_Last.
2333         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
2334         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
2335         linked without errors.
2336         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
2337         ST and EA.
2338         (Gen_Exception_Table_C): Correct same bugs
2339
2340         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
2341
2342         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
2343         on Windows, make sure that the drive letter is in upper case.
2344
2345         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
2346         Windows, when the drive letter is added and Case_Sensitive is True, the
2347         drive letter is forced to upper case.
2348
2349         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
2350         to Options_2 for the call to MLib.Utl.Gcc.
2351
2352         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
2353         directory separator when defining BASE_DIR.
2354
2355 2004-09-01  Pascal Obry  <obry@gnat.com>
2356
2357         * gprcmd.adb (Extend): Do not output trailing directory separator. This
2358         is not needed and it confuses Windows GNU/make which does not report
2359         directory terminated by a slash as a directory.
2360         (gprcmd): Idem for "pwd" internal command.
2361
2362         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
2363         target names rewrite to fix regressions with recent version of
2364         GNU/make. Starting with GNU/make 3.80 the pipe character was not
2365         handled properly anymore.
2366
2367 2004-09-01  Andreas Schwab  <schwab@suse.de>
2368
2369         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
2370         * raise.c [!IN_RTS]: Undef abort.
2371
2372 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
2373
2374         * utils2.c (build_allocator): Use ssize_int.
2375
2376         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
2377
2378 2004-08-27  Andreas Schwab  <schwab@suse.de>
2379
2380         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
2381
2382 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
2383             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2384
2385         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
2386
2387 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
2388
2389         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
2390         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
2391         * utils.c (init_gigi_decls): Likewise.
2392         * utils2.c (build_call_raise, build_allocator): Likewise.
2393
2394 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
2395
2396         * utils.c (gnat_init_decl_processing): Adjust
2397         build_common_tree_nodes call.
2398
2399 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
2400
2401         * utils2.c (build_allocator): Use build_int_cst for negative
2402         size types.
2403
2404 2004-08-18  Richard Henderson  <rth@redhat.com>
2405
2406         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
2407
2408 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2409
2410         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
2411         call.s
2412         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
2413         (gnat_to_gnu): Likewise.
2414
2415 2004-08-16  Pascal Obry  <obry@gnat.com>
2416
2417         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
2418         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
2419         option and not mdll anymore. Update comment.
2420
2421 2004-08-16  Pascal Obry  <obry@gnat.com>
2422
2423         * bld.adb (Put_Include_Project): Properly handle directory separators
2424         on Windows.
2425
2426 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
2427
2428         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
2429         decreasing the number of allocated junk nodes while searching for the
2430         appropriate subprogram.
2431
2432 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
2433
2434         * cuintp.c (UI_To_gnu): Use build_int_cst..
2435         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
2436         * utils.c (init_gigi_decls): Likewise.
2437         * utils2.c (build_call_raise): Likewise.
2438
2439 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
2440
2441         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
2442         for a global aliased object with a variable size and an unconstrained
2443         nominal subtype, pretend there is no initializer if the one we have is
2444         incomplete, and avoid referencing an inexistant component in there. The
2445         part we have will be rebuilt anyway and the reference may confuse
2446         further operations.
2447
2448 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
2449
2450         * einfo.ads: Minor reformatting
2451
2452         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
2453         restrictions in the ALI if we only want to warn about violations.
2454
2455 2004-08-13  Vincent Celier  <celier@gnat.com>
2456
2457         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
2458         when creating a new Unit_Record in table Units.
2459
2460         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
2461         that are violated, if any.
2462
2463         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
2464         add directory separator if path already ends with a directory separator.
2465
2466 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
2467
2468         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
2469         unit, this is an attempt to inline a construct that is not available in
2470         the current restricted mode, so abort rather than trying to continue.
2471
2472         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
2473         discriminants that rename those of the parent, recover names of
2474         original discriminants for the constraint on the full view of the
2475         parent.
2476         (Complete_Private_Subtype): Do not create a subtype declaration if the
2477         subtype is an itype.
2478
2479         * gnat_rm.texi: Added section on implementation of discriminated
2480         records with default values for discriminants.
2481
2482 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
2483
2484         PR ada/15601
2485         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
2486         the second operand is overloaded.
2487
2488 2004-08-10  Richard Henderson  <rth@redhat.com>
2489
2490         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
2491         add __builtin_alloca.
2492
2493 2004-08-10  Richard Henderson  <rth@redhat.com>
2494
2495         * config-lang.in (boot_language): Yes.
2496
2497 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
2498
2499         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
2500         from complaining on potential uninitialized reference.
2501         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
2502         new specification and test explicitly for non-zero return value.
2503
2504         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
2505         returning C.int, to avoid using a derived boolean type.
2506
2507         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
2508         Duplicate_Subexpr_No_Checks in preference to direct use of
2509         Remove_Side_Effects and New_Copy_Tree.
2510         Clear Comes_From_Source on prefix of 'Size attribute reference.
2511
2512         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
2513         g-socthi-vxworks.adb: Change calls to
2514         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
2515         and test explicitly for non-zero return value.
2516
2517         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
2518         (Is_Socket_In_Set): Declare imported function as returning C.int, to
2519         avoid using a derived boolean type.
2520
2521 2004-08-09  Albert Lee  <lee@gnat.com>
2522
2523         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
2524
2525 2004-08-09  Pascal Obry  <obry@gnat.com>
2526
2527         * gnat_ugn.texi: Document new way to build DLLs on Windows using
2528         GCC's -shared option.
2529
2530         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
2531         Options_2 parameter (options put after object files).
2532
2533 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
2534
2535         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
2536         ignore overflows on low and high bounds of an index to also account for
2537         differences in signedness between sizetype and gnu_index_subtype.
2538         These are as legitimate as the ones caused by a lower TYPE_PRECISION
2539         on sizetype.
2540
2541 2004-08-09  Robert Dewar  <dewar@gnat.com>
2542
2543         * s-solita.ads, s-solita.adb: Minor reformatting
2544
2545         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
2546         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
2547         obsolescent section
2548         Add note that No_Implicit_Conditionals does not suppress
2549         run time constraint checks.
2550
2551         * vms_conv.ads: Minor reformatting
2552
2553         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
2554         and necessary for following change).
2555         (Mark): Return new format Mark_Id containing sec stack address
2556         (Release): Use sec stack address from Mark_Id avoiding Self call
2557
2558         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
2559         pointer (cleanup and necessary for following change).
2560         Define Mark_Id as record containing address of secondary stack, that way
2561         Release does not need to find the stack again, decreasing the number of
2562         calls to Self and improving efficiency.
2563
2564         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
2565
2566         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
2567         case variable into the individual case branches when possible.
2568
2569         * sem_ch11.adb: Minor reformatting
2570
2571         * prj.ads: Correct spelling of suffixs
2572
2573         * prj-nmsc.adb: Minor reformatting
2574         Correct spelling suffixs throughout (also in identifiers)
2575
2576         * freeze.adb: Minor spelling correction
2577
2578         * exp_ch2.adb: Cleanups to handling of Current_Value
2579         (no functional effect).
2580
2581         * bld.adb: Correct spelling of suffixs
2582
2583         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
2584
2585 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
2586
2587         PR ada/15408
2588
2589         * sem_ch7.adb (Install_Private_Declarations): In the body of the
2590         package or of a child, private entities are both immediately_visible
2591         and not hidden.
2592
2593 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
2594
2595         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
2596         there are no range checks on the value of the literal.
2597
2598         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
2599         wrapped is the triggering alternative of an asynchronous select, action
2600         statements mustbe inserted before the select itself.
2601
2602         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
2603         case where the prefix is a protected function call.
2604         (Resolve_Attribute, case 'Access): The attribute reference on a
2605         subprogram is legal in a generic body if the subprogram is declared
2606         elsewhere.
2607
2608 2004-08-09  Vincent Celier  <celier@gnat.com>
2609
2610         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
2611         languages, otherwise building the library may fail with unresolved
2612         symbols.
2613         (Compile_Sources): Do not build libraries if -c switch is used
2614
2615         * gnatlink.adb (Process_Args): New switches -M and -Mmap
2616         (Write_Usage): If map file creation is supported, output new switches
2617         -M and -Mmap.
2618         (Gnatlink): When -M is specified, add the necessary switch(es) to the
2619         gcc call, when supported.
2620
2621         * Makefile.in: Added indepsw.o to the object list for gnatlink
2622         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
2623
2624         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
2625         indepsw.adb, indepsw.ads: New files.
2626
2627 2004-08-09  Bernard Banner  <banner@gnat.com>
2628
2629         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
2630
2631         * Makefile.in: add section for vxworks x86
2632
2633 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
2634
2635         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
2636         per-object constrained components where the discriminant is of an
2637         Access type.
2638         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
2639         the parent initialization procedure for derived Unchecked_Unions.
2640         Instead, derived Unchecked_Unions build their own initialization
2641         procedure.
2642         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
2643         Check the body of the subprogram for details.
2644         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
2645         functions for derived Unchecked_Union types by introducing a condition.
2646         Allow the creation of TSS equality functions for Unchecked_Unions.
2647         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
2648         Add formal parameter Discr to function signature. Discr is used to
2649         control the generated case statement for Unchecked_Union types.
2650         (Make_Eq_If): Rename formal parameter Node to E in function signature.
2651
2652         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
2653         Unchecked_Unions.
2654         Check the body of the subprogram for details.
2655         (Expand_Composite_Equality): Augment composite type equality to include
2656         correct handling of Unchecked_Union components.
2657         (Expand_N_In): Add condition to detect illegal membership tests when the
2658         subtype mark is a constrained Unchecked_Union and the expression lacks
2659         inferable discriminants, and build a Raise_Program_Error node.
2660         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
2661         to detect types that contain components of unconstrained Unchecked_Union
2662         subtype. Add condition to detect equality between types that have an
2663         unconstrained Unchecked_Union component, and build a Raise_Program_Error
2664         node. Add condition to detect equality between Unchecked_Union types
2665         that lack inferable discriminants, and build a Raise_Program_Error node.
2666         Otherwise build a TSS equality function call.
2667         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
2668         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
2669         with the operand lacking inferable discriminants, and build a Raise_
2670         Program_Error node.
2671         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
2672         composite equality.
2673         (Has_Inferable_Discriminants): Implement new predicate for objects and
2674         expressions of Unchecked_Union type. Check the body of subprogram for
2675         details.
2676         (Has_Unconstrained_UU_Components): Add function
2677         Component_Is_Unconstrained_UU. It is used to detect whether a single
2678         component is of an unconstrained Unchecked_Union subtype. Add function
2679         Variant_Is_Unconstrained_UU. It is used to detect whether a single
2680         component inside a variant is of an unconstrained Unchecked_Union type.
2681
2682         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
2683         inferred discriminant values. Add condition to generate a case
2684         statement with an inferred discriminant as the switch.
2685         (Make_Component_List_Assign): Introduce a Boolean flag that determines
2686         the behaviour of the subprogram in the presence of an Unchecked_Union.
2687         Add condition to trigger the usage of the inferred discriminant value
2688         as the generated case statement switch.
2689         (Make_Field_Assign): Introduce a Boolean flag that determines the
2690         behaviour of the subprogram in the presence of an Unchecked_Union. Add
2691         condition to trigger the usage of the inferred discriminant value as
2692         the right-hand side of the generated assignment.
2693
2694         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
2695         parameter generation when dealing with Unchecked_Unions.
2696
2697         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
2698         checks for Unchecked_Unions.
2699
2700         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
2701
2702         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
2703         Raise_Program_Error nodes for the execution of Read and Write
2704         attributes of Unchecked_Union types and the execution of Input and
2705         Output attributes of Unchecked_Union types that lack default
2706         discriminant values.
2707
2708         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
2709         Unchecked_Union. Add procedure Check_Component. It is used to inspect
2710         per-object constrained components of Unchecked_Unions for being
2711         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
2712         check individual components withing a variant.
2713
2714         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
2715         comparison of Unchecked_Unions.
2716         (Resolve_Equality_OP): Remove guard that prevents equality between
2717         Unchecked_Unions.
2718
2719         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
2720         of component subtypes for Unchecked_Union components.
2721         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
2722         since it is the actual subtype.
2723
2724         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
2725         pass of Unchecked_Union subtypes as generic actuals to formal types
2726         that lack known_discriminant_parts or that are derived Unchecked_Union
2727         types, and do nothing. In any other case, produce an error message.
2728
2729         * sem_ch3.adb (Analyze_Component_Declaration): Add function
2730         Contains_POC. It determines whether a constraint uses the discriminant
2731         of an enclosing record type.
2732         Add condition to detect per-object constrained component and set the
2733         appropriate flag.
2734         (Derived_Type_Declaration): Remove guard that prevents derivation from
2735         Unchecked_Union types.
2736         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
2737         Union subtypes.
2738
2739         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
2740         references to Unchecked_Union discriminants.
2741
2742         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
2743         formal generation when dealing with Unchecked_Unions.
2744         (Set_Actual_Subtypes): Add condition to prevent generation of actual
2745         subtypes for Unchecked_Unions.
2746
2747         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
2748         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
2749         completions of discriminated partial views by Unchecked_Unions and
2750         produce an error message.
2751
2752 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2753
2754         * trans.c (struct stmt_group): New field, GLOBAL.
2755         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
2756         (struct elab_info): New struct.
2757         (elab_info_list, gnu_elab_proc_stack): New variables.
2758         (Compilation_Unit_to_gnu): New procedure.
2759         (gigi): Call it and also handle elaboration procs we've saved.
2760         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
2761         global field from parent.
2762         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
2763         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
2764         (start_stmt_group): Initialize global field from parent.
2765         (add_decl_expr): Set to global for current statement group.
2766         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
2767         post.
2768
2769         * utils.c (global_bindings_p): True when no current_function_decl; no
2770         longer check current_binding_level.
2771
2772 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
2773
2774         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
2775         choice.
2776
2777         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
2778
2779 2004-08-06  Andreas Schwab  <schwab@suse.de>
2780
2781         * utils.c (gnat_define_builtin): Remove second parameter of
2782         make_decl_rtl.
2783         (begin_subprog_body): Likewise.
2784
2785 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
2786
2787         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
2788         optimization, not supported by the tree-ssa back-end.
2789
2790 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
2791
2792         * s-mastop-irix.adb: Update comments.
2793
2794         * a-except.adb (Exception_Information): Raise Constraint_Error if
2795         exception Id is Null_Id.
2796         This is required behavior, which is more reliably and clearly checked
2797         at the top level interface level.
2798
2799 2004-07-26  Javier Miranda  <miranda@gnat.com>
2800
2801         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
2802         call if a component has no default_expression and the box is used.
2803
2804         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
2805         default_expression and you use box, it behaves as if you had declared a
2806         stand-alone object.
2807         (Resolve_Record_Aggregate): If a component has no default_expression and
2808         you use box, it behaves as if you had declared a stand-alone object.
2809
2810         * sem_ch10.adb (Install_Siblings): Do not make visible the private
2811         entities of private-with siblings.
2812
2813 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
2814
2815         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
2816         for a component of an itype, set the parent pointer for analysis,
2817         there is no list in which to insert it.
2818
2819         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
2820         bona-fide renamings, not for inherited operations.
2821
2822         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
2823         actual for a formal that is an access parameter, create local
2824         finalization list even if the expression is not an aggregate.
2825
2826 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
2827
2828         PR ada/16213
2829         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
2830         Diagnose properly illegal subprogram renamings that are library units.
2831
2832 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
2833
2834         PR ada/15588
2835         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
2836         conversion rewritten as an unchecked conversion, check that original
2837         expression is a variable.
2838
2839         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
2840         unchecked_conversion, create new node rather than rewriting in place,
2841         to preserve original construct.
2842
2843 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2844
2845         * gigi.h (gnat_expand_body): Deleted.
2846
2847         * Make-lang.in: (trans.o): Depends on function.h.
2848
2849         * misc.c: (gnat_expand_body): Moved to here.
2850
2851         * trans.c (gnat_expand_body_1): Deleted.
2852         (gnat_expand_body): Moved from here.
2853         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
2854         (add_stmt): Check for marked visited with global_bindings_p.
2855         (gnat_gimplify_expr, case COMPONENT_REF): New case.
2856         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
2857
2858         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
2859         VIEW_CONVERT_EXPR if not operation type.
2860
2861         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
2862         fat pointer.
2863
2864         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
2865         changes: reformatting of negation operators, removing unneeded
2866         inequality comparison with zero, converting equality comparisons with
2867         zero to negations, changing int/0/1 to bool/false/true, replace calls
2868         to gigi_abort with abort, and various other similar changes.
2869
2870 2004-07-26  Vincent Celier  <celier@gnat.com>
2871
2872         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
2873         "setup".
2874
2875         * make.adb (Gnatmake): Fail when a library is not present and there is
2876         no object directory.
2877
2878         * mlib-prj.adb (Check_Library): No need to check if the library needs
2879         to be rebuilt if there is no object directory, hence no object files
2880         to build the library.
2881
2882         * opt.ads (Setup_Projects): New Boolean flag.
2883
2884         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
2885         Location.
2886         Create directory when Kind /= "" and in "gnat setup". Report error if
2887         directory cannot be created.
2888         (Ada_Check): Create library interface copy dir if it does not exist
2889         and we are in "gnat setup".
2890         (Find_Sources): No error if in "gnat setup" and no Ada sources were
2891         found.
2892         (Language_Independent_Check): Create object directory, exec directory
2893         and/or library directory if they do not exist and we are in
2894         "gnat setup".
2895
2896         * vms_conv.ads: (Command_Type): New command Setup.
2897
2898         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
2899
2900         * vms_data.ads: Add qualifiers/switches for new built-in command
2901         "setup".
2902
2903 2004-07-25  Richard Henderson  <rth@redhat.com>
2904
2905         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
2906         DECL_IGNORED_P on RESULT_DECL.
2907
2908 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
2909
2910         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
2911         allocation and potentially overflowing update with
2912         Tailored_Exception_Information. Use the sec-stack free procedural
2913         interface to output Exception_Information instead.
2914
2915         * a-except.adb (To_Stderr): New subprogram for character, and string
2916         version moved from a-exextr to be visible from other separate units.
2917         (Tailored_Exception_Information): Remove the procedural version,
2918         previously used by the default Last_Chance_Handler and not any more.
2919         Adjust various comments.
2920
2921         * a-exexda.adb: Generalize the exception information procedural
2922         interface, to minimize the use of secondary stack and the need for
2923         local buffers when the info is to be output to stderr:
2924         (Address_Image): Removed.
2925         (Append_Info_Character): New subprogram, checking for overflows and
2926         outputing to stderr if buffer to fill is of length 0.
2927         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
2928         (Append_Info_Address, Append_Info_Exception_Name,
2929         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
2930         Append_Info_Basic_Exception_Traceback,
2931         Append_Info_Exception_Information): New subprograms.
2932         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
2933         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
2934         Exception_Info_Maxlength, Exception_Name_Length,
2935         Exception_Message_Length): New subprograms.
2936         (Exception_Information): Use Append_Info_Exception_Information.
2937         (Tailored_Exception_Information): Use
2938         Append_Info_Basic_Exception_Information.
2939         Export services for the default Last_Chance_Handler.
2940
2941         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
2942         other separate units.
2943
2944 2004-07-20  Vincent Celier  <celier@gnat.com>
2945
2946         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
2947
2948 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
2949
2950         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
2951         emit itype references for the designated types of component types that
2952         are declared outside of the full record declaration, and that may
2953         denote a partial view of that record type.
2954
2955 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
2956
2957         PR ada/15607
2958         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
2959         which is the designated type in an access component declaration, to the
2960         list of incomplete dependents of the parent type, to avoid elaboration
2961         issues with out-of-scope subtypes.
2962         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
2963         full view of the parent.
2964
2965 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
2966
2967         PR ada/15610
2968         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
2969         entities that are hidden, such as references to generic actuals
2970         outside an instance.
2971
2972 2004-07-20  Javier Miranda  <miranda@gnat.com>
2973
2974         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
2975         support to the new notation.
2976         (Analyze_Selected_Component): Add call to Try_Object_Operation.
2977
2978 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
2979
2980         * s-taprob.adb: Adding the elaboration code required for initializing
2981         the tasking soft links that are common to the full and the restricted
2982         run times.
2983
2984         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
2985         restricted run time has been moved to the package
2986         System.Soft_Links.Tasking.
2987
2988         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
2989         restricted run time has been moved to the package
2990         System.Soft_Links.Tasking.
2991
2992         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
2993
2994         * s-solita.ads, s-solita.adb: New files.
2995
2996 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2997
2998         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
2999         Case_Statement_to_gnu): Split off from gnat_to_gnu.
3000         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
3001         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
3002         Exception_Handler_to_gnu_zcx): Likewise.
3003
3004 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
3005
3006         * gigi.h (builtin_function): Declare.
3007
3008 2004-07-15  Robert Dewar  <dewar@gnat.com>
3009
3010         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
3011         reformatting
3012
3013         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
3014         access values as an example of a warning.
3015
3016         * gnat_rm.texi: Document new attribute Has_Access_Values
3017
3018         * gnat-style.texi: Document that box comments belong on nested
3019         subprograms
3020
3021         * sem_util.ads (Has_Access_Values): Improved documentation
3022
3023         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
3024
3025         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
3026         (Process_Interface_Name): Call to this new procedure
3027         (Set_Extended_Import_Export_External_Name): Call to this new procedure
3028
3029         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
3030
3031         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
3032
3033         * einfo.ads: Minor comment typo fixed
3034
3035 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
3036
3037         * snames.adb: Add _atcb.
3038
3039         * snames.ads: Add Name_uATCB.
3040
3041         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
3042         (in the expanded code) when using the restricted run time.
3043
3044         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
3045         a in parameter in order to allow ATCBs to be preallocated (in the
3046         expanded code).
3047
3048         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
3049         order to allow ATCBs to be preallocated. In case of error, the ATCB is
3050         deallocated in System.Tasking.Stages.
3051
3052         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
3053         order to allow ATCBs to be preallocated.
3054
3055         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
3056         here. It was previously done in Initialize_ATCB.
3057
3058         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
3059
3060         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
3061         Restricted run time.
3062
3063         * exp_ch3.adb: When using the Restricted run time, pass the
3064         preallocated Ada_Task_Control_Block when creating a task.
3065
3066 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
3067
3068         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
3069         function call that is itself an actual in an enclosing call, diagnose
3070         problem here rather than assuming that resolution will catch it.
3071
3072         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
3073         the local copy of a generic unit for a formal package, and the generic
3074         is a child unit, install private part of ancestors before compiling
3075         private part of spec.
3076
3077         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
3078         use scope entities rather than tree structures, to handle properly
3079         parent units that are instances rewritten as bodies for inlining
3080         purposes.
3081
3082         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
3083         Remove_Parents): Handle properly a parent unit that is an
3084         instantiation, when the unit has been rewritten as a body for inlining
3085         purposes.
3086
3087         * par.adb (Goto_List): Global variable to collect goto statements in a
3088         given unit, for use in detecting natural loops.
3089
3090         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
3091         use in detecting natural loops.
3092
3093         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
3094         backwards goto's, and rewrite as a infinite loop, to improve locality
3095         of temporaries.
3096
3097         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
3098         subcomponent that includes an indexed reference, to prevent the
3099         generation of copies that would miscompile the desired assignment
3100         statement.
3101         (Build_Task_Image_Decls): Add a numeric suffix to
3102         generated name for string variable, to avoid spurious conflicts with
3103         the name of the type of a single protected object.
3104
3105         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
3106         loop with an explicit exit statement, to avoid generating an
3107         out-of-range value with 'Succ leading to spurious constraint_errors
3108         when compiling with -gnatVo.
3109
3110 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
3111
3112         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
3113         might not be analyzed yet, even if its Etype is already set (case of an
3114         unchecked conversion built using Unchecked_Convert_To, for example).
3115         If the prefix has already been analyzed, this will be a nop anyway.
3116
3117         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
3118         controller type, or an assignment of a record type with controlled
3119         components, copy only user data, and leave the finalization chain
3120         pointers untouched.
3121
3122 2004-07-15  Vincent Celier  <celier@gnat.com>
3123
3124         * make.adb (Collect_Arguments): Improve error message when attempting
3125         to compile a source not part of any project, when -x is not used.
3126
3127         * prj.ads: (Defined_Variable_Kind): New subtype
3128
3129         * prj-attr.adb (Register_New_Package): Two new procedures to register
3130         a package with or without its attributes.
3131         (Register_New_Attribute): Mew procedure to register a new attribute in a
3132         package.
3133         New attribute oriented subprograms: Attribute_Node_Id_Of,
3134         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
3135         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
3136         Next_Attribute.
3137         New package oriented subprograms: Package_Node_Id_Of,
3138         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
3139
3140         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
3141         type.
3142         (Package_Node_Id): Now a private, self initialized type
3143         (Register_New_Package): New procedure to register a package with its
3144         attributes.
3145         New attribute oriented subprograms: Attribute_Node_Id_Of,
3146         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
3147         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
3148         Next_Attribute.
3149         New package oriented subprograms: Package_Node_Id_Of,
3150         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
3151
3152         * prj-dect.adb (Parse_Attribute_Declaration,
3153         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
3154
3155         * prj-makr.adb (Make): Parse existing project file before creating
3156         other files. Fail if there was an error during parsing.
3157
3158         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
3159         new spec of Prj.Attr.
3160
3161         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
3162         to new spec of Prj.Attr.
3163
3164 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3165
3166         * utils2.c: Fix typo in comment.
3167
3168 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3169
3170         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
3171         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
3172
3173 2004-07-14  Andreas Schwab  <schwab@suse.de>
3174
3175         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
3176
3177 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3178
3179         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
3180         object type.
3181         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
3182         TYPE_STUB_DECL.
3183
3184         * misc.c (gnat_types_compatible_p): New function.
3185         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
3186         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
3187
3188         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
3189         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
3190         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
3191         (mark_visited): Don't mark dummy type.
3192         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
3193         parameter, we must remove any LJM building from GNU_NAME.
3194         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
3195         (pos_to_constructor): Use int_const_binop.
3196         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
3197         PARM_DECL.
3198
3199         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
3200         (gnat_pushlevel): Set TREE_USE on BLOCK node.
3201         (gnat_install_builtins): Add __builtin_memset.
3202
3203 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
3204
3205         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
3206         for a renaming, stabilize the initialization expression if we are at a
3207         local level.  At the local level, uses of the renaming may be performed
3208         by a direct dereference of the initializing expression, and we don't
3209         want possible variables there to be evaluated for every use.
3210
3211         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
3212         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
3213         them on the way.  Account for the fact that we may introduce side
3214         effects in the process.
3215
3216 2004-07-13  Richard Henderson  <rth@redhat.com>
3217
3218         * misc.c (default_pass_by_ref): Use pass_by_reference.
3219
3220 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
3221
3222         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
3223         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
3224
3225 2004-07-08  Richard Henderson  <rth@redhat.com>
3226
3227         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
3228         commentary.
3229
3230 2004-07-06  Vincent Celier  <celier@gnat.com>
3231
3232         * vms_conv.ads: Minor reformatting.
3233         Alphabetical order for enumerated values of type Command_Type, to have
3234         the command in alphabetical order for the usage.
3235
3236         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
3237         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
3238
3239         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
3240
3241         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
3242         (Add_Archive_Path): Only add the global archive if there is one.
3243         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
3244         or not any object file to put in the global archive, and don't build
3245         a global archive if there is none.
3246         (X_Switches): New table
3247         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
3248         in the X_Switches table, if any.
3249         (Initialize): Make sure the X_Switches table is empty
3250         (Scan_Arg): Record -X switches in table X_Switches
3251
3252         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
3253
3254         * make.adb: Minor comment fix
3255
3256         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
3257         invoked with directory information, add the directory in front of the
3258         path.
3259
3260         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
3261         invoked with directory information, add the directory in front of the
3262         path.
3263
3264         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
3265         when Keep_Temporary_Files is False.
3266         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
3267         directory information, add the directory in front of the path.
3268         When not on VMS, handle new switch -dn before the command to set
3269         Keep_Temporary_Files to True.
3270         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
3271         everywhere.
3272
3273         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
3274         invoked with directory information, add the directory in front of the
3275         path.
3276
3277 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
3278
3279         * snames.ads, snames.adb (Name_Stub): New name for the distributed
3280         systems annex.
3281
3282         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
3283         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
3284
3285         * g-socket.adb (To_Timeval): Fix incorrect conversion of
3286         Selector_Duration to Timeval for the case of 0.0.
3287
3288         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
3289         documentation from Evolve_And_Then.
3290
3291 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
3292
3293         * s-taprop-tru64.adb, s-taprop-os2.adb,
3294         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
3295
3296 2004-07-06  Robert Dewar  <dewar@gnat.com>
3297
3298         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
3299         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
3300         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
3301         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
3302         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
3303         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
3304         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
3305         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
3306         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
3307         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
3308         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
3309         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
3310         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
3311         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
3312         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
3313         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
3314         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
3315         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
3316         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
3317         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
3318         vms_data.ads: Minor reformatting,
3319         Fix bad box comment format.
3320
3321         * gnat_rm.texi: Fix minor grammatical error
3322
3323         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
3324
3325         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
3326         more cases of discriminated records to be recognized as not needing a
3327         secondary stack.
3328         (Has_Access_Values): New function.
3329
3330         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
3331
3332         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
3333         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
3334         with LRM terminology).
3335         Change terminology in comments primitive type => elementary type.
3336
3337 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
3338
3339         PR ada/15602
3340         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
3341         parameters do not impose any requirements on the presence of a body.
3342
3343 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
3344
3345         PR ada/15593
3346         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
3347         compilation unit and is in an open scope at the point of instantiation,
3348         assume that a body may be present later.
3349
3350 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
3351
3352         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
3353         Improve error message when specified size is not supported.
3354
3355         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
3356         is never a primitive operation.
3357
3358 2004-07-05  Andreas Schwab  <schwab@suse.de>
3359
3360         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
3361         RECORD_OR_UNION_CHECK.
3362         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
3363
3364 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
3365
3366         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
3367         dependency on xgnatugn, instead build it via a submake.
3368         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
3369
3370 2004-07-04  Richard Henderson  <rth@redhat.com>
3371
3372         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
3373
3374 2004-07-01  Richard Henderson  <rth@redhat.com>
3375
3376         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
3377         * utils.c (max_size): Likewise.
3378
3379 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3380
3381         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
3382         and rest_of_type_compilation; add arg to create_*_decl.
3383         (annotate_decl_with_node): Deleted.
3384         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
3385         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
3386         (get_current_block_context, gnat_pushdecl): New declarations.
3387         (gnat_init_stmt_group): Likewise.
3388         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
3389         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
3390         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
3391         (gnat_init): Call gnat_init_stmt_group.
3392         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
3393         (gnu_pending_elaboration_list): Deleted.
3394         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
3395         (gigi): Rearrange initialization calls and move some to last above.
3396         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
3397         Delete calls to add_decl_expr; add arg to create_*_decl.
3398         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
3399         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
3400         begin_subprog_body and call it.
3401         Don't push and pop ggc context.
3402         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
3403         (add_stmt): Remove handling of DECL_EXPR from here.
3404         If not in function, mark visited.
3405         (add_decl_expr): Put global at top level.
3406         Check for cases of DECL_INITIAL we have to handle here.
3407         (process_type): Add extra arg to create_type_decl.
3408         (build_unit_elab): Rework to just gimplify.
3409         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
3410         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
3411         (get_pending_elaborations, pending_elaborations_p): Likewise.
3412         (push_pending_elaborations, pop_pending_elaborations): Likewise.
3413         (get_elaboration_location, insert_elaboration_list): Likewise.
3414         (gnat_binding_level): Renamed from ada_binding_level.
3415         (init_gnat_to_gnu): Don't clear pending_elaborations.
3416         (global_bindings_p): Treat as global if no current_binding_level.
3417         (set_current_block_context): New function.
3418         (gnat_pushdecl): Renamed from pushdecl; major rework.
3419         All callers changed.
3420         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
3421         (finish_record_type): Call call pushdecl for stub decl.
3422         (function_nesting_depth): Deleted.
3423         (begin_subprog_body): Delete obsolete code.
3424         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
3425
3426 2004-06-28  Robert Dewar  <dewar@gnat.com>
3427
3428         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3429         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
3430         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
3431         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3432         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
3433
3434         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
3435         deal with problem of inefficient slices on machines with strict
3436         alignment, when the slice is a component of a composite.
3437
3438         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
3439         machines, we need the check there as well.
3440
3441 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
3442
3443         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
3444         determine safe copying direction for overlapping slice assignments
3445         when component is controlled.
3446
3447         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
3448         formal derived type in the actual for a formal package are visible in
3449         the enclosing instance.
3450
3451 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
3452
3453         PR ada/15600
3454         * sem_util.adb (Trace_Components): Diagnose properly an illegal
3455         circularity involving a private type whose completion includes a
3456         self-referential component.
3457         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
3458         renaming or an instantiation from an implicit derived operation.
3459
3460 2004-06-28  Pascal Obry  <obry@gnat.com>
3461
3462         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
3463         DLL.
3464         (Library_File_Name_For): Idem.
3465
3466 2004-06-28  Matthew Gingell  <gingell@gnat.com>
3467
3468         * g-traceb.ads: Add explanatory note on the format of addresses
3469         expected by addr2line.
3470
3471 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
3472
3473         * Makefile.in: Force debugging information on s-tasdeb.adb,
3474         a-except.adb and s-assert.adb needed by the debugger.
3475
3476 2004-06-28  Vincent Celier  <celier@gnat.com>
3477
3478         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
3479         Need_To_Build_Lib.
3480         (Gnatmake): Ditto.
3481
3482         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
3483
3484         * prj.adb: Minor reformatting
3485         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
3486
3487         * prj.ads: Comment updates
3488         Minor reformatting
3489         (Project_Data): Change Flag1 to Need_To_Build_Lib.
3490         Remove Flag2: not used.
3491
3492         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
3493         declaration.
3494
3495         * gnat_ugn.texi: Put a "null;" declaration in one project file example
3496
3497         * gnat_rm.texi: Document Empty declarations "null;".
3498
3499         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
3500         front of the linker options.
3501         (Link_Foreign): Put the global archives and the libraries in front of
3502         the linker options.
3503
3504 2004-06-28  Javier Miranda  <miranda@gnat.com>
3505
3506         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
3507         (RTU_Loaded): Code cleanup
3508         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
3509         withed predefined units.
3510
3511         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
3512         explicitly withed predefined units.
3513         Fix typo in comment
3514
3515         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
3516         explicitly withed predefined units.
3517
3518 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3519
3520         * ada-tree.def (DECL_STMT): Deleted.
3521         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
3522         (DECL_STMT_VAR): Deleted.
3523         * decl.c: add_decl_stmt now add_decl_expr.
3524         * gigi.h: Likewise.
3525         * trans.c: Likewise.
3526         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3527         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
3528         (add_stmt): Only handle padded type here.
3529         (add_stmt_with_node): Allow gnat_node to not be present.
3530         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
3531         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
3532         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
3533         make a SAVE_EXPR for the entire fat pointer.
3534         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
3535         (create_index_type): Make a DECL_EXPR.
3536         (end_subprog_body): Don't call allocate_struct_function here but
3537         do clear cfun.
3538
3539 2004-06-25  Pascal Obry  <obry@gnat.com>
3540
3541         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
3542         Relocatable from Build_Dynamic_Library call.
3543
3544         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
3545         Relocatable are now synonym.
3546
3547         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
3548
3549         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
3550         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
3551         call.
3552
3553         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
3554         Lib_Address and Relocatable.
3555         (Default_DLL_Address): Removed.
3556
3557         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3558         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3559         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
3560         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
3561         (Default_DLL_Address): Removed.
3562
3563         * mlib-tgt-mingw.adb: Ditto.
3564         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
3565
3566         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
3567         the initial thread stack size.
3568
3569         * a-strmap.ads: Move package L to private part as it is not used in
3570         the spec. Found while reading code.
3571
3572 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
3573
3574         * tracebak.c: Introduce support for a GCC infrastructure based
3575         implementation of __gnat_backtrace.
3576
3577         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
3578         any more. Use accessors instead. This eases maintenance and relaxes
3579         some alignment constraints.
3580         (_GNAT_Exception structure): Remove the Ada specific fields
3581         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
3582         a-exexpr.adb.
3583         (is_handled_by, __gnat_eh_personality): Replace component references to
3584         exception structure by use of the new accessors.
3585
3586         * init.c (__gnat_initialize): Adjust comments to match the just
3587         reverted meaning of the -static link-time option.
3588
3589         * adaint.c (convert_addresses): Arrange not to define a stub for
3590         mips-irix any more, as we now want to rely on a real version from a
3591         recent libaddr2line.
3592
3593         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
3594         the personality routine can use them and not have to rely on a C
3595         counterpart of the record anymore. This simplifies maintenance and
3596         relaxes the constraint of having Standard'Maximum_Alignment match
3597         BIGGEST_ALIGNMENT.
3598         Update comments, and add a section on the common header alignment issue.
3599
3600 2004-06-25  Geert Bosch  <bosch@gnat.com>
3601
3602         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
3603         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
3604
3605 2004-06-25  Robert Dewar  <dewar@gnat.com>
3606
3607         * gnat_rm.texi: Fix section on component clauses to indicate that the
3608         restriction on byte boundary placement still applies for bit packed
3609         arrays.
3610         Add comment on stack usage from Initialize_Scalars
3611
3612         * gnat_ugn.texi: Add documentation for -gnatyLnnn
3613
3614         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
3615         limiting nesting level.
3616
3617         * usage.adb: Add line for -gnatyLnnn switch
3618
3619         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
3620         sem_ch13.adb, exp_aggr.adb: Minor reformatting
3621
3622         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
3623         type as well as on the subtype. This corrects a problem in freeze in
3624         setting alignments of atomic types.
3625
3626         * sem_eval.ads: Minor comment typo fixed
3627
3628         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
3629         level.  Minor reformatting.
3630
3631         * fname.adb (Is_Predefined_File_Name): Require a letter after the
3632         minus sign. This means that file names like a--b.adb will not be
3633         considered predefined.
3634
3635         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
3636         record Test new flag and give diagnostic for bad component clause.
3637         (Freeze_Entity): Set alignment of array from component alignment in
3638         cases where this is safe to do.
3639
3640         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
3641         arrays.
3642
3643         * cstand.adb: (Create_Standard): Set alignment of String to 1
3644
3645         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
3646
3647         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
3648         code in the common constrained array cases.
3649
3650         * a-storio.adb: Change implementation to avoid possible alignment
3651         problems on machines requiring strict alignment (data should be moved
3652         as type Buffer, not type Elmt).
3653
3654         * checks.adb (Apply_Array_Size_Check): Improve these checks by
3655         killing the overflow checks which we really do not need (64-bits is
3656         enough).
3657
3658 2004-06-25  Vincent Celier  <celier@gnat.com>
3659
3660         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
3661         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
3662         inconditionally for the main project.
3663         (Recursive_Add_Archives.Add_Archive_Path): New procedure
3664         (Link_Executables.Check_Time_Stamps): New procedure
3665         (Link_Executables.Link_Foreign): New procedure
3666         Changes made to reduce nesting level of this package
3667         (Check): New procedure
3668         (Add_Switches): When not in quiet output, check that a switch is not
3669         the concatenation of several valid switches. If it is, issue a warning.
3670         (Build_Global_Archive): If the global archive is rebuilt, linking need
3671         to be done.
3672         (Compile_Sources): Rebuilding a library archive does not imply
3673         rebuilding the global archive.
3674         (Build_Global_Archive): New procedure
3675         (Build_Library): New name for Build_Archive, now only for library
3676         project
3677         (Check_Archive_Builder): New procedure
3678         (Create_Global_Archive_Dependency_File): New procedure
3679         (Gprmake): Call Build_Global_Archive before linking
3680         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
3681         throughout.
3682         (Scan_Arg): Display the Copyright notice when -v is used
3683
3684         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
3685         for gnatls.
3686
3687         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
3688         COMPILE.
3689         Add new GNAT LIST qualifier /FILES=
3690         Added qualifier /DIRECTORY= to GNAT METRIC
3691         Added qualifier /FILES= to GNAT METRIC
3692         Added qualifier /FILES to GNAT PRETTY
3693
3694         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
3695         to take into account both versions of the switch.
3696
3697         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
3698         always be the last switch to the gcc driver. Disable switch storing so
3699         that switches automatically added by the gcc driver are not put in the
3700         ALI file.
3701
3702         * prj.adb (Project_Empty): Take into account changes in components of
3703         Project_Data.
3704
3705         * prj.ads (Languages_Processed): New enumaration value All_Languages.
3706
3707         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
3708         used. Split Boolean component Ada_Sources_Present in two Boolean
3709         components Ada_Sources_Present and Other_Sources_Present.
3710         Minor reformatting
3711
3712         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
3713         instead of Sources_Present.
3714         (Set_Ada_Paths.Add.Recursive_Add): Ditto
3715
3716         * prj-nmsc.adb: Minor reformatting
3717         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
3718         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
3719         Check_Ada_Naming_Scheme.
3720         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
3721         throughout.
3722
3723         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
3724         In_Limited.
3725         Make sure that all cycles where there is at least one "limited with"
3726         are detected.
3727         (Parse_Single_Project): New Boolean parameter In_Limited
3728
3729         * prj-proc.adb (Recursive_Check): When Process_Languages is
3730         All_Languages, call first Prj.Nmsc.Ada_Check, then
3731         Prj.Nmsc.Other_Languages_Check.
3732
3733         * prj-proc.adb (Process): Use Ada_Sources_Present or
3734         Other_Sources_Present (instead of Sources_Present) depending on
3735         Process_Languages.
3736
3737         * lang-specs.h: Keep -g and -m switches in the same order, and as the
3738         last switches.
3739
3740         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
3741         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
3742         False.
3743         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
3744         False.
3745
3746         * lib.ads (Disable_Switch_Storing): New procedure.
3747
3748         * make.adb: Modifications to reduce nesting level of this package.
3749         (Check_Standard_Library): New procedure
3750         (Gnatmake.Check_Mains): New procedure
3751         (Gnatmake.Create_Binder_Mapping_File): New procedure
3752         (Compile_Sources.Compile): Add switch -gnatez as the last option
3753         (Display): Never display -gnatez
3754
3755         * Makefile.generic:
3756         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
3757
3758         * gnatcmd.adb (Check_Project): New function
3759         (Process_Link): New procedure to reduce nesting depth
3760         (Check_Files): New procedure to reduce the nesting depth.
3761         For GNAT METRIC, include the inherited sources in extending projects.
3762         (GNATCmd): When GNAT LS is invoked with a project file and no files,
3763         add the list of files from the sources of the project file. If this list
3764         is too long, put it in a temp text files and use switch -files=
3765         (Delete_Temp_Config_Files): Delete the temp text file that contains
3766         a list of source for gnatpp or gnatmetric, if one has been created.
3767         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
3768         in the project file is too large, create a temporary text file that
3769         list them and pass it to the tool with "-files=<temp text file>".
3770         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
3771
3772         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
3773         generated file is in not in Ada.
3774
3775         * gnatls.adb: Remove all parameters And_Save that are no longer used.
3776         (Scan_Ls_Arg): Add processing for -files=
3777         (Usage): Add line for -files=
3778
3779         * g-os_lib.adb (On_Windows): New global constant Boolean flag
3780         (Normalize_Pathname): When on Windows and the path starts with a
3781         directory separator, make sure that the resulting path will start with
3782         a drive letter.
3783
3784         * clean.adb (Clean_Archive): New procedure
3785         (Clean_Project): When there is non-Ada code, delete the global archive,
3786         the archive dependency files, the object files and their dependency
3787         files, if they exist.
3788         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
3789
3790 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
3791
3792         * sinfo.ads: Fix typo in comment.
3793
3794         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
3795         the TSS for remote access-to-subprogram types, since these TSS are
3796         always present once the type has been analyzed.
3797         (RAS_E_Dereference): Same.
3798
3799         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
3800         reference raises Bad_Attribute, mark the reference as analyzed so the
3801         node (and any children resulting from rewrites that could have occurred
3802         during the analysis that ultimately failed) is not analyzed again.
3803
3804         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
3805
3806         * exp_dist.adb: Minor comment fix.
3807
3808         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
3809         type is an anonymous access type, no unchecked deallocation of the
3810         allocated object can occur. If the object is controlled, attach it with
3811         a count of 1. This allows attachment to the Global_Final_List, if
3812         no other relevant list is available.
3813         (Get_Allocator_Final_List): For an anonymous access type that is
3814         the type of a discriminant or record component, the corresponding
3815         finalisation list is the one of the scope of the type.
3816
3817 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
3818
3819         * sem_ch3.adb (Replace_Type): When computing the signature of an
3820         inherited subprogram, use the first subtype if the derived type
3821         declaration has no constraint.
3822
3823         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
3824         before applying previous optimization. Minor code cleanup.
3825
3826         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
3827         placed at the beginning of an unpacked record without explicit
3828         alignment, a slice of it will be aligned and does not need a copy when
3829         used as an actual.
3830
3831 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
3832
3833         PR ada/15591
3834         PR ada/15592
3835         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
3836         reference is written with expressions mimicking parameters.
3837
3838 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
3839
3840         PR ada/15589
3841         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
3842         STEP 2a. The constraints of a full type declaration of a derived record
3843         type are checked for conformance with those declared in the
3844         corresponding private extension declaration. The message
3845         "not conformant with previous declaration" is emitted if an error is
3846         detected.
3847
3848 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
3849
3850         * g-traceb.ads: Document the need for -E binder switch in the spec.
3851
3852         * g-trasym.ads: Document the need for -E binder switch in the spec.
3853
3854 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
3855
3856         * sem_prag.adb: Add handling of pragma Detect_Blocking.
3857
3858         * snames.h, snames.ads, snames.adb: Add entry for pragma
3859         Detect_Blocking.
3860
3861         * s-rident.ads: Change reference to pragma Detect_Blocking.
3862
3863         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
3864         system.ads.
3865
3866         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
3867         to indicate whether pragma Detect_Blocking is active.
3868
3869         * par-prag.adb: Add entry for pragma Detect_Blocking.
3870
3871         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
3872         of not handling WITH.
3873         Note that this replaces the previous update which was incorrect.
3874
3875 2004-06-25  Javier Miranda  <miranda@gnat.com>
3876
3877         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
3878         use-clauses to have a clean environment.
3879
3880         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
3881         the installation of the use-clauses to stablish a clean environment in
3882         case of compilation of a separate unit; otherwise the call to
3883         use_one_package is protected by the barrier Applicable_Use.
3884
3885         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
3886         the installation of the use-clauses to stablish a clean environment in
3887         case of compilation of a separate unit.
3888         (End_Use_Clauses): Minor comment cleanup.
3889
3890 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
3891
3892         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
3893
3894 2004-06-23  Richard Henderson  <rth@redhat.com>
3895
3896         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
3897
3898 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3899
3900         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
3901         now bool instead of int.
3902         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
3903         * trans.c (gnu_switch_label_stack): New function.
3904         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
3905         elaboration of renamed entity returns.
3906         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
3907         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
3908         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
3909         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
3910         DECL_SIZE_UNIT and simplify variable-sized case.
3911         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3912         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
3913         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
3914         (build_unit_elab): Disable for now.
3915         * utils.c (mark_visited): New function.
3916         (pushdecl): Walk tree to call it for global decl.
3917         (update_pointer_to): Update all variants of pointer and ref types.
3918         Add arg to COMPONENT_REF.
3919         (convert): Likewise.
3920         Move check for converting between variants lower down.
3921         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
3922         (build_allocator): Don't force type of MODIFY_EXPR.
3923         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
3924         put_var_into_stack.
3925
3926 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3927
3928         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
3929         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
3930         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
3931         subprograms.
3932         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
3933         all callers changed.
3934         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
3935         the way that EXIT_STMT finds the loop label.
3936         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
3937         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
3938         (add_stmt): Use annotate_with_locus insted of setting directly.
3939         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
3940         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
3941         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
3942         (build_vms_descriptor): Add extra args to ARRAY_REF.
3943         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
3944         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
3945         New cases.
3946         (build_binary_op): Don't make explicit CONVERT_EXPR.
3947         Add extra rgs to ARRAY_REF.
3948
3949 2004-06-14  Pascal Obry  <obry@gnat.com>
3950
3951         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
3952         Windows.  Fix minor typo.
3953
3954         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
3955         which is now supported on Windows. With this implementation using the
3956         Library Project feature is no different on Windows than on UNIX.
3957
3958 2004-06-14  Vincent Celier  <celier@gnat.com>
3959
3960         * makegpr.adb (Compile_Sources): Nothing to do when there are no
3961         non-Ada sources.
3962
3963         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
3964
3965         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
3966         found, show the project name and the path of the previously parsed
3967         project file.
3968
3969 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
3970
3971         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
3972         array, avoid copying the actual before the call.
3973
3974 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
3975
3976         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
3977         Instead, allocate memory on worst-case alignment assumptions, and then
3978         return an aligned address within the allocated zone.
3979
3980 2004-06-14  Robert Dewar  <dewar@gnat.com>
3981
3982         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
3983         elab entities in predefined units in No_Run_Time_Mode.
3984         (Gen_Adainit_C): Same fix
3985         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
3986         units in No_Run_Time_Mode
3987         (Gen_Elab_Calls_C): Same fix
3988
3989         * symbols-vms-alpha.adb: Minor reformatting
3990
3991         * g-debpoo.ads: Minor reformatting
3992
3993         * lib.adb (In_Same_Extended_Unit): Version working on node id's
3994
3995         * lib.ads (In_Same_Extended_Unit): Version working on node id's
3996
3997         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
3998         working on nodes.
3999
4000         * make.adb: Minor reformatting
4001
4002         * par-ch12.adb: Minor reformatting
4003
4004         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
4005
4006         * prj-strt.adb: Minor reformatting
4007
4008         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
4009         be more general.
4010
4011         * sem_attr.adb: Minor reformatting
4012
4013         * sem_ch7.adb: Minor reformatting
4014
4015         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
4016         for type in the same unit as the object declaration.
4017
4018         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
4019         static string expressions and not just string literals.
4020         Minor reformatting
4021         (Set_Warning): Reset restriction warning flag for restriction pragma
4022         Implement pragma Profile_Warnings
4023         Implement pragma Profile (Restricted)
4024         Give obolescent messages for old restrictions and pragmas
4025
4026         * snames.h, snames.ads, snames.adb: Add new entry for pragma
4027         Profile_Warnings.
4028
4029         * s-rident.ads: Add declarations for restrictions required by profile
4030         Restricted and profile Ravenscar.
4031
4032         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
4033
4034         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
4035         configuration pragmas.
4036
4037 2004-06-11  Vincent Celier  <celier@gnat.com>
4038
4039         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
4040         gnatsym, when symbol policy is Restricted.
4041
4042         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
4043         gnatsym, when symbol policy is Restricted.
4044
4045         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
4046         read the symbol file.
4047         (Finalize): Fail in symbol policy Restricted if a symbol in the original
4048         symbol file is not in the object files. Do not create a new symbol file
4049         when symbol policy is Restricted.
4050
4051         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
4052         in Scng.
4053
4054         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
4055         Restricted.
4056         (Usage): Line for new switch -R
4057
4058         * make.adb (Initialize): When the platform is not VMS, add the
4059         directory where gnatmake is invoked in the front of the path, if
4060         gnatmake is invoked with directory information.  Change the Scan_Args
4061         while loop to a for loop.
4062         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
4063         if Depth is equal or greater than the proposed depth, there is nothing
4064         to do.
4065         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
4066         instead of 0.
4067
4068         * prj.ads: Add new symbol policy Restricted.
4069
4070         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
4071         with the new parameters Check_All_Labels and Case_Location.
4072
4073         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
4074         (Library_Symbol_File needs to be defined).
4075
4076         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
4077         and Case_Location If Check_All_Labels is True, check that all values of
4078         the string type are used, and output warning(s) if they are not.
4079
4080         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
4081         and Case_Location.
4082
4083         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
4084
4085         * gnat_ugn.texi: Update documentation about the library directory in
4086         Library Projects.
4087
4088         * makegpr.adb (Display_Command): In verbose mode, also display the
4089         value of the CPATH env var, when the compiler is gcc.
4090         (Initialize): Change the Scan_Args while loop to a for loop
4091         (Compile_Individual_Sources): Change directory to object directory
4092         before compilations.
4093
4094         * symbols.ads: New symbol policy Restricted.
4095
4096 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
4097
4098         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
4099         is now taken care of internally in the Exception_Propagation package
4100         and does not require clients assistance any more.
4101
4102         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
4103         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
4104         functions. Helpers to maintain a predicate required in the handling of
4105         occurrence transfer between tasks.
4106         This is now handled internally and does not require clients assistance
4107         for the setup/propagate separation anymore.
4108         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
4109         allocation strategy, handle the Setup_And_Not_Propagated predicate and
4110         document.
4111
4112         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
4113         raise_after_setup, now that everything is handled internally within the
4114         setup/propagation engine.
4115
4116 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
4117
4118         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
4119         Add additional conditions for the case of an actual being a simple
4120         name or literal. Improve inlining by preventing the generation
4121         of temporaries with a short lifetime (one use).
4122
4123 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
4124
4125         PR ada/15587
4126
4127         * einfo.ads: Minor comment updates for Has_Completion and
4128         E_Constant list of flags.
4129
4130         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
4131         and constant redeclarations now set the Has_Completion flag of their
4132         defining identifiers.
4133
4134         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
4135         Inspect_Deferred_Constant_Completion.
4136         Used to detect private deferred constants that have not been completed
4137         either by a constant redeclaration or pragma Import. Emits error message
4138         "constant declaration requires initialization expression".
4139
4140         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
4141         completes a deferred constant.
4142
4143 2004-06-11  Geert Bosch  <bosch@gnat.com>
4144
4145         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
4146
4147         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
4148         calculating exponent for scaling denormal numbers.
4149         (Leading_Part): Properly raise Constraint_Error for zero or negative
4150         Adjustment.
4151         (Remainder): Properly raise Constraint_Error for zero divisor.
4152
4153 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
4154
4155         * sem_util.adb: Minor reformatting.
4156
4157         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
4158         dereference when accessing the entry parameter record.
4159         (Check_Array_Type): Always check for possible implicit dereference.
4160         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
4161         Abort if a pointer is still present (denoting that an implicit
4162         dereference was left in the tree by the front-end).
4163
4164         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
4165         dereference when accessing the entry parameter record.
4166         (Check_Array_Type): Always check for possible implicit dereference.
4167         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
4168         Abort if a pointer is still present (denoting that an implicit
4169         dereference was left in the tree by the front-end).
4170
4171 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
4172
4173         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
4174         message, like the compiler itself does. Easier to parse the output.
4175
4176         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
4177
4178         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
4179         be base names, and not includes directories.
4180
4181 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
4182
4183         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
4184         so that dependencies are properly taken into account by make.
4185
4186 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
4187
4188         PR ada/15622
4189         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
4190         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
4191
4192 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
4193
4194         * Makefile.in (install-gnatlib): install target-specific run-time files.
4195
4196         * Make-lang.in: Remove obsolete targets.
4197
4198 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
4199
4200         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
4201         specification, to catch misuses of program unit names.
4202
4203         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
4204         superfluous conversions in an instance.
4205
4206 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
4207
4208         PR ada/15403
4209
4210         * sem_ch12.adb (Save_References): If operator node has been folded to
4211         enumeration literal, associated_node must be discarded.
4212
4213 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
4214
4215         * s-stchop-vxworks.adb: Add required pragma Convention to
4216         Task_Descriptor because it is updated by a C function.
4217
4218 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
4219
4220         PR ada/15568
4221
4222         * Makefile.in: Remove target specific SO_OPT on IRIX
4223
4224 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4225
4226         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
4227         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
4228         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
4229         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
4230         (STMT_STMT, USE_STMT): New statement codes.
4231         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
4232         * ada-tree.h: Reflect above changes.
4233         (struct tree_loop_id): Deleted.
4234         (union lang_tree_node, struct lang_decl, struct lang_type):
4235         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
4236         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
4237         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
4238         (IS_ADA_STMT): New macro.
4239         * decl.c (annotate_decl_with_node): New function.
4240         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
4241         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
4242         Call add_stmt_with_node to do needed assignments.
4243         Add call to update setjmp buffer directly, not via EXPR_STMT.
4244         (maybe_variable): Argment GNAT_NODE deleted.
4245         * gigi.h (maybe_variable): Likewise.
4246         (make_transform, add_stmt_with_node, set_block_for_group): New.
4247         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
4248         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
4249         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
4250         (set_lineno, set_lineno_from_sloc): Likewise.
4251         (record_code_position, insert_code_for): Likewise.
4252         (gnat_poplevel): Now returns void.
4253         (end_subprog_body): Now takes argument.
4254         * misc.c (cgraph.h, tree-inline.h): New includes.
4255         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
4256         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
4257         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
4258         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
4259         (gnat_parse_file): Don't set immediate_size_expand.
4260         Call cgraph functions.
4261         (gnat_expand_expr): Remove most cases.
4262         (record_code_position, insert_code_for): Remove from here.
4263         * trans.c (toplev.h, tree-gimple.h): Now included.
4264         (discard_file_names): Deleted.
4265         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
4266         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
4267         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
4268         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
4269         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
4270         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
4271         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
4272         (set_block_for_group, add_stmt_list): Likewise.
4273         (start_stmt_group): Renamed from start_block_stmt.
4274         (end_stmt_group): Likewise, from end_block_stmt.
4275         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
4276         (gigi): Don't set discard_file_names or call set_lineno.
4277         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
4278         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
4279         Numerous changes throughout to reflect new names and complete
4280         function-at-a-time implementation.
4281         (gnat_expand_stmt): Delete or comment out all cases.
4282         (process_inlined_subprograms): Use add_stmt.
4283         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
4284         call set_lineno; also remove unneeded block handling.
4285         (process_type): Remove unneeded block handling.
4286         (build_unit_elab): Remove calls to deleted functions.
4287         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
4288         (tree-dump.h): Likewise.
4289         (struct ada_binding_level): Add field jmpbuf_decl.
4290         (gnat_define_builtin, gnat_install_builtins): New.
4291         (gnat_gimplify_function, gnat_finalize): Likewise.
4292         (gnat_poplevel): No longer return BLOCK, set it instead.
4293         Remove code dealing with nested functions.
4294         (gnat_init_decl_processing): Also set size_type_node.
4295         Call gnat_install_builtins.
4296         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
4297         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
4298         Remove special-case for "main".
4299         (end_subprog_body): Add arg and rework for tree-ssa.
4300         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
4301         Add case for BOOLEAN_TYPE.
4302         * utils2.c (rtl.h): Now include.
4303         (build_call_raise): Test Debug_Flag_NN directly.
4304         (build_call_alloc_dealloc): Don't use local stack allocation for now.
4305         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
4306         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
4307
4308 2004-06-07  Robert Dewar  <dewar@gnat.com>
4309
4310         * a-direct.ads, einfo.ads: Minor comment updates
4311
4312         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4313         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
4314         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
4315         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
4316         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
4317
4318         * s-interr-sigaction.adb: Remove unreferenced variable
4319         (Attached_Interrupts).  Minor reformatting.
4320         Avoid use of variable I (replace by J).
4321
4322         * par-ch10.adb: Fix text of one error message
4323
4324         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
4325         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
4326         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
4327         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
4328         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
4329         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
4330         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
4331         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4332         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
4333         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
4334         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
4335         2005 support.
4336
4337 2004-06-07  Doug Rupp  <rupp@gnat.com>
4338
4339         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
4340
4341         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
4342
4343         * mlib-tgt-vms-ia64.adb: New file.
4344
4345         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
4346         Add mlib-tgt-vms-ia64.adb
4347         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
4348         Move to alpha specific ifeq section.
4349         Add VMS specific versions of symbols.adb
4350         Renaming of 5q vms files.
4351
4352         * 5qsystem.ads renamed to system-vms_64.ads.
4353
4354 2004-06-07  Vincent Celier  <celier@gnat.com>
4355
4356         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
4357         explain that when a time of day corresponding to the non existing hour
4358         on the day switching to DST is specified, Split may return a different
4359         value for Seconds.
4360
4361         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
4362         to GNAT PRETTY.
4363
4364         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
4365         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
4366
4367         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
4368         to False.
4369         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
4370         the linking options.
4371         (Build_Library.Check_Libs): On VMS, if there is a dependency on
4372         g-trasym.ads, set Gtrasymobj_Needed to True.
4373
4374         * prj-attr.adb: Add new package Metrics for gnatmetric
4375
4376         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
4377         canonical case to take into account files with upper case characters on
4378         Windows.
4379         (Ada_Check): Load the reference symbol file name in the name buffer to
4380         check it, not the symbol file name.
4381
4382         * snames.ads, snames.adb: Add standard name Metrics (name of project
4383         file package for gnatmetric).
4384
4385         * vms_conv.ads: Add Metric to Comment_Type
4386
4387         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
4388
4389         * vms_data.ads: Add qualifiers for GNAT METRIC
4390
4391         * makegpr.adb (Link_Executables): Take into account the switches
4392         specified in package Linker of the main project.
4393
4394 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
4395
4396         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
4397         the index of the last element is Units.Last, not Units.Table'Last
4398         (which is usually not a valid index within the actually allocated
4399         storage for the table).
4400
4401         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
4402         determines whether to generate a call to a checked storage pool
4403         Dereference action.
4404         Generate such a call only for a dereference that either comes from
4405         source, or is the result of rewriting a dereference that comes from
4406         source.
4407
4408 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
4409
4410         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
4411
4412 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
4413
4414         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
4415         file level, elaborate the stride for inner dimensions in alignment
4416         units, not bytes.
4417
4418         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
4419         in a comment.
4420
4421 2004-06-07  Javier Miranda  <miranda@gnat.com>
4422
4423         * exp_ch6.adb: Correct wrong modification in previous patch
4424
4425 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
4426
4427         * g-trasym.ads: Corrected comment to properly reflect level of support
4428         on VMS.
4429
4430 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
4431
4432         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
4433         includes case of a variable referenced on the left hand side of an
4434         assignment, therefore remove redundant code. Variables and prefixes of
4435         indexed or selected components are now marked as referenced on left
4436         hand side. Warnings are now properly emitted when variables or prefixes
4437         are assigned but not read.
4438
4439         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
4440         left hand side referenced variables. Private access types do not
4441         produce the warning "variable ... is assigned but never read".
4442         Add also additional checks to left hand side referenced variables.
4443         Aliased, renamed objects and access types do not produce the warning
4444         "variable ... is assigned but never read" since other entities may read
4445         the memory location.
4446
4447 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
4448
4449         * Makefile.in: In the powerpc/vxworks-specific section, restore
4450         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
4451         by mistake).
4452
4453 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
4454
4455         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
4456         predefined operators.
4457         Removes spurious type errors from g-trasym-vms.adb.
4458
4459         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
4460         distinct from the operator appearing in the source, call appropriate
4461         routine to insert conversions when needed, and complete resolution of
4462         node.
4463         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
4464         interpretations for rewritten right operand.
4465         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
4466         the other operand is overloaded and the context is a type conversion.
4467
4468 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4469
4470         * ada-tree.def (BLOCK_STMT): Now has two operands.
4471         (BREAK_STMT): New.
4472
4473         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
4474
4475         * gigi.h: (gnat_poplevel): Now returns a tree.
4476
4477         * trans.c (end_block_stmt): Add arg; all callers changed.
4478         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
4479         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
4480         (add_stmt): Set TREE_TYPE.
4481         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
4482         (gnat_expand_stmt, case BREAK_STMT): New case.
4483
4484         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
4485
4486 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
4487
4488         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
4489         procedure Set_Stack_Size that is not needed.
4490
4491 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
4492
4493         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
4494         used for gnatpp input file and for the files upon which it depends
4495
4496 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
4497
4498         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
4499
4500 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
4501
4502         * gnatvsn.ads: Bump version numbers appropriately.
4503         Add new build type.
4504
4505 2004-06-07  Pascal Obry  <obry@gnat.com>
4506
4507         * gnat_ugn.texi: Improve comments about imported names and link names
4508         on Windows. Add a note about the requirement to use -k gnatdll's option
4509         when working with a DLL which has stripped stdcall symbols (no @nn
4510         suffix).
4511
4512 2004-05-27  Vincent Celier  <celier@gnat.com>
4513
4514         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
4515         COMMENTS_LAYOUT=UNTOUCHED
4516
4517         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
4518         symbols-vms-alpha.adb
4519
4520 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
4521
4522         * sem.ads: Clarify documentation on checks suppression.
4523
4524         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
4525
4526 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
4527
4528         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
4529         the case of multiple derivations.
4530         (Is_Object_Reference): For a selected component, verify that the prefix
4531         is itself an object and not a value.
4532
4533         * sem_ch12.adb (Same_Instantiated_Constant): New name for
4534         Same_Instantiated_Entity.
4535         (Same_Instantiated_Variable): Subsidiary to
4536         Check_Formal_Package_Instance, to recognize actuals for in-out generic
4537         formals that are obtained from a previous formal package.
4538         (Instantiate_Subprogram_Body): Emit proper error when
4539         generating code and the proper body of a stub is missing.
4540
4541         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
4542         has a universal interpretation, do the disambiguation here.
4543
4544         * exp_ch4.adb (Expand_N_Type_Conversion,
4545         Expand_N_Unchecked_Type_Conversion): Special handling when target type
4546         is Address, to avoid typing anomalies when Address is a visible integer
4547         type.
4548
4549         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
4550         to determine whether a subprogram should not be marked Pure, even when
4551         declared in a pure package.
4552
4553 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
4554
4555         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
4556
4557         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
4558         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
4559         Update the documentation about the Ravenscar profile, following the
4560         definition found in AI-249.
4561
4562         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
4563         setting the Profile (Ravenscar). This must be done in addition to
4564         setting the required restrictions.
4565
4566         * rtsfind.ads: Add the set of operations defined in package
4567         Ada.Interrupts.
4568
4569         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
4570         restriction.
4571
4572 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
4573
4574         lang-specs.h: Always require -c or -S and always redirect to /dev/null
4575         if -gnatc or -gnats is passed.
4576
4577 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
4578
4579         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
4580         a significant reference. Warnings are now properly emitted when a
4581         discriminated type is not referenced.
4582
4583         * lib-xref.adb (Generate_Reference): A deferred constant completion,
4584         record representation clause or record type discriminant does not
4585         produce a reference to its corresponding entity. Warnings are now
4586         properly emitted when deferred constants and record types are not
4587         referenced.
4588
4589 2004-05-27  Geert Bosch  <bosch@gnat.com>
4590
4591         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
4592         Fixes ACATS Annex G tests.
4593
4594 2004-05-27  Robert Dewar  <dewar@gnat.com>
4595
4596         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
4597         handling WITH
4598
4599 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
4600
4601         * s-interr.adb (Server_Task): Take into account case of early return
4602         from sigwait under e.g. linux.
4603
4604 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
4605
4606         * gnat_ugn.texi: Add description for the new gnatpp options:
4607          -rnb - replace the original source without creating its backup copy
4608          -c0 - do not format comments
4609
4610 2004-05-24  Geert Bosch  <bosch@gnat.com>
4611
4612         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
4613         with 192 bits of precision, sufficient to reduce a double-extended
4614         arguments X with a maximum relative error of T'Machine_Epsilon, for X
4615         in -2.0**32 .. 2.0**32.
4616         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
4617         reduction by the processor, which only uses a 68-bit approximation of
4618         Pi.
4619         (Tan): Always reduce arguments and compute function either using
4620         the processor's fptan instruction, or by dividing sin and cos as needed.
4621
4622 2004-05-24  Doug Rupp  <rupp@gnat.com>
4623
4624         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
4625         gcc error on 32/64 bit VMS.
4626
4627 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
4628
4629         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
4630         since this is what we get for stack overflows although not documented
4631         as such.
4632         Document the issues which may require adjustments to our signal
4633         handlers.
4634
4635 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
4636
4637         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
4638         enclosing dynamic scope if the instantiation is within a generic unit.
4639
4640 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
4641
4642         * exp_dbug.ads: Fix typo.
4643
4644         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
4645         Rename it to its proper name: system-linux-ia64.ads
4646         (stamp-gnatlib1): Remove extra target specific run time files when
4647         setting up the rts directory.
4648
4649 2004-05-24  Javier Miranda  <miranda@gnat.com>
4650
4651         * einfo.ads, einfo.adb (Limited_Views): Removed.
4652         (Limited_View): New attribute that replaces the previous one. It is
4653         now a bona fide package with the limited-view list through the
4654         first_entity and first_private attributes.
4655
4656         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
4657         limited-private-with clause.
4658         (Install_Limited_Withed_Unit): Install the private declarations of a
4659         limited-private-withed package. Update the installation of the shadow
4660         entities according to the new structure (see Build_Limited_Views)
4661         (Build_Limited_Views): Replace the previous implementation of the
4662         limited view by a package entity that references the first shadow
4663         entity plus the first shadow private entity (required for limited-
4664         private-with clause)
4665         (New_Internal_Shadow_Entity): Code cleanup.
4666         (Remove_Limited_With_Clause): Update the implementation to undo the
4667         new work carried out by Build_Limited_Views.
4668         (Build_Chain): Complete documentation.
4669         Replace Ada0Y by Ada 0Y in comments
4670         Minor reformating
4671
4672         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
4673         types the level of accessibility depends on the enclosing type
4674         declaration.
4675
4676         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
4677         entities. Complete documentation of previous change.
4678
4679 2004-05-24  Robert Dewar  <dewar@gnat.com>
4680
4681         * namet.adb: Minor reformatting
4682         Avoid use of name I (replace by J)
4683         Minor code restructuring
4684
4685         * sem_ch6.adb: Minor reformatting
4686
4687         * lib-writ.adb: Do not set restriction as active if this is a
4688         Restriction_Warning case.
4689
4690         * sem_prag.adb: Reset restriction warning flag if real pragma
4691         restriction encountered.
4692
4693         * s-htable.adb: Minor reformatting
4694         Change rotate count to 3 in Hash (improves hash for small strings)
4695
4696         * 5qsystem.ads: Add comments for type Address (no literals allowed).
4697
4698         * gnat_ugn.texi: Add new section of documentation "Code Generation
4699         Control", which describes the use of -m switches.
4700
4701 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
4702
4703         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
4704         through the DECL_INITIAL for renamed variables.
4705
4706 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
4707
4708         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
4709
4710 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
4711
4712         * exp_dbug.ads: Correct comments concerning handling of overloading,
4713         since we no longer use $ anymore.
4714
4715 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
4716
4717         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
4718         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
4719         with illegal subunits.
4720
4721 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
4722
4723         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
4724         body with front-end inlining enabled, check whether an inline pragma
4725         appears immediately after the body and applies to it.
4726
4727         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
4728         enabled and the pragma appears after the body of the subprogram.
4729
4730 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4731
4732         Part of function-at-a-time conversion
4733
4734         * misc.c (adjust_decl_rtl): Deleted.
4735         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
4736         Define.
4737
4738         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
4739         (add_decl_stmt, add_stmt, block_has_vars): New functions.
4740         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
4741
4742         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
4743         when making a decl.
4744         (gnat_to_gnu_entity): Likewise.
4745         Use add_stmt to update setjmp buffer.
4746         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
4747         flush_addressof.
4748         No longer call adjust_decl_rtl.
4749         (DECL_INIT_BY_ASSIGN_P): New macro.
4750         (DECL_STMT_VAR): Likewise.
4751
4752         * trans.c (gigi): Call start_block_stmt to make the outermost
4753         BLOCK_STMT.
4754         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
4755         Call start_block_stmt and end_block_stmt temporarily.
4756         Use gnat_expand_stmt instead of expand_expr_stmt.
4757         (add_decl_stmt): New function.
4758         (tree_transform): Call it.
4759         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
4760         (end_block_stmt): Set type and NULL_STMT.
4761         (gnat_expand_stmt): Make recursize call instead of calling
4762         expand_expr_stmt.
4763         (gnat_expand_stmt, case DECL_STMT): New case.
4764         (set_lineno_from_sloc): Do nothing if global.
4765         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
4766         (start_block_stmt, add_stmt, end_block_stmt): New functions.
4767         (build_block_stmt): Call them.
4768         (gnat_to_code): Don't expand NULL_STMT.
4769         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
4770         args.
4771         (tree_transform): Likewise.
4772         (tree_transform, case N_Null_Statement): Return NULL_STMT.
4773         (gnat_expand_stmt, case NULL_STMT): New case.
4774         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
4775         IF_STMT_TRUE.
4776
4777         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
4778         TREE_ADDRESSABLE.
4779
4780         * utils.c (create_var_decl): Do not call expand_decl or
4781         expand_decl_init.
4782         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
4783         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
4784         here.
4785         (struct e_stack): Add chain_next to GTY.
4786         (struct binding_level): Deleted.
4787         (struct ada_binding_level): New struct.
4788         (free_block_chain): New.
4789         (global_binding_level, clear_binding_level): Deleted.
4790         (global_bindings_p): Rework to see if no chain.
4791         (kept_level_p, set_block): Deleted.
4792         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
4793         new data structure and work directly on BLOCK node.
4794         (gnat_poplevel): Similarly.
4795         (get_decls): Look at BLOCK_VARS.
4796         (insert_block): Work directly on BLOCK node.
4797         (block_has_var): New function.
4798         (pushdecl): Rework for new binding structures.
4799         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
4800         poplevel.
4801         (build_subprog_body): Likewise.
4802         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
4803
4804         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
4805
4806         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
4807         (DECL_STMT_VAR): Likewise.
4808
4809 2004-05-17  Robert Dewar  <dewar@gnat.com>
4810
4811         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
4812         procedure
4813
4814         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
4815         of restriction synonyums by using
4816         Restrict.Process_Restriction_Synonyms.
4817
4818         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
4819
4820         * s-restri.ads (Tasking_Allowed): Correct missing comment
4821
4822         * s-rident.ads: Add entries for restriction synonyms
4823
4824         * ali.adb: Fix some problems with badly formatted ALI files that can
4825         result in infinite loops.
4826
4827         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
4828         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
4829         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
4830         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
4831         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
4832         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
4833         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
4834         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
4835         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
4836         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
4837         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
4838         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
4839         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
4840         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
4841         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
4842         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
4843         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
4844         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4845         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
4846         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
4847         to Task_Id (minor cleanup).
4848
4849 2004-05-17  Vincent Celier  <celier@gnat.com>
4850
4851         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
4852         directory separator.
4853
4854         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
4855         project being extended, if Languages is not declared in extending
4856         project.
4857
4858 2004-05-17  Javier Miranda  <miranda@gnat.com>
4859
4860         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
4861         limited view of a visible sibling.
4862
4863 2004-05-14  Robert Dewar  <dewar@gnat.com>
4864
4865         * gnat_ugn.texi: Minor change to -gnatS documentation
4866
4867         * sprint.adb: Remove some instances of Assert (False) and for this
4868         purpose replace them by output of a ??? string.
4869
4870         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
4871         Assert (False).
4872
4873         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
4874         flag processing. This was suppressing required dependencies in
4875         No_Run_Time mode and is not needed since the binder does not generate
4876         references for things in libgnat anyway.
4877
4878         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
4879         warning.
4880
4881 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
4882
4883         * gnat_ugn.texi: Document AIX-specific issue with initialization of
4884         resolver library.
4885
4886         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
4887         action for the case of an actual parameter in an init proc call.
4888
4889 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
4890
4891         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
4892         subtype, check visible entities in base type.
4893
4894         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
4895         actions if the object is a renaming.
4896
4897         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
4898         Check_Formal_Package_Instance, to determine more precisely when the
4899         formal and the actual denote the same entity.
4900
4901 2004-05-14  Javier Miranda  <miranda@gnat.com>
4902
4903         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
4904
4905         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
4906         corresponding to a private_with must be removed from visibility; it
4907         will be made visible later, just before we analyze the private part of
4908         the package.
4909         (Check_Private_Child_Unit): Allow private_with clauses in public
4910         siblings.
4911         (Install_Siblings): Make visible the private entities of private-withed
4912         siblings.
4913         (Install_Withed_Unit): Do not install the private withed unit if we
4914         are compiling a package declaration and the Private_With_OK flag was
4915         not set by the caller. These declarations will be installed later,
4916         just before we analyze the private part of the package.
4917
4918         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
4919         during the evaluation of the expression that initializes the object,
4920         decorate it with the expected type to avoid cascade errors.
4921         Code cleanup.
4922
4923         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
4924         subprogram we have to install the private_with clauses after its
4925         specification has been analyzed (as documented in AI-262.TXT).
4926
4927         * sem_ch8.adb (Has_Private_With): New function. Determines if the
4928         current compilation unit has a private with on a given entity.
4929         (Find_Direct_Name): Detect the Beaujolais problem described in
4930         AI-262.TXT
4931
4932         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
4933         provides the functionality of the function Is_Ancestor that was
4934         previously available in sem_ch10. It has been renamed to avoid
4935         overloading.
4936
4937         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
4938
4939 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4940
4941         * utils.c (build_vms_descriptor): Use SImode pointers.
4942
4943 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
4944
4945         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
4946
4947 2004-05-14  GNAT Script  <nobody@gnat.com>
4948
4949         * Make-lang.in: Makefile automatically updated
4950
4951 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
4952
4953         Renaming of target specific files for clarity
4954
4955         * Makefile.in: Rename GNAT target specific files.
4956
4957         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
4958         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
4959         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
4960         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
4961         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
4962         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
4963         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
4964         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
4965         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
4966         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
4967         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
4968         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
4969         51osinte.adb, 51osinte.ads, 51system.ads,
4970         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
4971         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
4972         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
4973         56tpopsp.adb, 57system.ads, 58system.ads,
4974         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
4975         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
4976         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
4977         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
4978         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
4979         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
4980         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
4981         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
4982         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
4983         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
4984         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
4985         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
4986         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
4987         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
4988         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
4989         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
4990         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
4991         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
4992         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
4993         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
4994         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
4995         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
4996         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
4997         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
4998         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
4999         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
5000         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
5001         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
5002         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
5003         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
5004         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
5005         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
5006         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
5007         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
5008         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
5009         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
5010         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
5011         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
5012         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
5013         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
5014
5015         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
5016         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
5017         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
5018         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
5019         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
5020         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
5021         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
5022         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
5023         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
5024         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
5025         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
5026         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
5027         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
5028         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
5029         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
5030         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
5031         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
5032         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
5033         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
5034         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
5035         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5036         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
5037         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
5038         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
5039         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
5040         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
5041         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
5042         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
5043         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
5044         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
5045         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
5046         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
5047         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
5048         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
5049         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
5050         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
5051         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
5052         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
5053         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
5054         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
5055         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
5056         s-osinte-vms.ads, s-osinte-vxworks.adb,
5057         s-osinte-vxworks.ads, s-osprim-mingw.adb,
5058         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
5059         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
5060         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
5061         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
5062         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
5063         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
5064         s-stchop-vxworks.adb, s-taprop-dummy.adb,
5065         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
5066         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
5067         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
5068         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5069         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
5070         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
5071         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
5072         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
5073         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
5074         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
5075         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
5076         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
5077         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
5078         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
5079         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
5080         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
5081         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
5082         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
5083         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
5084         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
5085         system-irix-o32.ads, system-linux-x86_64.ads,
5086         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
5087         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
5088         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
5089         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
5090         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
5091         system-vxworks-mips.ads, system-vxworks-ppc.ads,
5092         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
5093         above.
5094
5095 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
5096
5097         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
5098
5099 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
5100
5101         Merge from tree-ssa-20020619-branch.
5102
5103         * config-lang.in (boot_language, build_by_default): Set
5104         to no.
5105         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
5106         (max_size): Add static chain op for call_expr.
5107
5108 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
5109
5110         PR target/15331
5111         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
5112
5113 2004-05-11  Roger Sayle  <roger@eyesopen.com>
5114
5115         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
5116         COND_EXPR.
5117
5118 2004-05-10  Doug Rupp  <rupp@gnat.com>
5119
5120         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
5121         system.aux_dec.
5122
5123         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
5124
5125         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
5126
5127         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
5128         Fixes undefined symbols in IA64 gnatlib.
5129
5130         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
5131
5132         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
5133         Short_Address). This will be moved to system.auxdec.
5134
5135 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
5136
5137         * sem_util.adb: Replace test for presence of a node that is always
5138         present with a call to Discard_Node.
5139
5140         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
5141         Analyze on the library unit node after generation of distribution stub
5142         constructs.  The call was a no-op because Unit_Node has already been
5143         Analyzed, and the tree fragments for the distribution stubs are
5144         analyzed as they are inserted in Exp_Dist.
5145         Update comment regarding to distribution stubs to reflect that we
5146         do not generate stub in separate files anymore.
5147
5148         * einfo.ads: Clarify the fact that a tagged private type has the
5149         E_Record_Type_With_Private Ekind.
5150
5151         * erroutc.adb: Minor reformatting
5152
5153         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
5154         values if line length is increased using -gnatyM (noticed during code
5155         reading).
5156
5157         * eval_fat.adb: Minor reformatting
5158         Put spaces around exponentiation operator
5159
5160 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
5161
5162         PR ada/15005
5163         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
5164         has been rewritten as an explicit dereference, retrieve type of
5165         original node to check for possibly unconstrained record type.
5166
5167 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
5168
5169         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
5170         overriding, use the operation of the parent unconditionally.
5171
5172         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
5173         operation when either operand is a literal, to avoid further
5174         ambiguities.
5175
5176         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
5177         overridden by a previous explicit declaration, mark the previous entity
5178         as overriding.
5179
5180         * sem_disp.adb (Check_Dispatching_Operation): New predicate
5181         Is_Visibly_Controlled, to determine whether a declaration of a
5182         primitive control operation for a derived type overrides an inherited
5183         one. Add warning if the explicit declaration does not override.
5184
5185 2004-05-10  Vincent Celier  <celier@gnat.com>
5186
5187         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
5188         some cases when the sources are no longer present.
5189
5190         * make.adb (Collect_Arguments): Fail if an external source, not part
5191         of any project need to be compiled, when switch -x has not been
5192         specified.
5193
5194         * makeusg.adb: Document new switch -x
5195
5196         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
5197         defaulted to False.
5198
5199         * switch-m.adb (Scan_Make_Switches): New switch -x
5200
5201         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
5202         gnatmake switch -x.
5203
5204         * gnat_ugn.texi: Document new gnatmake switch -x
5205
5206 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
5207
5208         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
5209
5210         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
5211         (process_attributes): Likewise.
5212
5213 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
5214
5215         * s-inmaop.ads: Fix spelling mistake in one of the comments.
5216
5217 2004-05-10  Robert Dewar  <dewar@gnat.com>
5218
5219         * gnat_ugn.texi: Document that for config pragma files, the maximum
5220         line length is always 32767.
5221
5222         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
5223         literals is now allowed.
5224
5225         * gnat-style.texi: Remove statement about splitting long lines before
5226         an operator rather than after, since we do not follow this rule at all.
5227         Clarify rule (really lack of rule) for spaces around exponentiation
5228
5229         * sem_elim.adb: Allow concatenation of string literals as well as a
5230         single string literal for pragma arguments.
5231
5232         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
5233
5234         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
5235         written for append case.
5236
5237         * frontend.adb: Changes to avoid checking max line length in config
5238         pragma files.
5239
5240         * g-os_lib.ads: Minor reformatting
5241
5242         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
5243         wrong in any case. Instead use standard value. Noticed during code
5244         reading.
5245
5246         * opt.ads (Max_Line_Length): New field, used to implement removal of
5247         limitation on length of lines when scanning config pragma files.
5248
5249         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
5250         makeutl.ads, makeutl.adb: Minor reformatting
5251
5252         * scn.adb: Do not check line length while scanning config pragma files
5253         Do not check line length while scanning out license information
5254
5255         * scng.adb: Changes to avoid line length checks while parsing config
5256         pragma files.
5257
5258 2004-05-10  GNAT Script  <nobody@gnat.com>
5259
5260         * Make-lang.in: Makefile automatically updated
5261
5262 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
5263
5264         * osint.adb (Find_Program_Name): Fix handling of VMS version
5265         number.
5266
5267 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
5268
5269         * g-os_lib.ads (Invalid_Time): New constant
5270
5271         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
5272         return OS_Time instead of time_t to match what is imported by Ada.
5273         Now return -1 if the file doesn't exist, instead of a random value
5274
5275 2004-05-05  Robert Dewar  <dewar@gnat.com>
5276
5277         * usage.adb: Add line for -gnatR?s switch
5278
5279         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
5280
5281         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
5282         and for Match (Data_First, Data_last)
5283
5284         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
5285         written when we are dealing with multi-unit files.
5286
5287 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
5288
5289         * Makefile.in: Remove unused targets and variables.
5290
5291 2004-05-05  Vincent Celier  <celier@gnat.com>
5292
5293         * switch-m.adb: New gnatmake switch -eI
5294
5295         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
5296         of new gnatmake switch -eInnn.
5297
5298         * makegpr.adb: Take into account new parameters Index and Src_Index in
5299         Prj.Util.
5300
5301         * clean.adb: Implement support for multi-unit sources, including new
5302         switch -i.
5303
5304         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
5305         Src_Index.
5306
5307         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
5308         (Extract_From_Q): New out parameter Index
5309         (Mark, Is_Marked): Subprograms moved to Makeutl
5310         (Switches_Of): New parameter Source_Index
5311         (Add_Switch): New parameter Index
5312         (Check): New parameter Source_Index
5313         (Collect_Arguments): New parameter Source_Index
5314         (Collect_Arguments_And_Compile): New parameter Source_Index
5315         (Compile): New parameter Source_Index
5316         Put subprograms in alphabetical order
5317         Add support for multi-source sources, including in project files.
5318
5319         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
5320         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
5321         Make.
5322
5323         * makeusg.adb: New gnatmake switch -eInnn
5324
5325         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
5326         Prj.Util.Value_Of.
5327
5328         * opt.ads (Main_Index): New variable, defaulted to 0.
5329
5330         * osint.ads, osinte.adb (Add_File): New parameter Index
5331         (Current_Source_Index): New function
5332
5333         * prj.adb: Take into account new components Index and Src_Index
5334
5335         * prj.ads (String_Element): New component Index
5336         (Variable_Value): New component Index
5337         (Array_Element): New component Src_Index
5338
5339         * prj-attr.adb: Indicate that optional index may be specified for
5340         attributes Main, Executable, Spec, Body and some of Switches.
5341
5342         * prj-attr.ads (Attribute_Kind): New values for optional indexes
5343         (Attribute_Record): New component Optional_Index
5344
5345         * prj-com.ads (File_Name_Data): New component Index
5346
5347         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
5348
5349         * prj-env.adb (Put): Output optional index
5350
5351         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
5352         attributes Spec and Body.
5353
5354         * prj-nmsc.adb: Process optional indexes
5355
5356         * prj-pp.adb: Ouput "at" for optional indexes
5357
5358         * prj-proc.adb: Take into account optional indexes
5359
5360         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
5361         Optional_Index. For string literal,
5362         process optional index when Optional_Index is True.
5363         (Parse_Expresion): New Boolean parameter Optional_Index
5364
5365         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
5366         (Set_Source_Index_Of): New procedure
5367
5368         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
5369         index.
5370
5371         * prj-util.ads (Executable_Of): New parameter Index
5372         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
5373         New parameter Src_Index, defaulted to 0.
5374
5375 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
5376
5377         PR ada/15257
5378         * sem_ch3.adb (Access_Definition): If this is an access parameter
5379         whose designated type is imported through a limited_with clause, do
5380         not add the enclosing subprogram to the list of private dependents of
5381         the type.
5382
5383 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
5384
5385         PR ada/15258
5386         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
5387         a limited_with clause, and the other is its non-limited view.
5388
5389 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
5390
5391         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
5392
5393         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
5394         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
5395         Stand.Boolean_Literals to produce references to entities
5396         Standard_False and Standard_True from compile-time computed boolean
5397         values.
5398
5399         * stand.ads (Boolean_Literals): New variable, provides the entity
5400         values for False and True, for use by the expander.
5401
5402 2004-05-05  Doug Rupp  <rupp@gnat.com>
5403
5404         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
5405         5vinmaop.adb: Unchecked convert Short_Address vice Address
5406
5407         * adaint.c, raise.c: Caste CRTL function return value
5408         to avoid gcc error on 32/64 bit IVMS.
5409
5410         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
5411         target = IA64/VMS.
5412
5413         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
5414
5415         * 5qsystem.ads (Address): Declare as Long_Integer
5416         (Short_Address): Declare as 32 bit subtype of Address
5417         Declare  abstract address operations to avoid gratuitous ambiguities.
5418
5419 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
5420
5421         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
5422         instead of the old Boolean_Entry_Barriers.
5423         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
5424
5425 2004-05-05  GNAT Script  <nobody@gnat.com>
5426
5427         * Make-lang.in: Makefile automatically updated
5428
5429 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
5430
5431         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
5432
5433 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
5434
5435         PR ada/15152
5436
5437         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
5438         alone. Replacing object references by literals is inappropriate in a
5439         so low level context.
5440
5441 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
5442
5443         * a-exexpr.adb: Add comments
5444
5445 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
5446
5447         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
5448         declare the Ancestor_Tags array in Type_Specific_Data with a small size
5449         without risking a bounds check error when accessing one of its
5450         components.
5451         (Type_Specific_Data): Define Ancestor_Tags as a small array.
5452         This prevents us from hitting a limitation during the debug info
5453         generation when using stabs.
5454
5455         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
5456         small array.
5457         This prevents us from hitting a limitation during the debug info
5458         generation when using stabs.
5459
5460 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
5461
5462         lang-specs.h: Remove -gnatz* from specs.
5463
5464 2004-05-03  Vincent Celier  <celier@gnat.com>
5465
5466         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
5467
5468         * Make-lang.in, Makefile.in: Add gprmake
5469
5470 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
5471
5472         * sem_aggr.adb: Fix typo in comment.
5473
5474 2004-05-03  Robert Dewar  <dewar@gnat.com>
5475
5476         * make.adb: Minor reformatting
5477
5478         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
5479
5480         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
5481         so that it works when address is not a private type.
5482
5483         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
5484         properly with rewritten unchecked conversions. This prevents
5485         order-of-elaboration issues that can otherwise arise.
5486         (Minimum_Size): Don't check size of access types under VMS
5487
5488         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
5489         interpretations of integer literals as type System.Address.
5490
5491         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
5492         (Is_Descendent_Of): New function
5493
5494 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
5495
5496         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5497         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
5498         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
5499
5500         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
5501         of the old Max_Entry_Queue_Depth.
5502
5503         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5504         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
5505         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
5506
5507         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
5508         New entry for proper handling of Max_Entry_Queue_Depth.
5509         New entry for proper handling of No_Dynamic_Interrupts.
5510
5511         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
5512         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5513         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
5514         the GNAT specific restriction Max_Entry_Queue_Depth.
5515         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
5516         the GNAT specific restriction No_Dynamic_Interrupts.
5517
5518         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
5519         instead of the old Boolean_Entry_Barriers.
5520         Use the new restriction No_Dynamic_Attachment instead of the old
5521         No_Dynamic_Interrupts.
5522
5523         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
5524         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5525
5526         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
5527         of the old Max_Entry_Queue_Depth.
5528
5529 2004-05-03  GNAT Script  <nobody@gnat.com>
5530
5531         * Make-lang.in: Makefile automatically updated
5532
5533 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
5534
5535         * checks.adb (Enable_Range_Check): If the prefix of an index component
5536         is an access to an unconstrained array, perform check unconditionally.
5537
5538 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5539
5540         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
5541         Component_Clause.
5542
5543 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
5544
5545         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
5546         alternate stack setting. There was no support for the tasking cases
5547         and the changes eventually caused a number of side-effect failures in
5548         the non-tasking case too.
5549
5550 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
5551
5552         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
5553         -gnats is passed.
5554
5555 2004-04-29  Vincent Celier  <celier@gnat.com>
5556
5557         * make.adb (Gnatmake): Increase max size of argument array for
5558         gnatbind for the potential addition of -F.
5559         If there are Stand-Alone Library projects, invoke gnatbind with -F to
5560         be sure that elaboration flags will be checked.
5561
5562         * switch-c.adb: Correct call to Scan_Pos for -gnateI
5563
5564 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
5565
5566         * sem_warn.adb (Check_References): Move '<access-variable> may be
5567         null' warning out of under Warn_On_No_Value_Assigned.
5568
5569 2004-04-29  Ed Falis  <falis@gnat.com>
5570
5571         * gnat_ugn.texi: Fixed texi error
5572
5573 2004-04-29  Robert Dewar  <dewar@gnat.com>
5574
5575         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
5576         abstract operations if they come from predefined files.
5577
5578         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
5579         Dynamic, not RM).
5580
5581         * s-addope.adb: Correct obvious error in mod function
5582
5583 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
5584
5585         * Makefile.in: Add target pairs for powerpc darwin*
5586         tasking support.
5587
5588         * a-intnam-darwin.ads, s-osinte-darwin.adb,
5589         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
5590
5591 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5592
5593         * Makefile.in: Add target macro definitions for s390*-linux*.
5594         * system-linux-s390.ads: New file.
5595         * system-linux-s390x.ads: New file.
5596
5597 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5598
5599         * gnat_ugn.texi: Correct argument to @setfilename.
5600
5601 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5602
5603         * a-exexpr.adb (Unwind_Word): New data type.
5604         (Unwind_Exception): Use it as type of Private1 and Private2.
5605
5606         * raise.c (db_action_for): Fix debug printf.
5607
5608 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
5609
5610         * a-wtmoio.ads: Formal type must be a modular type, not a signed
5611         integer type.
5612
5613 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5614
5615         * decl.c (gnat_to_gnu_entity, case object): Call
5616         __builtin_update_setjmp_buf.
5617
5618         * gigi.h (update_setjmp_buf): Deleted.
5619         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
5620
5621         * misc.c: (update_setjmp_buf): Deleted.
5622
5623         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
5624         around block of RTL.
5625
5626         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
5627
5628 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
5629
5630         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
5631         subprogram for which no pragma All_Calls_Remote applies, store the
5632         address of the real subprogram in the underlying record type, so local
5633         dereferences do not go through the PCS.
5634
5635 2004-04-26  Robert Dewar  <dewar@gnat.com>
5636
5637         * i-c.ads: Add some type qualifications to avoid ambiguities when
5638         compiling with s-auxdec.ads and a non-private address type.
5639
5640 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
5641
5642         * Makefile.rtl: Fix error in previous check-in:
5643         Add s-addope.o to non tasking object list (rather than tasking object
5644         list).
5645
5646 2004-04-26  Javier Miranda  <miranda@gnat.com>
5647
5648         * sem_aggr.adb: Fix typo in comments
5649         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
5650         Required to check the null-exclusion attribute.
5651
5652         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
5653         case of anonymous access types in record and array components. For a
5654         component definition the level is the same of the enclosing composite
5655         type.
5656
5657         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
5658         that are anonymous access types the level of accessibility depends on
5659         the enclosing type declaration. In order to have this information, set
5660         the scope of the anonymous access type to the enclosing record type
5661         declaration.
5662         (Array_Type_Declaration): In case of components that are anonymous
5663         access types the level of accessibility depends on the enclosing type
5664         declaration. In order to have this information, set the scope of the
5665         anonymous access type to the enclosing array type declaration.
5666
5667         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
5668         access type.
5669
5670         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
5671         renaming of anonymous access-to-constant types allowed if and only if
5672         the renamed object is access-to-constant.
5673
5674         * sem_util.adb (Type_Access_Level): In case of anonymous access types
5675         that are component_definition or discriminants of a nonlimited type,
5676         the level is the same as that of the enclosing component type.
5677
5678 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
5679
5680         * sem_elim.adb: Some minor code reorganization from code reading. Fix
5681         misprint in the function name (File_Name_Match).
5682
5683 2004-04-23  Laurent GUERBY <laurent@guerby.net>
5684
5685         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5686         install.
5687
5688 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5689
5690         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
5691
5692 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
5693
5694         * adaint.c (__gnat_try_lock): No longer requires that the parent
5695         directory be writable, the directory itself is enough.
5696         (gnat_is_absolute_path): Change profile, so that the call from
5697         GNAT.OS_Lib can be made more efficient.
5698
5699         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
5700         from GNAT.OS_Lib can be made more efficient.
5701
5702         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
5703         one copy of the file name. Found by code reading.
5704
5705 2004-04-23  Vincent Celier  <celier@gnat.com>
5706
5707         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
5708         Correct documentation on gnatmake switches transmitted to the compiler
5709
5710         * ali.ads: Minor comment fix
5711
5712 2004-04-23  Javier Miranda  <miranda@gnat.com>
5713
5714         * sem_ch6.adb: (Confirming Types): Code cleanup
5715
5716         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
5717         subprogram types: E_Anonymous_Access_Subprogram_Type and
5718         E_Anonymous_Access_Protected_Subprogram_Type.
5719
5720 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
5721
5722         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5723         whether a pragma All_Calls_Remote applies to the subprogram on which
5724         'Access is taken.
5725         No functional change is introduced by this revision; the new parameter
5726         will be used to allow calls to local RCI subprograms to be optimized
5727         to not use the PCS in the case where no pragma All_Calls_Remote applies,
5728         as is already done in the PolyORB implementation of the DSA.
5729
5730         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5731         whether a pragma All_Calls_Remote applies to the subprogram on which
5732         'Access is taken.
5733         No functional change is introduced by this revision; the new parameter
5734         will be used to allow calls to local RCI subprograms to be optimized
5735         to not use the PCS in the case where no pragma All_Calls_Remote applies,
5736         as is already done in the PolyORB implementation of the DSA.
5737
5738 2004-04-23  Robert Dewar  <dewar@gnat.com>
5739
5740         * Makefile.rtl: Add entry for s-addope.o in run time library list
5741         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
5742         * s-addope.ads, s-addope.adb: New files.
5743
5744         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
5745         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
5746         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
5747         System.Address to be non-private and signed.
5748
5749         * sem_elim.adb: Minor reformatting (fairly extensive)
5750         Some minor code reorganization from code reading
5751         Add a couple of ??? comments
5752
5753 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5754
5755         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
5756         (tree_transform, case N_If_Statement): Remove non-determinism.
5757
5758         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
5759
5760 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
5761
5762         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
5763         Eliminate' section.
5764
5765         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
5766         no longer used as a parameter name for Eliminate pragma).
5767
5768 2004-04-22  Laurent GUERBY <laurent@guerby.net>
5769
5770         PR optimization/14984
5771         PR optimization/14985
5772         * trans.c (gigi): Fix non determinism leading to bootstrap
5773         comparison failures.
5774
5775 2004-04-21  Pascal Obry  <obry@gnat.com>
5776
5777         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
5778         passed to spawnvp() to properly handle program pathname with spaces on
5779         Win32.
5780
5781 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
5782
5783         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
5784         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
5785         unlocked in case of exceptions.
5786
5787 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
5788
5789         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
5790         This function does not exist anymore.
5791
5792 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
5793
5794         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
5795
5796         * link.c: Move variables to the __gnat name space.
5797
5798         * Makefile.in: list link.o explicitly when needed.
5799
5800         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
5801
5802 2004-04-21  Javier Miranda  <miranda@gnat.com>
5803
5804         * einfo.adb (Original_Access_Type): New subprogram
5805         (Set_Original_Access_Type): New subprogram
5806         (Write_Field21_Name): Write the name of the new field
5807
5808         * einfo.ads (Original_Access_Type): New field present in access to
5809         subprogram types.
5810         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
5811         E_Anonymous_Access_Protected_Subprogram_Type.
5812
5813         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
5814         subprogram types.
5815
5816         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
5817         to anonymous access to subprogram types.
5818
5819         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
5820         to subprogram types.
5821
5822         * sem_ch3.adb (Access_Definition): Complete decoration of entities
5823         corresponding to anonymous access to subprogram types.
5824         (Analyze_Component_Declaration): Add new actual to the call to
5825         subprogram replace_anonymous_access_to_protected_subprogram.
5826         (Array_Type_Declaration): Add new actual to the call to subprogram
5827         replace_anonymous_access_to_protected_subprogram.
5828         (Process_Discriminants): Add new actual to the call to subprogram
5829         replace_anonymous_access_to_protected_subprogram.
5830         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
5831
5832         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5833         formal.
5834
5835         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
5836         access to subprogram types.
5837
5838         * sem_util.adb (Has_Declarations): Addition of package_specification
5839         nodes.
5840
5841 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
5842
5843         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
5844         inlined flags to renamed entity only if in current unit.
5845
5846 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
5847
5848         * s-parint.ads: Add DSA implementation marker.
5849
5850         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
5851         value of System.Partition_Interface.DSA_Implementation to determine
5852         what version of the distributed systems annex is available (no
5853         implementation, GLADE, or PolyORB).
5854
5855 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
5856
5857         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
5858
5859 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5860
5861         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
5862         with new type if alias sets differ.
5863         Fixes ACATS c41103b.
5864
5865 2004-04-21  Vincent Celier  <celier@gnat.com>
5866
5867         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
5868         Add array Lang_Args for the language specific compiling argument
5869         switches.
5870
5871         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
5872
5873 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
5874
5875         * gnat_rm.texi: Update the descripton of the Eliminate pragma
5876         according to the recent changes in the format of the parameters of the
5877         pragma (replacing Homonym_Number with Source_Location).
5878
5879 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
5880
5881         * 5isystem.ads: Removed, unused.
5882
5883         * gnat_rm.texi: Redo 1.13 change.
5884
5885 2004-04-19  Robert Dewar  <dewar@gnat.com>
5886
5887         * s-stoele.ads: Clean up definition of Storage_Offset (the new
5888         definition is cleaner, avoids the kludge of explicit Standard operator
5889         references, and also is consistent with a visible System.Address with
5890         no visible operations.
5891
5892         * s-geveop.adb: Add declarations to avoid assumption of visible
5893         operations on type System.Address (since these might not be available
5894         if Address is a non-private type for which the operations
5895         are made abstract).
5896
5897         * sem_eval.adb: Minor reformatting
5898
5899         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
5900         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
5901         reformatting (new function spec format).
5902
5903         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5904         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
5905         s-caun64.adb: Add declarations to avoid assumption of visible
5906         operations on type System.Address (since these might not be available
5907         if Address is a non-private type for which the operations are made
5908         abstract).
5909
5910         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
5911
5912         * exp_intr.adb: Minor comment update
5913
5914         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
5915
5916         * 5omastop.adb: Add declarations to avoid assumption of visible
5917         operations on type System.Address (since these might not be available
5918         if Address is a non-private type for which the operations
5919         are made abstract).
5920
5921 2004-04-19  Vincent Celier  <celier@gnat.com>
5922
5923         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
5924
5925         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
5926         defaulted to Ada.
5927
5928         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
5929         defaulted to Ada.
5930         Call Check with Process_Languages.
5931         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
5932         with Process_Languages.
5933         (Recursive_Check): New Boolean parameter Process_Languages. Call
5934         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
5935         Process_Languages.
5936
5937         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
5938
5939         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
5940         parameter Ada_Main, defaulted to True.
5941         Check for Ada specific characteristics only when Ada_Main is True.
5942
5943         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
5944
5945         * prj.adb: (Project_Empty): Add new Project_Data components.
5946
5947         * prj.ads: New types and tables for non Ada languages.
5948         (Project_Data): New components Languages, Impl_Suffixes,
5949         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
5950         Include_Path, Include_Data_Set.
5951
5952         * prj-env.ads, prj-env.adb: Minor reformatting
5953
5954         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
5955         Put subprograms in alphabetical order
5956
5957         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
5958         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
5959         Opt.Follow_Links.
5960
5961         * mlib-prj.adb: Back out modification in last version, as they are
5962         incorrect.
5963         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
5964
5965         * make.adb: (Mains): Moved to package Makeutl
5966         (Linker_Opts): Moved to package Makeutl
5967         (Is_External_Assignment): Moved to package Makeutl
5968         (Test_If_Relative_Path): Moved to package Makeutl
5969         (Gnatmake): Move sorting of linker options to function
5970         Makeutl.Linker_Options_Switches.
5971
5972         * makeutl.ads, makeutl.adb: New files.
5973
5974         * Makefile.in: Add makeutl.o to the object files for gnatmake
5975
5976         * makeusg.adb: Add line for new switch -eL.
5977
5978         * gnatls.adb (Image): New function.
5979         (Output_Unit): If in verbose mode, output the list of restrictions
5980         specified by pragmas Restrictions.
5981
5982         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
5983         Text_IO.
5984
5985         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
5986         needed, to put it in the range 1970 (included) - 2026 (excluded).
5987         (Time_Of): Do not shift Unix_Min_Year (1970).
5988         Shift the date by multiple of 56 years, if needed, to put it in the
5989         range 1970 (included) - 2026 (excluded).
5990
5991         * adaint.h, adaint.c (__gnat_set_executable): New function.
5992
5993 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5994
5995         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
5996         and pop GC context.
5997         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
5998         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
5999         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
6000         (tree_transform, case N_Code_Statement): Likewise.
6001         (gnat_expand_stmt, case LABEL_STMT): Don't look at
6002         LABEL_STMT_FIRST_IN_EH.
6003         (gnat_expand_stmt, case ASM_STMT): New case.
6004
6005         * utils2.c (build_unary_op): Properly set TREE_READONLY of
6006         UNCONSTRAINED_ARRAY_REF.
6007
6008         * utils.c (poplevel): Temporarily push/pop GC context around inline
6009         function expansion.
6010
6011         * decl.c (maybe_variable): Properly set TREE_READONLY of
6012         UNCONSTRAINED_ARRAY_REF.
6013         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
6014
6015         * ada-tree.def: (ASM_STMT): New.
6016
6017         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
6018         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
6019         ASM_STMT_INPUT): New.
6020         (ASM_STMT_CLOBBER): Likewise.
6021
6022 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
6023
6024         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
6025         general rcheck mechanism to raise Program_Error for E.4(18), instead
6026         of a custom raiser in System.Partition_Interface.
6027         Part of general cleanup work before PolyORB integration.
6028
6029         * snames.ads, snames.adb: Add new runtime library entities and names
6030         for PolyORB DSA.
6031
6032         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
6033         exp_dist.
6034         (Build_Subprogram_Id): New subprogram provided by exp_dist
6035         Code reorganisation in preparation for PolyORB integration.
6036
6037         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
6038         exp_dist.
6039         (Build_Subprogram_Id): New subprogram provided by exp_dist
6040
6041         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
6042         actual parameter types for call to dereference of an
6043         access-to-subprogram type.
6044
6045         * rtsfind.ads: Add new runtime library entities and names for PolyORB
6046         DSA.
6047
6048         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
6049         instead, which has the same behaviour here since we never pass it a
6050         NULL pointer.
6051
6052         * link.c (run_path_option, Solaris case): Use -Wl, as for other
6053         platforms.
6054
6055         * Makefile.in: adjust object file lists for gnatlink and gnatmake
6056         to account for new dependency upon Interfaces.C.Strings + link.o
6057         For x86 FreeBSD, use 86numaux.
6058
6059         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
6060         from Mlib.Tgt to Mlib.
6061
6062         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
6063         target-independent.
6064
6065         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
6066         target-specific versions of this subprogram, now implemented as a
6067         target-independent function in Mlib.
6068
6069         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
6070         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
6071         (Linker_Library_Path_Option): Remove target-specific versions of this
6072         subprogram, now implemented as a target-independent function in Mlib.
6073
6074         * atree.adb: (Allocate_Initialize_Node): New subprogram.
6075         Factors out node table slots allocation.
6076         (Fix_Parents): New subprogram.
6077         Encapsulate the pattern of fixing up parent pointers for syntactic
6078         children of a rewritten node.
6079         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
6080         (Rewrite): Use New_Copy when creating saved copy of original node.
6081         (Replace): Use Copy_Node to copy nodes.
6082
6083 2004-04-19  Javier Miranda  <miranda@gnat.com>
6084
6085         * sprint.adb (Sprint_Node_Actual): Give support to the new
6086         Access_To_Subprogram node available in Access_Definition nodes. In
6087         addition, give support to the AI-231 node fields: null-exclusion,
6088         all-present, constant-present.
6089
6090         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
6091
6092         * sinfo.ads, sinfo.adb:
6093         New field Access_To_Subprogram_Definition in Access_Definition nodes
6094
6095         * sem_ch6.adb (Process_Formals): Move here the code that creates and
6096         decorates internal subtype declaration corresponding to the
6097         null-excluding formal. This code was previously in Set_Actual_Subtypes.
6098         In addition, carry out some code cleanup on this code. In case of
6099         access to protected subprogram call
6100         Replace_Anonymous_Access_To_Protected_Subprogram.
6101         (Set_Actual_Subtypes): Code cleanup.
6102
6103         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
6104         Find_Type in case of anonymous access renamings. Add warning in case of
6105         null-excluding attribute used in anonymous access renaming.
6106
6107         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
6108         subprogram
6109
6110         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
6111         subprogram.
6112         (Access_Definition): In case of anonymous access to subprograms call
6113         the corresponding semantic routine to decorate the node.
6114         (Access_Subprogram_Declaration): Addition of some comments indicating
6115         some code that probably should be added here. Detected by comparison
6116         with the access_definition subprogram.
6117         (Analyze_Component_Declaration): In case of access to protected
6118         subprogram call Replace_Anonymous_Access_To_Protected.
6119         (Array_Type_Declaration): In case of access to protected subprogram call
6120         Replace_Anonymous_Access_To_Protected_Subprogram.
6121         (Process_Discriminants): In case of access to protected subprogram call
6122         Replace_Anonymous_Access_To_Protected_Subprogram.
6123
6124         * par.adb (P_Access_Definition): New formal that indicates if the
6125         null-exclusion part was present.
6126         (P_Access_Type_Definition): New formal that indicates if the caller has
6127         already parsed the null-excluding part.
6128
6129         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
6130         (P_Identifier_Declarations): Code cleanup and give support to renamings
6131         of anonymous access to subprogram types.
6132         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
6133         (P_Array_Type_Definition): Give support to AI-254.
6134         (P_Component_Items): Give support to AI-254.
6135         (P_Access_Definition): New formal that indicates if the header was
6136         already parsed by the caller.
6137         (P_Access_Type_Definition): New formal that indicates if the caller has
6138         already parsed the null-excluding part.
6139
6140         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
6141         call to P_Access_Definition.
6142
6143 2004-04-19  Geert Bosch  <bosch@gnat.com>
6144
6145         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
6146         the delicate semantics of floating-point to integer conversion.
6147         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
6148
6149         * eval_fat.adb (Machine_Mantissa): Moved to spec.
6150         (Machine_Radix): New function.
6151
6152         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
6153         conversion checks.
6154         (Machine_Radix): New function also for use in conversion checks.
6155
6156 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
6157
6158         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
6159
6160         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
6161         to decorate the access-to-protected subprogram and the equivalent type.
6162
6163         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
6164         to anonymous access to subprogram types.
6165
6166         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
6167         constant-folding, for legality checks in contexts that require an RM
6168         static expression.
6169
6170         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
6171         temporary but stack checking is not enabled, increment serial number
6172         to so that symbol generation is consistent with and without stack
6173         checking.
6174
6175         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
6176         independent on whether stack checking is enabled, caller must check
6177         the corresponding flag.
6178
6179         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
6180         range checks.
6181         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
6182         parent if it has discriminants.
6183         (Build_Derived_Private_Type): Constructed full view does
6184         not come from source.
6185         (Process_Discriminants): Default discriminants on a tagged type are
6186         legal if this is the internal completion of a private untagged
6187         derivation.
6188
6189         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
6190         no constraint checks, because it corresponds to an existing object.
6191
6192         * sem_prag.adb (Process_Convention): Pragma applies
6193         only to subprograms in the same declarative part, i.e. the same unit,
6194         not the same scope.
6195
6196         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
6197         ignore type mismatch on a numeric conversion if expression comes from
6198         expansion.
6199
6200 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
6201
6202         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
6203         Homonym_Number parameter, add processing for Source_Location parameter
6204         corresponding.
6205         (Check_Eliminated): Remove the check for homonym numbers, add the check
6206         for source location traces.
6207
6208         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
6209         with Arg_Source_Location corresponding to the changes in the format of
6210         the pragma.
6211
6212         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
6213         Eliminate pragma corresponding to the changes in the format of the
6214         pragma: Homonym_Number is replaced with Source_Location, two ways of
6215         distinguishing homonyms are mutially-exclusive.
6216
6217 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
6218
6219         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
6220
6221         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
6222         No_Dollar_In_Label, no longer necessary, as it is always True.
6223         (Strip_Suffixes): Likewise.
6224
6225 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
6226
6227         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
6228         modulus for compatibility with size clause on targets with 16-bit
6229         Integer.
6230
6231         * layout.adb (Discrimify): In the case of private types, set Vtyp to
6232         full type to fix type mismatches on calls to size functions for
6233         discriminant-dependent array components.
6234
6235 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
6236
6237         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
6238         lib.
6239
6240 2004-04-19  Pascal Obry  <obry@gnat.com>
6241
6242         * mdll-utl.adb (Locate): New version is idempotent.
6243
6244 2004-04-17  Laurent Guerby <laurent@guerby.net>
6245
6246         PR ada/14988 (partial)
6247         * impunit.adb: Fix typo.
6248
6249 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
6250
6251         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
6252         and install-rts-cert targets.  Remove all gnatlib and gnattools
6253         targets and all other rts-* targets (moved to libada).  Remove (now)
6254         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
6255         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
6256
6257 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6258
6259         * trans.c (tree_transform): Shortcut returning error_mark_node for
6260         statements in annotate_only_mode.
6261         (tree_transform, case N_Label, case N_Return_Statement,
6262         N_Goto_Statement): Make statement tree instead of generating code.
6263         (tree_transform, case N_Assignment_Statement): No longer check
6264         type_annotate_only.
6265         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
6266         RETURN_STMT): New.
6267         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
6268         New fcns.
6269         (gnat_to_gnu): Collect any RTL generated and deal with it.
6270         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
6271         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
6272         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
6273
6274         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
6275
6276         * ada-tree.def (EXPR_STMT): Fix typo in name.
6277         (BLOCK_STMT, IF_STMT): New nodes.
6278
6279         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
6280         LABEL_STMT_FIRST_IN_EH): New macros.
6281         (RETURN_STMT_EXPR): Likewise.
6282
6283         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
6284         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
6285
6286 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
6287
6288         * atree.ads: Correct documentation on extended nodes.
6289
6290         * link.c: Set run_path_option for FreeBSD.
6291
6292 2004-04-08  Vincent Celier  <celier@gnat.com>
6293
6294         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
6295         one of the ALI file, do not link with DEC lib.
6296
6297         * par.adb Remove the last two characters ("%s" or "%b") when checking
6298         if a language defined unit may be recompiled.
6299
6300 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
6301
6302         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
6303         removal of abstract operation leaves no possible interpretation for
6304         expression.
6305
6306         * sem_eval.adb (Eval_Qualified_Expression): Use
6307         Set_Raises_Constraint_Error on node when needed, so that it does not
6308         get optimized away by subsequent optimizations.
6309
6310         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
6311         operands even when they are not wrapped in a type conversion.
6312
6313 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
6314
6315         * sem_prag.adb (Set_Exported): Warn about making static as result of
6316         export only when the export is coming from source. This may be not
6317         be true e.g. on VMS where we expand export pragmas for exception codes
6318         together with imported or exported exceptions, and we don't want the
6319         user to be warned about something he didn't write.
6320
6321 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
6322
6323         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
6324         duplication between normal entities and those declared as renamings.
6325         No functional change.
6326
6327         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
6328         inline functions returning an unconstrained result.
6329
6330 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
6331
6332         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
6333         conform to what other front-ends do.
6334
6335 2004-04-08  Doug Rupp  <rupp@gnat.com>
6336
6337         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
6338         libraries.
6339
6340 2004-04-06  Pascal Obry  <obry@gnat.com>
6341
6342         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
6343
6344         * osint.adb (Program_Name): Do not look past a directory separator.
6345
6346 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
6347
6348         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
6349
6350         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
6351         requirement for preserving a copy of the original assignment node.
6352
6353         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
6354
6355 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
6356
6357         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
6358         when supported.
6359
6360 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
6361
6362         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
6363         operator calls in functional notation, and apply
6364         Universal_Interpretation to operands, not to their type.
6365
6366 2004-04-06  Robert Dewar  <dewar@gnat.com>
6367
6368         * 5wdirval.adb: Minor reformatting
6369
6370 2004-04-06  Ed Falis  <falis@gnat.com>
6371
6372         * gnat_rm.texi: Improve a reference to the GCC manual
6373
6374 2004-04-05  Vincent Celier  <celier@gnat.com>
6375
6376         * adaint.h, adaint.c: Add function __gnat_named_file_length
6377
6378         * impunit.adb: Add Ada.Directories to the list
6379
6380         * Makefile.in: Add VMS and Windows versions of
6381         Ada.Directories.Validity package body.
6382
6383         * Makefile.rtl: Add a-direct and a-dirval
6384
6385         * mlib-tgt.ads: Minor comment update.
6386
6387         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
6388         a-direct.ads, a-direct.adb: New files.
6389
6390 2004-04-05  Vincent Celier  <celier@gnat.com>
6391
6392         PR ada/13620
6393         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
6394         just to the compiler.
6395
6396 2004-04-05  Robert Dewar  <dewar@gnat.com>
6397
6398         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
6399         returned string is 1.
6400
6401         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
6402
6403         * eval_fat.ads: Minor reformatting
6404
6405         * g-curexc.ads: Document that lower bound of returned string values
6406         is always one.
6407
6408         * gnatlink.adb: Add ??? comment for previous change
6409         (need to document why this is VMS specific)
6410
6411         * s-stoele.ads: Minor reformatting
6412
6413         * tbuild.ads: Minor reformatting throughout (new function specs)
6414
6415         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
6416         after WITH.
6417
6418         * scng.adb: Minor reformatting
6419
6420 2004-04-05  Geert Bosch  <bosch@gnat.com>
6421
6422         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
6423         (Leading_Part): Still perform truncation to machine number if the
6424         specified radix_digits is greater or equal to machine_mantissa.
6425
6426 2004-04-05  Javier Miranda  <miranda@gnat.com>
6427
6428         * par-ch3.adb: Complete documentation of previous change
6429         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
6430         (aliased must appear before constant).
6431
6432         * par-ch4.adb: Complete documentation of previous change.
6433
6434         * par-ch6.adb: Complete documentation of previous change.
6435
6436         * sinfo.ads: Fix typo in commment.
6437
6438 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
6439
6440         * sem_ch3.adb (Inherit_Components): If derived type is private and has
6441         stored discriminants, use its discriminants to constrain parent type,
6442         as is done for non-private derived record types.
6443
6444         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
6445         Ada 2005 AI-310: an abstract non-dispatching operation is not a
6446         candidate interpretation in an overloaded call.
6447
6448         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
6449         expression is Null and target type is not an access type (e.g. a
6450         non-private address type).
6451
6452 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
6453
6454         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
6455         statement whose right-hand side is an inlined call, save a copy of the
6456         original assignment subtree to preserve enough consistency for
6457         Analyze_Assignment to proceed.
6458
6459         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
6460         complete assignment subtree which is now unnecessary, as the expansion
6461         of inlined call has been improved to preserve a consistent assignment
6462         tree.  Note_Possible_Modification must be called only
6463         after checks have been applied, or else unnecessary checks will
6464         be generated.
6465
6466         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
6467         of explicit dereferences that do not Come_From_Source:
6468          - be selective on cases where we must go back to the dereferenced
6469            pointer (an assignment to an implicit dereference must not be
6470            recorded as modifying the pointer);
6471          - do not rely on Original_Node being present (Analyze_Assignment
6472            calls Note_Possible_Modification on a copied tree).
6473
6474         * sem_warn.adb (Check_References): When an unset reference to a pointer
6475         that is never assigned is encountered, prefer '<pointer> may be null'
6476         warning over '<pointer> is never assigned a value'.
6477
6478 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
6479
6480         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
6481         the ABI.
6482
6483 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
6484
6485         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
6486         libexc. We currently don't reference anything in this library and
6487         linking it in triggers linker warnings we don't want to see.
6488
6489         * init.c: Update comments.
6490
6491 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6492
6493         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
6494         * utils.c (create_field_decl): Likewise.
6495         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
6496
6497 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
6498
6499         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
6500         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
6501         Add info directory entry and category.
6502
6503 2004-04-02  Jan Hubicka  <jh@suse.cz>
6504
6505         * utils.c: Include function.h
6506         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
6507
6508 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
6509
6510         PR ada/14150
6511         * Make-lang.in: Clean up generation of documentation
6512
6513         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
6514
6515         * xgnatug.adb: Removed, replaced by xgnatugn.adb
6516
6517         * xgnatugn.adb: Replaces xgnatug.adb
6518
6519         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
6520
6521         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
6522
6523         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6524         gnat_ug_wnt.texi: Removed.
6525
6526 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
6527
6528         * utils2.c: Update copyright notice.
6529
6530 2004-04-01  Robert Dewar  <dewar@gnat.com>
6531
6532         * checks.adb: Minor reformatting throughout
6533         Note that prev checkin added RM reference to alignment warning
6534
6535 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
6536
6537         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
6538         non-static when building aggregate for bit-packed array.
6539
6540         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
6541         function call that is itself the actual in a procedure call, build
6542         temporary for it.
6543
6544         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
6545         a string literal, create a temporary for it, constant folding only
6546         handles scalars here.
6547
6548 2004-04-01  Vincent Celier  <celier@gnat.com>
6549
6550         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
6551         Error_Msg_SP): New empty procedures to instantiate the Scanner.
6552         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
6553         tokens.
6554         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
6555         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
6556         and get the checksum.
6557
6558         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
6559         already in the Q.
6560         Increase the Marking_Label at the end of the Multiple_Main_Loop,
6561         instead of at the beginning.
6562
6563         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
6564         directly.
6565         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
6566         on VMS.
6567
6568         * osint.ads (Multi_Unit_Index_Character): New Character global variable
6569
6570         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
6571         not '~' directly.
6572
6573         * par.adb: Remove test on file name to detect language defined units.
6574         Add test on unit name, after parsing, to detect language defined units
6575         that are not compiled with -gnatg (except System.RPC and its children)
6576
6577         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
6578         following units without style checking.
6579
6580         * switch-c.adb: Change -gnatC to -gnateI
6581
6582         * usage.adb: Document new switch -gnateInnn
6583
6584         * scng.adb (Accumulate_Token_Checksum): New procedure
6585         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
6586         word or literal number.
6587         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
6588         numbers.
6589
6590 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
6591
6592         * a-tasatt.adb,
6593         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
6594         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
6595         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
6596         5vtpopde.adb: Add missing 'constant' keywords.
6597
6598 2004-04-01  Javier Miranda  <miranda@gnat.com>
6599
6600         * par-ch4.adb: (P_Allocator): Code cleanup
6601
6602         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
6603         attribute.
6604
6605         * sinfo.ads: Complete documentation of previous change
6606
6607 2004-04-01  Pascal Obry  <obry@gnat.com>
6608
6609         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
6610         only on VMS.  This special handling was done because an old GNU/ld bug
6611         on Windows which has been fixed.
6612
6613 2004-04-01  GNAT Script  <nobody@gnat.com>
6614
6615         * Make-lang.in: Makefile automatically updated
6616
6617 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6618
6619         * decl.c (gnat_to_gnu_entity, make_type_from_size):
6620         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
6621         * trans.c (tree_transform, convert_with_check): Likewise.
6622         * utils.c (gnat_signed_or_unsigned_type): Likewise.
6623         (build_vms_descriptor, unchecked_convert): Likewise.
6624         * utils2.c (nonbinary_modular_operation): Likewise.
6625
6626 2004-03-29  Javier Miranda  <miranda@gnat.com>
6627
6628         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
6629         (Install_Null_Excluding_Check): Local subprogram that determines whether
6630         an access node requires a runtime access check and if so inserts the
6631         appropriate run-time check.
6632         (Apply_Access_Check): Call Install_Null_Excluding check if required
6633         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
6634
6635         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
6636
6637         * einfo.ads: Fix typo in comment
6638
6639         * exp_ch3.adb (Build_Assignment): Generate conversion to the
6640         null-excluding type to force the corresponding run-time check.
6641         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
6642         type to force the corresponding run-time check.
6643
6644         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
6645         the null-excluding type to force the corresponding run-time check.
6646
6647         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
6648         case of access types unless they have the null-excluding attribute.
6649
6650         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
6651         part.
6652
6653         * exp_util.ads: Fix typo in comment
6654
6655         * par.adb (P_Null_Exclusion): New subprogram
6656         (P_Subtype_Indication): New formal that indicates if the null-excluding
6657         part has been scanned-out and it was present
6658
6659         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
6660
6661         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
6662         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
6663         type to force the corresponding run-time check
6664         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
6665         components
6666         (Resolve_Array_Aggregate): Carry out some static checks
6667         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
6668
6669         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
6670         attribute must be set only if specified by means of the null-excluding
6671         part. In addition, we must also propagate the access-constant attribute
6672         if present.
6673         (Access_Subprogram_Declaration, Access_Type_Declaration,
6674         Analyze_Component_Declaration, Analyze_Object_Declaration,
6675         Array_Type_Declaration, Process_Discriminants,
6676         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
6677         and carry out some static checks.
6678         (Build_Derived_Access_Type): Set the null-excluding attribute
6679         (Derived_Type_Declaration, Process_Subtype): Carry out some static
6680         checks.
6681
6682         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
6683
6684         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
6685
6686         * sem_ch6.adb (Process_Formals): Carry out some static checks.
6687         (Set_Actual_Subtypes): Generate null-excluding subtype if the
6688         null-excluding part was present; it is not required to be done here in
6689         case of anonymous access types.
6690         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
6691         value.
6692
6693         * sem_res.adb (Resolve_Actuals): Carry out some static check
6694         (Resolve_Null): Allow null in anonymous access
6695
6696         * sinfo.adb: New subprogram Null_Exclusion_Present
6697         All_Present and Constant_Present available on access_definition nodes
6698
6699         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
6700         object_declaration, derived_type_definition, component_definition,
6701         discriminant_specification, access_to_object_definition,
6702         access_function_definition, allocator, access_procedure_definition,
6703         access_definition, parameter_specification, All_Present and
6704         Constant_Present flags available on access_definition nodes.
6705
6706 2004-03-29  Robert Dewar  <dewar@gnat.com>
6707
6708         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
6709         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
6710         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
6711         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
6712         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
6713         sem_prag.adb: Updates to handle multiple units/file
6714
6715         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
6716
6717         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
6718         sem_util.adb: Minor reformatting
6719
6720         * sem_ch12.adb: Add comment for previous change
6721
6722 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
6723
6724         * osint.adb (Executable_Prefix): Set Exec_Name to the current
6725         executable name when not initialized. Otherwise, use its current value.
6726
6727         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
6728         initialize it to another executable name than the current one. This
6729         allows to configure paths for an executable name (gnatmake) different
6730         from the current one (gnatdist).
6731
6732 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
6733
6734         * exp_ch6.adb (Expand_Call): A call to a function declared in the
6735         current unit cannot be inlined if it appears in the body of a withed
6736         unit, to avoid order of elaboration problems in gigi.
6737
6738         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
6739         information for protected (wrapper) operation as well, to simplify gdb
6740         use.
6741
6742         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
6743         protected body, indicate that the entity for the generated spec comes
6744         from source, to ensure that references are properly generated for it.
6745         (Build_Body_To_Inline): Do not inline a function that returns a
6746         controlled type.
6747
6748         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
6749         apply convention to homonyms that are declared explicitly.
6750
6751         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
6752         that renames an equality operator and the operands are overloaded,
6753         resolve them with the declared formal types, before rewriting as an
6754         operator.
6755
6756 2004-03-29  GNAT Script  <nobody@gnat.com>
6757
6758         * Make-lang.in: Makefile automatically updated
6759
6760 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
6761
6762         * memtrack.adb: Log realloc calls, which are treated as free followed
6763         by alloc.
6764
6765 2004-03-25  Vincent Celier  <celier@gnat.com>
6766
6767         * prj-makr.adb (Process_Directories): Detect when a file contains
6768         several units. Do not include such files in the config pragmas or
6769         in the naming scheme.
6770
6771         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
6772         Resolve links only when not in Trusted_Mode.
6773         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
6774         Do not resolve links for the display names.
6775
6776         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
6777         resolve links when computing the display names.
6778
6779 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
6780
6781         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
6782         attribute reference does not denote a subtype, it can be any
6783         expression that has a classwide type, potentially after an implicit
6784         dereference.  In particular, the prefix can be a view conversion for
6785         a classwide type (for which Is_Object_Reference holds), but it can
6786         also be a value conversion for an access-to-classwide type. In the
6787         latter case, there is an implicit dereference, and the original node
6788         for the prefix does not verify Is_Object_Reference.
6789
6790         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
6791         conversion of a discriminant-dependent component of a mutable object
6792         is one itself.
6793
6794 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
6795
6796         * freeze.adb (Freeze_Entity): When an inherited subprogram is
6797         inherited, has convention C, and has unconstrained array parameters,
6798         place the corresponding warning on the derived type declaration rather
6799         than the original subprogram.
6800
6801         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
6802         indication on renaming declaration, if formal has a box and actual
6803         is absent.
6804
6805         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
6806         determine whether to generate an implicit or explicit reference to
6807         the renamed entity.
6808
6809         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
6810         subprogram renaming comes from a defaulted formal subprogram in an
6811         instance.
6812
6813 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
6814
6815         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
6816         value expressions to ensure that calls within a component definition
6817         will be checked (since those are evaluated during the record type's
6818         elaboration).
6819
6820 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
6821
6822         * s-tpobop.adb: Code clean up:
6823         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
6824         code.
6825         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
6826
6827 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
6828
6829         * Makefile.in: Clean up in the ravenscar run time.
6830
6831 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6832
6833         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
6834         of No_Strict_Aliasing to build_pointer_type_for_mode.
6835         * utils.c (update_pointer_to): Walk pointer and ref chains.
6836
6837 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
6838
6839         * ali.ads: Fix Comment about Dynamic_Elab.
6840
6841         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
6842         Has_RACW, Is_Generic, etc.)
6843         (Output_Object, Gnatls): Take into account ALI files not attached to
6844         an object.
6845
6846 2004-03-22  Vincent Celier  <celier@gnat.com>
6847
6848         * gprep.adb: Change all String_Access to Name_Id
6849         (Is_ASCII_Letter): new function
6850         (Double_File_Name_Buffer): New procedure
6851         (Preprocess_Infile_Name): New procedure
6852         (Process_Files): New procedure
6853         (Gnatprep): Check if output and input are existing directories.
6854         Call Process_Files to do the real job.
6855
6856 2004-03-22  Robert Dewar  <dewar@gnat.com>
6857
6858         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
6859         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
6860
6861 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
6862
6863         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
6864         case when the source contains only comments.
6865
6866 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
6867
6868         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
6869         declaration for a child subprogram body that acts as a spec, indicate
6870         that the entity in the declaration needs debugging information.
6871
6872         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
6873         full view if the subtype is created for a constrained record component;
6874         gigi has enough information to construct the record, and there is no
6875         place in the tree for the declaration.
6876
6877         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
6878         serial number for the dummy body that is built for analysis, to avoid
6879         inconsistencies in the generation of internal names when compiling
6880         with -gnatN.
6881
6882 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
6883
6884         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
6885         object.
6886
6887 2004-03-22  GNAT Script  <nobody@gnat.com>
6888
6889         * Make-lang.in: Makefile automatically updated
6890
6891 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6892
6893         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6894         * trans.c (tree_transform, emit_index_check): Likewise.
6895         * utils.c (build_template): Likewise.
6896         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
6897         (maybe_unconstrained_array, unchecked_convert): Likewise.
6898         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
6899         (build_unary_op): Likewise.
6900         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6901         (fill_vms_descriptor): Likewise.
6902         (build_call_alloc_dealloc): Likewise.
6903         ALIGN is unsigned.
6904         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
6905
6906 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
6907
6908         PR other/14630
6909         * gnat_ug.texi: Add info directory category and entry.
6910         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6911         gnat_ug_wnt.texi: Regenerate.
6912
6913 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
6914
6915         * ada-tree.h: Update copyright notice.
6916         Minor reformatting.
6917
6918 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
6919
6920         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
6921         as regular exception objects and not as mere integers representing the
6922         condition code.  The latter approach required some dynamics to mask off
6923         severity bits, which did not fit well into the GCC table based model.
6924         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
6925         exception data objects. We don't it and it would conflict with the other
6926         external symbol we have to generate for such exceptions.
6927
6928         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
6929         the special code for VMS exceptions, since these are now represented
6930         as regular exceptions objects.
6931
6932 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6933
6934         * decl.c (debug_no_type_hash): Remove.
6935         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
6936         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
6937
6938 2004-03-19  Laurent Guerby <laurent@guerby.net>
6939
6940         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
6941         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
6942
6943 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6944
6945         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
6946         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
6947         (TYPE_RM_SIZE_INT): Directly use type.values.
6948         (TREE_LOOP_ID): Clean up check.
6949         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
6950         TYPE_VALUES, not TYPE_FIELDS.
6951         * trans.c (convert_with_check): Delay access of bounds of basetype
6952         until sure is numeric.
6953
6954 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
6955
6956         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
6957
6958         Code clean up:
6959         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
6960         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
6961         Specific.Set instead of direct call to e.g pthread_setspecific.
6962
6963 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
6964
6965         * adaint.c: Update comments.
6966
6967         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
6968         GNATLIB_SHARED for FreeBSD.
6969
6970 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
6971
6972         * init.c [VxWorks]: Do not fix the stack size for the environment task.
6973         When needed (stack checking) the stack size is retrieved
6974         from the VxWorks kernel.
6975
6976         * Makefile.in: Flag -nostdinc is required when building the run time
6977         for avoiding looking for files in the base compiler.
6978         Add the VxWorks specific version of the package body for
6979         System.Stack_checking.Operations (5zstchop.adb).
6980
6981         * Make-lang.in: Add the object file for
6982         System.Stack_Checking.Operations.
6983
6984         * Makefile.rtl: Add object file for the package
6985         System.Stack_Checking.Operations.
6986
6987         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
6988
6989         * s-stache.ads, s-stache.adb: Move the operations related to stack
6990         checking from this package to package System.Stack_Checking.Operations.
6991         This way, stack checking operations are only linked in the final
6992         executable when using the -fstack-check flag.
6993
6994 2004-03-18  Doug Rupp  <rupp@gnat.com>
6995
6996         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
6997         Reorganize ifeq's.
6998
6999         * 5qsystem.ads, 5xcrtl.ads: New files.
7000
7001 2004-03-18  Vincent Celier  <celier@gnat.com>
7002
7003         * prj.adb (Reset): Reset hash table Files_Htable
7004
7005         * prj-env.adb (Source_Paths, Object_Paths): New tables.
7006         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
7007         the procedures Add_To_Path_File.
7008         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
7009         making sure that each directory is present only once and, for object
7010         dirs, when a directory already present is added, the duplicate is
7011         removed and the directory is always put as the last in the table.
7012         Write the path files at the end of these accumulations.
7013
7014         * prj-nmsc.adb (Record_Source): Add source file name in hash table
7015         Files_Htable for all sources.
7016
7017         * prj-proc.adb (Process): Remove restrictions between not directly
7018         related extending projects.
7019
7020 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
7021
7022         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
7023         (Find_Sources): Minor speed optimization.
7024
7025         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
7026         parameter Trusted_Mode.
7027
7028 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
7029
7030         * scn.adb (Determine_License): Take into account a degenerated case
7031         when the source contains only comments.
7032
7033 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
7034
7035         * sem_warn.adb (Check_References): For a warning on a selected
7036         component that does not come from source, locate an uninitialized
7037         component of the record type to produce a more precise error message.
7038
7039 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
7040
7041         * 3zsoccon.ads: Fix multicast options.
7042
7043         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
7044         in the spec.
7045
7046 2004-03-15  Robert Dewar  <dewar@gnat.com>
7047
7048         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
7049         pragma used for a private type.
7050
7051         * lib-xref.adb (Generate_Reference): Do not generate warning if
7052         reference is in a different unit from the pragma Unreferenced.
7053
7054         * 5vtpopde.adb: Minor reformatting
7055         Fix casing of To_Task_ID
7056
7057         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
7058         flag if we have an unchecked conversion to an access type in the same
7059         unit.
7060
7061 2004-03-15  Geert Bosch  <bosch@gnat.com>
7062
7063         * a-ngcoty.adb (Modulus): In alternate formula for large real or
7064         imaginary parts, use Double precision throughout.
7065
7066         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
7067         we want to be able to compile run-time with -gnata for testing, but
7068         this may also be instantiated in user code that is compiled with -gnata.
7069
7070 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
7071
7072         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
7073         codes. Having a separate type for this is useful to enforce consistency
7074         throughout the various run-time units.
7075         (Exception_Data): Use Exception_Code for Import_Code.
7076
7077         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
7078         Natural and Integer in various places.
7079         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
7080         with the severity bits masked off.
7081         (Register_VMS_Exception): Handle the additional exception data pointer
7082         argument.
7083
7084         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
7085         component, now reflected by an exported accessor.
7086         (is_handled_by): New routine to compute whether the propagated
7087         occurrence matches some handler choice specification. Extracted out of
7088         get_action_description_for, and expanded to take care of the VMS
7089         specifities.
7090         (get_action_description_for): Use is_handled_by instead of an explicit
7091         complex condition to decide if the current choice at hand catches the
7092         propagated occurrence.
7093
7094         * raise.h (Exception_Code): New type for C.
7095
7096         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
7097         System.Standard_Library.Exception_Code, to allow references from the
7098         pragma import/export expander.
7099
7100         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
7101         New accessors to allow easy access to GNAT exception data
7102         characteristics.
7103         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
7104         redundant Handled_By_Others component, helper for the personality
7105         routine which will now be able to call the appropriate exception data
7106         accessor instead.
7107
7108         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
7109         component of Standard_Exception_Type to be the closest possible to
7110         Exception_Code in System.Standard_Library, that we cannot get at this
7111         point. Expand a ??? comment to notify that this type node should
7112         probably be rewritten later on.
7113
7114         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
7115         registration call to include a pointer to the exception object in the
7116         arguments.
7117
7118         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
7119         instead of int and explicit bitmasks.
7120
7121 2004-03-15  Vincent Celier  <celier@gnat.com>
7122
7123         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
7124         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
7125
7126         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
7127         longer needed now that it is in the spec of
7128         System.Tasking.Task_Attributes.
7129
7130         * adaint.h, adaint.c: (__gnat_create_output_file): New function
7131
7132         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
7133
7134         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
7135
7136         * make.adb (Gnatmake): Do not check the executable suffix; it is being
7137         taken care of in Scan_Make_Arg.
7138         (Scan_Make_Arg): Add the executable suffix only if the argument
7139         following -o, in canonical case, does not end with the executable
7140         suffix.  When in verbose mode and executable file name does not end
7141         with executable suffix, output the executable name, in canonical case.
7142
7143         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
7144         to avoid warnings when instantiating Ada.Task_Attributes.
7145         Minor reformating.
7146
7147         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
7148         in the correct order.
7149
7150         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
7151         redirect standard output and error to a file for the invocation of the
7152         compiler, then read the file.
7153
7154         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
7155         directory, instead of the Value.
7156         (Find_Source_Dirs): Remove useless code & comments.
7157
7158 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
7159
7160         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
7161         tagged type is inherited, and the parent operation is not frozen yet,
7162         force generation of a freeze node for the inherited operation, so the
7163         corresponding dispatch entry is properly initialized.
7164         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
7165         when looking for user-defined equality operation.
7166
7167         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
7168         boolean when locating primitive equality of tagged component.
7169
7170         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
7171         bit-aligned field and the right-hand side a string literal, introduce
7172         a temporary before expanding assignment into a loop.
7173
7174         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
7175         priority in full, to ensure that any expanded subepxressions of it are
7176         elaborated in the scope of the init_proc.
7177
7178         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
7179         after object declaration, skipping over code that may have been
7180         generated for validity checks.
7181
7182         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
7183         discriminants, ignore the known discriminants of its full view, if
7184         any, to check legality.
7185
7186         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
7187         component if type has unknown discriminants.
7188         (Analyze_Private_Extension_Declaration): Discriminant constraint is
7189         null if type has unknown discriminants.
7190
7191         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
7192         for end label when present.
7193
7194         * s-fileio.adb (Open): When called with a C_Stream, use given name for
7195         temporary file, rather than an empty string.
7196
7197 2004-03-15  Ed Falis  <falis@gnat.com>
7198
7199         * s-thread.adb: Removed, no longer used.
7200
7201 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7202
7203         * decl.c (target.h): Now include.
7204         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
7205         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
7206         (validate_size): For POINTER_TYPE, get smallest size permitted on
7207         machine.
7208
7209         * fe.h: Sort Einfo decls and add Set_Mechanism.
7210
7211         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
7212         (ada/decl.o): Depends on target.h.
7213
7214         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
7215         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
7216
7217 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
7218
7219         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
7220
7221         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
7222         Insert_Dereference_Action when rewriting an implicit dereference into
7223         an explicit one, this will be taken care of during expansion of the
7224         explicit dereference.
7225         (Expand_N_Slice): Same. Always do the rewriting, even for the case
7226         of non-packed slices, since the dereference action generated by
7227         expansion of the explicit dereference is needed in any case.
7228         (Expand_N_Selected_Component): When rewriting an implicit dereference,
7229         analyze and resolve the rewritten explicit dereference so it is seen
7230         by the expander.
7231         (Insert_Dereference_Action): This procedure is now called only for the
7232         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
7233         dereferences that do not come from source (including explicit
7234         dereferences resulting from rewriting implicit ones), but do not
7235         recursively insert a check for the dereference nodes contained within
7236         the check.
7237         (Insert_Dereference_Action): Clarify and correct comment.
7238
7239 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
7240
7241         PR ada/14131
7242         Move language detection to the top level.
7243         * config-lang.in: Build by default.
7244
7245 2004-03-05  Robert Dewar  <dewar@gnat.com>
7246
7247         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
7248
7249         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
7250         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
7251         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
7252         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
7253         unchecked conversion to spec to avoid warnings.
7254
7255         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
7256         to Task_ID
7257
7258         * 7stpopsp.adb: Correct casing in To_Task_ID call
7259
7260         * a-strsea.ads, a-strsea.adb: Minor reformatting
7261
7262         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
7263
7264         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
7265         Adjust Max_Msg_Length to be clearly large enough.
7266
7267         * fe.h: Define In_Same_Source_Unit
7268
7269         * osint.adb: Add pragma Warnings Off to suppress warnings
7270         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
7271         aliasing warnings.
7272
7273         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
7274
7275         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
7276
7277         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
7278
7279         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
7280
7281         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
7282
7283         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
7284         node. We now do generate them for gcc back end.
7285
7286         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
7287         warning.
7288
7289         * sinput-c.adb: Fix bad name in header.
7290         Add pragma Warnings Off to suppress aliasing warning.
7291
7292         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
7293
7294         * snames.h, snames.ads, snames.adb: Add entry for pragma
7295         No_Strict_Aliasing.
7296
7297 2004-03-05  Vincent Celier  <celier@gnat.com>
7298
7299         * prj-com.ads: Add hash table Files_Htable to check when a file name
7300         is already a source of another project.
7301
7302         * prj-nmsc.adb (Record_Source): Before recording a new source, check
7303         if its file name is not already a source of another project. Report an
7304         error if it is.
7305
7306         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
7307         source file name, call gnatpp with all the sources of the main project.
7308
7309         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
7310         of file names.
7311
7312         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
7313         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
7314         /RUNTIME_SYSTEM=, converted to --RTS=
7315         /NOTABS, converted to -notabs
7316
7317 2004-03-05  Pascal Obry  <obry@gnat.com>
7318
7319         * make.adb: Minor reformatting.
7320
7321 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
7322
7323         Part of implemention of AI-262.
7324         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
7325
7326         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
7327         procedure.
7328
7329         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
7330         when component type is a partially constrained class-wide subtype.
7331         (Constrain_Discriminated_Type): If parent type has unknown
7332         discriminants, a constraint is illegal, even if full view has
7333         discriminants.
7334         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
7335         with unknown discriminants whose full view is a discriminated record.
7336
7337         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
7338         flag, to handle properly derivations of tagged types with unknown
7339         discriminants.
7340         (Analyze_Package_Spec, Analyze_Package_Body): Install
7341         Private_With_Clauses before analyzing private part or body.
7342
7343         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
7344         Has_Discriminants can be true for a given type (documentation).
7345
7346 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
7347
7348         * s-restri.ads: Fix license (GPL->GMGPL).
7349
7350         * s-tassta.adb: Minor reformatting.
7351
7352         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
7353         by calls to Exit_One_ATC_Level, since additional clean up is performed
7354         by this function.
7355
7356         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
7357         by calls to Exit_One_ATC_Level, since additional clean up is performed
7358         by this function.
7359
7360 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7361
7362         * trans.c: Reflect GCC changes to fix bootstrap problem.
7363         Add warning for suspicious aliasing unchecked conversion.
7364
7365 2004-03-05  GNAT Script  <nobody@gnat.com>
7366
7367         * Make-lang.in: Makefile automatically updated
7368
7369 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
7370
7371         * ali.adb (Read_Instantiation_Instance): Do not modify the
7372         current_file_num when reading information about instantiations, since
7373         this corrupts files in later references.
7374
7375 2004-03-02  Vincent Celier  <celier@gnat.com>
7376
7377         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
7378         before checking if it is read-only.
7379
7380         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
7381         of SRC_DIRS and eliminate duplicates.
7382
7383         * gprcmd.adb: Replace command "path" with command "path_sep" to return
7384         the path separator.
7385         (Usage): Document path_sep
7386
7387         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
7388         C++ compiler. No need for a script.
7389         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
7390         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
7391         subst.
7392
7393         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
7394         where there are Ada sources.
7395         (Set_Ada_Paths): Only add to the include path the source dirs of project
7396         with Ada sources.
7397         (Add_To_Path): Add the Display_Values of the directories, not their
7398         Values.
7399
7400         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
7401         data.
7402
7403         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
7404         is not No_Name.
7405         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
7406         Value is canonicalized.
7407         (Language_Independent_Check): Do not copy Value to Display_Value when
7408         canonicalizing Value.
7409
7410         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
7411         path to find limited with cycles.
7412         (Parse_Single_Project): Use canonical cased path to find the end of a
7413         with cycle.
7414
7415 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
7416
7417         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
7418         and not a child unit.
7419
7420         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
7421         appear in a with_clause.
7422
7423         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
7424         only happen in type_annotate mode, do not try to elaborate it.
7425
7426         * exp_util.adb (Force_Evaluation): If expression is a selected
7427         component on the left of an assignment, use a renaming rather than a
7428         temporary to remove side effects.
7429
7430         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
7431         inlined instance body, which is analyzed before the end of the
7432         enclosing scope.
7433
7434 2004-03-02  Robert Dewar  <dewar@gnat.com>
7435
7436         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
7437         sem_ch4.adb: Use new feature for substitution of keywords in VMS
7438
7439         * errout.ads, errout.adb: Implement new circuit for substitution of
7440         keywords in VMS.
7441
7442         * sem_case.adb (Analyze_Choices): Place message properly when case is
7443         a subtype reference rather than an explicit range.
7444
7445         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
7446
7447 2004-03-02  Doug Rupp  <rupp@gnat.com>
7448
7449         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
7450
7451 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
7452
7453         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
7454
7455 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7456
7457         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
7458         BLKmode bitfield.
7459
7460 2004-02-25  Robert Dewar  <dewar@gnat.com>
7461
7462         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
7463         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
7464         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
7465         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
7466         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
7467         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
7468         the defining instance of the type to avoid aliasing problems.
7469         Fix copyright header.  Fix bad comments in package header.
7470
7471         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
7472
7473 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
7474
7475         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
7476         rewritten as references when aliased through an address clause.
7477
7478         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
7479         whether call can be interpreted as an indirect call to the result of a
7480         parameterless function call returning an access subprogram.
7481
7482 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
7483
7484         Code clean up:
7485         * exp_ch7.adb (Make_Clean): Remove generation of calls to
7486         Unlock[_Entries], since this is now done by Service_Entries directly.
7487
7488         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
7489
7490         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
7491         Requeue_Call for better code readability. Change spec and update calls:
7492         PO_Service_Entries now unlock the PO on exit.
7493         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
7494         PO_Service_Entries.
7495
7496         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
7497
7498         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
7499
7500 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
7501
7502         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
7503         protected subprogram call and analyzing the result of such expanding
7504         in case when the called protected subprogram is eliminated.
7505
7506         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
7507         names.
7508
7509 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
7510
7511         * Makefile.in: Clean ups.
7512
7513 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
7514
7515         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
7516         protected operations if original subprogram is flagged as eliminated.
7517         (Expand_N_Subprogram_Body): For a protected operation, create
7518         discriminals for next operation before checking whether the operation
7519         is eliminated.
7520
7521         * exp_ch9.adb (Expand_N_Protected_Body,
7522         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
7523         for internal protected operations if the original subprogram is
7524         eliminated.
7525
7526         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
7527         declared in a single protected object.
7528
7529 2004-02-23  Vincent Celier  <celier@gnat.com>
7530
7531         * prj-attr.adb: Make attribute Builder'Executable an associative array,
7532         case insensitive if file names are case insensitive, instead of a
7533         standard associative array.
7534
7535         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
7536         them as case insensitive on platforms where the file names are case
7537         sensitive.
7538
7539         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
7540         project file has already been parsed that canonical path are compared.
7541
7542 2004-02-23  Robert Dewar  <dewar@gnat.com>
7543
7544         * sinput-c.ads: Correct bad unit title in header
7545
7546         * freeze.adb: Minor reformatting
7547
7548 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7549
7550         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
7551         nonaddressable COMPONENT_REF that is removing padding that we are
7552         taking the address of, take the address of the padded record instead
7553         if item is variable size.
7554
7555 2004-02-20  Robert Dewar  <dewar@gnat.com>
7556
7557         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
7558
7559 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
7560
7561         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
7562         itype references for the constrained designated type of a component
7563         whose base type is already frozen.
7564
7565 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
7566
7567         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
7568         avoid GCC warnings.
7569
7570 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
7571
7572         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
7573         identifier for a phantom package that rewrites the formal package
7574         declaration with a box. The Add semantic decorations for the defining
7575         identifier from the original node (that represents the formal package).
7576
7577 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
7578
7579         * Make-lang.in (ada/stamp-sdefault): Use the top level
7580         move-if-change.
7581
7582 2004-02-19  Richard Henderson  <rth@redhat.com>
7583
7584         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
7585
7586 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
7587
7588         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
7589         Scan_ALI can be used for multiple ALI files without reinitializing
7590         between calls.
7591
7592 2004-02-18  Robert Dewar  <dewar@gnat.com>
7593
7594         * debug.adb: Minor reformatting.
7595
7596 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7597
7598         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
7599         to zero if there is an address clause.
7600
7601 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
7602
7603         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
7604
7605 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
7606
7607         * layout.adb (Layout_Component_List): Revise generation of call to
7608         discriminant-checking function to pass selections of all of the type's
7609         discriminants rather than just the variant-controlling discriminant.
7610
7611 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
7612
7613         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
7614         fail in the current setup and triggers spurious system error messages.
7615         Pretend it occurred and failed instead.
7616
7617 2004-02-18  Vincent Celier  <celier@gnat.com>
7618
7619         * bld.adb: Mark FLDFLAGS as saved
7620         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
7621         it is not the root project.  Put each directory to be
7622         extended between double quotes to prevent it to be expanded on Windows.
7623         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
7624         the project file. Set them back to their initial values if they have not
7625         been set in the project file.
7626
7627         * gprcmd.adb: (Gprdebug, Debug): New global variables
7628         (Display_Command): New procedure
7629         (Usage): Document new command "linkopts"
7630         Call Display_Command when env var GPRDEBUG has the value "TRUE"
7631         Implement new command "linkopts"
7632         Remove quotes that may be around arguments for "extend"
7633         Always call Normalize_Pathname with arguments formatted for the platform
7634
7635         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
7636         Change @echo to @$(display) in target clean to be able to clean silently
7637
7638         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
7639
7640         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
7641         canonical case.
7642
7643         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
7644         = Extending_All when current project is an extending all project.
7645
7646         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
7647         set to True only for LINK command, after Unix switch -o.
7648         (Process_Arguments): Set Output_File_Expected to True for LINK command
7649         after Unix switch -o. When Output_File_Expected is True, never add an
7650         extension to a file name.
7651
7652         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
7653         option file name, only to the --for-linker= switch.
7654         (Option_File_Name): If option file name do not end with ".opt", append
7655         "/OPTIONS".
7656
7657 2004-02-18  GNAT Script  <nobody@gnat.com>
7658
7659         * Make-lang.in: Makefile automatically updated
7660
7661 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
7662
7663         * Make-lang.in (stamp-sdefault): Do not depend on
7664         move-if-change.
7665
7666 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
7667
7668         * config-lang.in: Disable Ada by default until probe logic for
7669         a bootstrap Ada compiler can be moved to the top level configure
7670         script.
7671
7672 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
7673
7674         * decl.c (components_to_record): Don't claim that the internal fields
7675         we make to hold the variant parts are semantically addressable, because
7676         they are not.
7677
7678         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
7679         adjust the comment describing the modular type form when we can use it.
7680         (Install_PAT): Account for the Esiz renaming.
7681
7682         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
7683         sc_onstack context indication before raising the exception to which
7684         the signal is mapped. Allows better handling of later signals possibly
7685         triggered by the resumed user code if the exception is handled.
7686
7687 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
7688
7689         * 5zinit.adb: Removed, no longer used.
7690
7691 2004-02-12  Robert Dewar  <dewar@gnat.com>
7692
7693         * ali.adb: Remove separating space between parameters on R line. Makes
7694         format consistent with format used by the binder for Set_Globals call.
7695
7696         * atree.ads, atree.adb: Minor reformatting (new function header format)
7697
7698         * bindgen.adb: Add Run-Time Globals documentation section containing
7699         detailed documentation of the globals passed from the binder file to
7700         the run time.
7701
7702         * gnatls.adb: Minor reformatting
7703
7704         * init.c (__gnat_set_globals): Add note pointing to documentation in
7705         bindgen.
7706
7707         * lib-writ.ads, lib-writ.adb: Remove separating space between
7708         parameters on R line.
7709         Makes format consistent with format used by the binder for Set_Globals
7710         call.
7711
7712         * osint.ads: Add 2004 to copyright notice
7713         Minor reformatting
7714
7715         * snames.ads: Correct capitalization of FIFO_Within_Priorities
7716         Noticed during code reading, documentation issue only
7717
7718         * usage.adb: Remove junk line for obsolete C switch
7719         Noticed during code reading
7720
7721 2004-02-12  Vincent Celier  <celier@gnat.com>
7722
7723         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
7724         extend for each directory, so that multiple /** directories are
7725         extended individually.
7726         (Recursive_Process): Set the default for LANGUAGES to ada
7727
7728         * gprcmd.adb: Define new command "ignore", to do nothing.
7729         Implement new comment "path".
7730
7731         * Makefile.generic: Suppress output when SILENT is set
7732         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
7733         used, so that the correct compiler is invoked.
7734         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
7735         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
7736
7737 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
7738
7739         * Makefile.in: Clean ups and remove obsolete targets.
7740
7741 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
7742
7743         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
7744         predicate declared in exp_util.
7745
7746         * exp_util.adb: Add comments.
7747
7748         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
7749         visibility before compiling context of the subunit.
7750
7751         * sem_res.adb (Check_Parameterless_Call): If the context expects a
7752         value but the name is a procedure, do not attempt to analyze as a call,
7753         in order to obtain more telling diagnostics.
7754
7755         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
7756         'Access on parameterless function calls.
7757         (Normalize_Actuals): For a parameterless function call with missing
7758         actuals, defer diagnostic until resolution of enclosing call.
7759
7760         * sem_util.adb (Wrong_Type): If the context type is an access to
7761         subprogram and the expression is a procedure name, suggest a missing
7762         'attribute.
7763
7764 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
7765             Nathanael Nerode  <neroden@gcc.gnu.org>
7766
7767         PR ada/6637, PR ada/5911
7768         Merge with libada-branch:
7769         * config-lang.in: Build libada only when ada is built.
7770
7771 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
7772
7773         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
7774         for a tagged type, verify that both formals have the same type.
7775
7776         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
7777         temporary when the formal is an in-parameter and the actual a possibly
7778         unaligned slice.
7779
7780         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
7781         when expansion is disabled, to ensure proper name capture with
7782         overloaded literals.  Condition can be of any boolean type, resolve
7783         accordingly.
7784
7785         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
7786         renaming is for a formal subprogram with a default operator name, and
7787         there is a usable operator that is visible at the point of
7788         instantiation.
7789
7790 2004-02-09  Robert Dewar  <dewar@gnat.com>
7791
7792         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
7793         rewrite to ignore errors in ali files, intended to allow tools downward
7794         compatibility with new versions of ali files.
7795
7796         * ali.ads: Add new parameter Ignore_Errors
7797
7798         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
7799         duplicating the error message giving the file with restrictions.
7800
7801         * debug.adb: Add debug flag I for gnatbind
7802
7803         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
7804         operators for the case where the operator is a defining operator.
7805
7806         * exp_ch3.adb: Minor reformatting (new function spec format).
7807
7808         * exp_ch4.adb: Add comment for previous change, and make minor
7809         adjustment to loop to always check for improper loop termination.
7810         Minor reformatting throughout (new function spec format).
7811
7812         * gnatbind.adb: Implement -di debug flag for gnatbind
7813
7814         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
7815
7816         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
7817
7818         * lib-load.adb: Fix bad assertion.
7819         Found by testing and code reading.
7820         Minor reformatting.
7821
7822         * lib-load.ads: Minor reformatting.
7823
7824         * lib-writ.adb: There is only one R line now.
7825
7826         * lib-writ.ads: Add documentation on making downward compatible changes
7827         to ali files so old tools work with new ali files.
7828         There is only one R line now.
7829         Add documentation on format incompatibilities (with special GPS note)
7830
7831         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
7832
7833         * par-load.adb: Minor reformatting
7834
7835         * sem_ch8.adb: Fix to error message from last update
7836         Minor reformatting and restructuring of code from last update
7837
7838         * par-prag.adb, snames.adb, snames.ads, snames.h,
7839         sem_prag.adb: Implement pragma Profile.
7840
7841         * stylesw.adb: Implement -gnatyN switch to turn off all style check
7842         options.
7843
7844         * usage.adb: Add line for -gnatyN switch
7845
7846         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
7847
7848 2004-02-09  Albert Lee  <lee@gnat.com>
7849
7850         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
7851
7852 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
7853
7854         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
7855         slices.
7856
7857         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
7858         is nested in an instance that is not frozen yet, to avoid
7859         order-of-elaboration problems in gigi.
7860
7861         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
7862         body the attribute is legal.
7863
7864 2004-02-09  Robert Dewar  <dewar@gnat.com>
7865
7866         * s-rident.ads: Minor comment correction
7867
7868         * targparm.adb: Remove dependence on uintp completely. There was
7869         always a bug in Make in that it called Targparm before initializing
7870         the Uint package. The old code appeared to get away with this, but
7871         the new code did not! This caused an assertion error in gnatmake.
7872
7873         * targparm.ads: Fix bad comment, restriction pragmas with parameters
7874         are indeed fully supported.
7875
7876 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
7877
7878         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
7879
7880 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
7881
7882         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
7883         with targetm.calls.promote_prototypes.
7884
7885 2004-02-04  Robert Dewar  <dewar@gnat.com>
7886
7887         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
7888         ali.ads, gprcmd.adb: Minor reformatting
7889
7890         * bindgen.adb: Output restrictions string for new style restrictions
7891         handling
7892
7893         * impunit.adb: Add s-rident.ads (System.Rident) and
7894         s-restri (System.Restrictions)
7895
7896         * lib-writ.adb: Fix bug in writing restrictions string (last few
7897         entries wrong)
7898
7899         * s-restri.ads, s-restri.adb: Change name Restrictions to
7900         Run_Time_Restrictions to avoid conflict with package name.
7901         Add circuit to read and acquire run time restrictions.
7902
7903 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
7904
7905         * restrict.ads, restrict.adb: Use the new restriction
7906         No_Task_Attributes_Package instead of the old No_Task_Attributes.
7907
7908         * sem_prag.adb: No_Task_Attributes is a synonym of
7909         No_Task_Attributes_Package.
7910
7911         * snames.ads, snames.adb: New entry for proper handling of
7912         No_Task_Attributes.
7913
7914         * s-rident.ads: Adding restriction No_Task_Attributes_Package
7915         (AI-00249) that supersedes the GNAT specific restriction
7916         No_Task_Attributes.
7917
7918 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
7919
7920         * sem_prag.adb:
7921         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
7922          body, an identifier may be wrapped in an unchecked conversion.
7923
7924 2004-02-04  Vincent Celier  <celier@gnat.com>
7925
7926         * lib-writ.ads: Comment update for the W lines
7927
7928         * bld.adb: (Expression): An empty string list is static
7929
7930         * fname-uf.adb: Minor comment update
7931
7932         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
7933
7934         * gnatbind.adb: Initialize Cumulative_Restrictions with the
7935         restrictions on the target.
7936
7937 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7938
7939         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
7940         gen_rtx.
7941
7942 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
7943
7944         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
7945
7946 2004-02-02  Vincent Celier  <celier@gnat.com>
7947
7948         * gprcmd.adb (Check_Args): If condition is false, print the invoked
7949         comment before the usage.
7950         Gprcmd: Fail when command is not recognized.
7951         (Usage): Document command "prefix"
7952
7953         * g-md5.adb (Digest): Process last block.
7954         (Update): Do not process last block. Store remaining characters and
7955         length in Context.
7956
7957         * g-md5.ads (Update): Document that several call to update are
7958         equivalent to one call with the concatenated string.
7959         (Context): Add fields to allow new Update behaviour.
7960
7961         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
7962         defaulted to False.
7963         When May_Fail is True and no existing file can be found, return No_File.
7964
7965         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
7966         functions.
7967
7968         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
7969         spec file name instead on the W line.
7970
7971 2004-02-02  Robert Dewar  <dewar@gnat.com>
7972
7973         * ali.adb: Read and acquire info from new format restrictions lines
7974
7975         * bcheck.adb: Add circuits for checking restrictions with parameters
7976
7977         * bindgen.adb: Output dummy restrictions data
7978         To be changed later
7979
7980         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
7981         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
7982         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
7983         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
7984         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
7985
7986         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
7987         the warning message on access to possibly uninitialized variable S)
7988         Minor changes for new restrictions handling.
7989
7990         * gnatbind.adb: Minor reformatting
7991         Minor changes for new restrictions handling
7992         Move circuit for -r processing here from bcheck (cleaner)
7993
7994         * gnatcmd.adb, gnatlink.adb: Minor reformatting
7995
7996         * lib-writ.adb: Output new format restrictions lines
7997
7998         * lib-writ.ads: Document new R format lines for new restrictions
7999         handling.
8000
8001         * s-restri.ads/adb: New files
8002
8003         * Makefile.rtl: Add entry for s-restri.ads/adb
8004
8005         * par-ch3.adb: Fix bad error messages starting with upper case letter
8006         Minor reformatting
8007
8008         * restrict.adb: Major rewrite throughout for new restrictions handling
8009         Major point is to handle restrictions with parameters
8010
8011         * restrict.ads: Major changes in interface to handle restrictions with
8012         parameters. Also generally simplifies setting of restrictions.
8013
8014         * snames.ads/adb: New entry for proper handling of No_Requeue
8015
8016         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
8017         restriction counting.
8018         Other minor changes for new restrictions handling
8019
8020         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
8021         Restriction_Warnings now allows full parameter notation
8022         Major rewrite of Restrictions for new restrictions handling
8023
8024 2004-02-02  Javier Miranda  <miranda@gnat.com>
8025
8026         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
8027         syntax rule for object renaming declarations.
8028         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
8029         component definitions.
8030
8031         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
8032         components.
8033         (Array_Type_Declaration): Give support to access components. In addition
8034         it was also modified to reflect the name of the object in anonymous
8035         array types. The old code did not take into account that it is possible
8036         to have an unconstrained anonymous array with an initial value.
8037         (Check_Or_Process_Discriminants): Allow access discriminant in
8038         non-limited types.
8039         (Process_Discriminants): Allow access discriminant in non-limited types
8040         Initialize the new Access_Definition field in N_Object_Renaming_Decl
8041         node.  Change Ada0Y to Ada 0Y in comments
8042
8043         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
8044         equality operators.
8045         Change Ada0Y to Ada 0Y in comments
8046
8047         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
8048         renamings Change Ada0Y to Ada 0Y in comments
8049
8050         * sem_type.adb (Find_Unique_Type): Give support to the equality
8051         operators for universal access types
8052         Change Ada0Y to Ada 0Y in comments
8053
8054         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
8055
8056         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
8057         field.
8058         (N_Object_Renaming_Declaration): Addition of Access_Definition field
8059         Change Ada0Y to Ada 0Y in comments
8060
8061         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
8062         component definition and object renaming nodes
8063         Change Ada0Y to Ada 0Y in comments
8064
8065 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
8066
8067         * restrict.adb: Use the new restriction identifier
8068         No_Requeue_Statements instead of the old No_Requeue for defining the
8069         restricted profile.
8070
8071         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
8072         No_Requeue_Statements.
8073
8074         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
8075         that supersedes the GNAT specific restriction No_Requeue. The later is
8076         kept for backward compatibility.
8077
8078 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
8079
8080         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
8081         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
8082         pragma and fix incorrect ones.
8083
8084         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
8085         warning if the pragma is redundant.
8086
8087 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
8088
8089         * 5staprop.adb: Add missing 'constant' keywords.
8090
8091         * Makefile.in: use consistent value for SYMLIB on
8092         platforms where libaddr2line is supported.
8093
8094 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8095
8096         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
8097         annotating types.
8098
8099 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
8100
8101         * init.c (__gnat_install_handler): Setup an alternate stack for signal
8102         handlers in the environment thread. This allows proper propagation of
8103         an exception on stack overflows in this thread even when the builtin
8104         ABI stack-checking scheme is used without support for a stack reserve
8105         region.
8106
8107         * utils.c (create_field_decl): Augment the head comment about bitfield
8108         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
8109         here, because the former is not accurate enough at this point.
8110         Let finish_record_type decide instead.
8111         Don't make a bitfield if the field is to be addressable.
8112         Always set a size for the field if the record is packed, to ensure the
8113         checks for bitfield creation are triggered.
8114         (finish_record_type): During last pass over the fields, clear
8115         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
8116         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
8117         from DECL_BIT_FIELD.
8118
8119 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
8120
8121         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
8122         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
8123         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
8124
8125 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8126
8127         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
8128
8129         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
8130         (ZCX_By_Default): Likewise.
8131         (Front_End_ZCX_Support): Likewise.
8132
8133         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
8134         (Initialize_Lock): Mark Level unreferenced.
8135         (Sleep): Mark Reason unreferenced.
8136         (Timed_Sleep): Likewise.
8137         (Wakeup): Likewise.
8138         (Exit_Task): Use Result.
8139         (Check_No_Locks): Mark Self_ID unreferenced.
8140
8141         * 5gtasinf.adb (New_Sproc): Make Attr constant.
8142         (Bound_Thread_Attributes): Make Sproc constant.
8143         (New_Bound_Thread_Attributes): Likewise.
8144
8145 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
8146
8147         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
8148         one-dimensional array an slice assignments, when component type is
8149         controlled.
8150
8151         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
8152         component type is controlled, and control_actions are in effect, use
8153         TSS procedure rather than generating inline code.
8154
8155         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
8156         arrays with controlled components.
8157
8158 2004-01-26  Vincent Celier  <celier@gnat.com>
8159
8160         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
8161         command line for the non VMS case.
8162
8163         * gnatlink.adb (Process_Binder_File): When building object file, if
8164         GNU linker is used, put all object paths between quotes, to prevent ld
8165         error when there are unusual characters (such as '!') in the paths.
8166
8167         * Makefile.generic: When there are sources in Ada and the main is in
8168         C/C++, invoke gnatmake with -B, instead of -z.
8169
8170         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
8171         from VMS_Conversion.
8172         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
8173         specification of argument file on the command line.
8174
8175 2004-01-26  Bernard Banner  <banner@gnat.com>
8176
8177         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
8178
8179 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
8180
8181         * snames.adb: Update copyright notice.
8182         Add info on slice assignment for controlled arrays.
8183
8184 2004-01-23  Robert Dewar  <dewar@gnat.com>
8185
8186         * exp_aggr.adb: Minor reformatting
8187
8188         * exp_ch9.adb: Minor code clean up
8189         Minor reformatting
8190         Fix bad character in comment
8191
8192         PR ada/13471
8193         * targparm.adb (Get_Target_Parameters): Give clean abort error on
8194         unexpected end of file, along with more detailed message.
8195
8196 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8197
8198         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
8199         PAT.
8200
8201         * decl.c (copy_alias_set): New function.
8202         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
8203
8204 2004-01-23  Doug Rupp  <rupp@gnat.com>
8205
8206         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
8207         lib$${file} in case subsequent character is not a separator.
8208
8209 2004-01-23  Vincent Celier  <celier@gnat.com>
8210
8211         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
8212         when the GCC version is at least 3.
8213
8214         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
8215         Remove all "Opt.", to prepare for opt split
8216
8217         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
8218         Extends_All. Set to True when the project parsed is an extending all
8219         project. Fails for importing an extending all project only when the
8220         imported project is an extending all project.
8221         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
8222         depending on the value of Extends_All returned.
8223
8224         * prj-proc.adb (Process): Check that no project shares its object
8225         directory with a project that extends it, directly or indirectly,
8226         including a virtual project.
8227         Check that no project extended by another project shares its object
8228         directory with another also extended project.
8229
8230         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
8231         Kind = N_With_Clause
8232
8233         * prj-tree.ads: Minor reformatting
8234         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
8235
8236 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
8237
8238         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
8239         applies to a type with an incomplete view, use full view in Name of
8240         clause, for consistency with uses of Get_Attribute_Definition_Clause.
8241
8242 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
8243
8244         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
8245         SCHED_RR, since other values are not supported by this policy.
8246         (Initialize): Move initialization of mutex attribute to package
8247         elaboration, to prevent early access to this variable.
8248
8249         * Makefile.in: Remove mention of Makefile.adalib, unused.
8250
8251         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
8252         1ssecsta.ads: Removed, unused.
8253
8254 2004-01-21  Javier Miranda  <miranda@gnat.com>
8255
8256         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
8257         entity if already built in the current scope.
8258
8259         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
8260         reminder in internal scopes. Required for nested limited aggregates.
8261
8262 2004-01-21  Doug Rupp  <rupp@gnat.com>
8263
8264         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
8265         VMS. Replace all occurences of libgnat- and libgnarl- with
8266         libgnat$(hyphen) and libgnarl$(hyphen).
8267         Fixed shared library build problem on VMS.
8268
8269 2004-01-21  Robert Dewar  <dewar@gnat.com>
8270
8271         * mlib-prj.adb: Minor reformatting
8272
8273 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
8274
8275         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
8276         'constant' keywords for declaration of pointers that are not modified.
8277
8278         * exp_pakd.adb: Fix English in comment.
8279
8280 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
8281
8282         PR ada/10889
8283         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
8284         copy all attributes of the parent, including the foreign language
8285         convention.
8286
8287 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
8288
8289         PR ada/10565
8290         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
8291         for 'delay until' statement.
8292
8293 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
8294
8295         * Make-lang.in: Replace $(docdir) with doc.
8296         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
8297         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
8298         to use consistent MAKEINFO rule.
8299         (ada.man, ada.srcman): Dummy entry.
8300         (ADA_INFOFILES): Define.
8301         (ada.info, ada.srcinfo): New rules.
8302
8303 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
8304
8305         * utils.c: Update copyright notice, missed in previous change.
8306
8307 2004-01-19  Vincent Celier  <celier@gnat.com>
8308
8309         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
8310         args if Bind is True. Set First_ALI, if not already done.
8311         (Build_Library): For Stand Alone Libraries, extract from one ALI file
8312         an eventual --RTS switch, for gnatbind, and all backend switches +
8313         --RTS, for linking.
8314
8315 2004-01-19  Robert Dewar  <dewar@gnat.com>
8316
8317         * sem_attr.adb, memtrack.adb: Minor reformatting
8318
8319 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
8320
8321         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
8322         that rename enumeration literals. This is properly done in sem_eval.
8323
8324         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
8325         to functions that rename enumeration literals.
8326
8327         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
8328         functions that rename enumeration literals.
8329
8330 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
8331
8332         * Make-lang.in (utils.o): Depend on target.h.
8333         * utils.c: Include target.h.
8334         (process_attributes): Use targetm.have_named_sections instead
8335         of ASM_OUTPUT_SECTION_NAME.
8336
8337 2004-01-16  Andreas Jaeger  <aj@suse.de>
8338
8339         * Makefile.in: Add $(DESTDIR).
8340
8341 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
8342
8343         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
8344         also when not defining if a Size clause applies. That information is
8345         not to be ignored.
8346
8347 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
8348
8349         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
8350         symbolic links for the shared gnat run time when needed.
8351
8352 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
8353
8354         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
8355         for writing, and terminate with an error message if not.
8356
8357 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
8358
8359         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
8360         warning on an access to subprogram in an instance, when the target
8361         type is declared in the same generic unit.
8362         (Eval_Attribute): If 'access is known to fail accessibility check,
8363         rewrite as a raise statement.
8364
8365 2004-01-15  GNAT Script  <nobody@gnat.com>
8366
8367         * Make-lang.in: Makefile automatically updated
8368
8369 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
8370
8371         * Make-lang.in (ada.srcextra): Dummy entry.
8372
8373 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
8374
8375         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
8376
8377 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
8378
8379         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
8380         components that are initialized with aggregates.
8381
8382 2004-01-13  Vincent Celier  <celier@gnat.com>
8383
8384         * gnatlink.adb (Process_Binder_File): To find directory of shared
8385         libgcc, if "gcc-lib" is not a subdirectory, look for the last
8386         subdirectory "lib" in the path of the shared libgnat or libgnarl.
8387
8388         * make.adb (Gnatmake): If GCC version is at least 3, link with
8389         -shared-libgcc, when there is at least one shared library project.
8390
8391         * opt.ads (GCC_Version): New integer constant.
8392
8393         * adaint.c (get_gcc_version): New function.
8394
8395 2004-01-13  Robert Dewar  <dewar@gnat.com>
8396
8397         * sem_dist.adb, sem_res.adb, sem_util.adb,
8398         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
8399         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
8400
8401 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
8402
8403         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
8404         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
8405         declarations.
8406
8407 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
8408
8409         * misc.c: Remove trailing spaces.
8410         Update copyright notice missed in previous change.
8411
8412         PR ada/13572
8413         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
8414         prefix/share/make
8415
8416         * Makefile.generic: Update copyright.
8417         Add license notice.
8418
8419         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
8420         of prefix/share/make.
8421
8422         * Makefile.prolog: Update copyright.
8423         Add license notice.
8424
8425 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
8426
8427         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
8428         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
8429         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
8430         instead of String.
8431
8432         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
8433         signature.
8434
8435 2004-01-12  Javier Miranda  <miranda@gnat.com>
8436
8437         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
8438         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
8439         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
8440         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
8441         Component_Definition node.
8442
8443 2004-01-12  Ed Falis  <falis@gnat.com>
8444
8445         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
8446
8447 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
8448
8449         * link.c: Change default libgnat kind to STATIC for FreeBSD.
8450
8451 2004-01-12  Bernard Banner  <banner@gnat.com>
8452
8453         * Makefile.in: map 86numaux to a-numaux for x86_64
8454
8455 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
8456
8457         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
8458         generated to rename a generic actual, go to the actual itself, the
8459         subtype is not a user-visible entity.
8460
8461         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
8462         part is a private subtype, reset the visibility of its full view, if
8463         any, to be consistent.
8464
8465         PR ada/13417
8466         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
8467         to use a generic package G as a formal package for another generic
8468         declared within G.
8469
8470 2004-01-12  Robert Dewar  <dewar@gnat.com>
8471
8472         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
8473
8474         * usage.adb: Remove mention of obsolete -gnatwb switch
8475         Noticed during code reading
8476
8477 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
8478
8479         * 1ssecsta.adb: Minor changes for -gnatwa warnings
8480
8481 2004-01-12  GNAT Script  <nobody@gnat.com>
8482
8483         * Make-lang.in: Makefile automatically updated
8484
8485 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
8486
8487         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
8488
8489 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8490
8491         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
8492
8493 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
8494
8495         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
8496         Update comment and copyright date.
8497         * stamp-xgnatug: Delete.
8498
8499 2004-01-05  Robert Dewar  <dewar@gnat.com>
8500
8501         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
8502         be modified by the binder generated main program if the -D switch is
8503         used.
8504
8505         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
8506         imported functions (since now we expect this to be done for imported
8507         functions)
8508
8509         * 5vtaprop.adb: Add several ??? for sections requiring more comments
8510         Minor reformatting throughout
8511
8512         * 5zinit.adb: Minor reformatting
8513         Add 2004 to copyright date
8514         Minor changes to avoid -gnatwa warnings
8515         Correct some instances of using OR instead of OR ELSE (noted while
8516         doing reformatting)
8517
8518         * sprint.adb: Minor updates to avoid -gnatwa warnings
8519
8520         * s-secsta.ads, s-secsta.adb:
8521         (SS_Get_Max): New function to obtain high water mark for ss stack
8522         Default_Secondary_Stack is not a constant since it may be modified by
8523         the binder generated main program if the -D switch is used.
8524
8525         * switch-b.adb: New -Dnnn switch for binder
8526
8527         * switch-c.adb:
8528         Make -gnatg imply all warnings currently in -gnatwa
8529
8530         * vms_conv.adb: Minor reformatting
8531         Add 2004 to copyright notice
8532         Add 2004 to printed copyright notice
8533
8534         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
8535         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
8536         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
8537         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
8538         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
8539         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
8540         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
8541         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
8542         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
8543         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
8544         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
8545         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
8546         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
8547         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
8548         checks.adb, clean.adb, cstand.adb, einfo.ads,
8549         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
8550         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
8551         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
8552         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
8553         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
8554         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
8555         Minor reformatting and code clean ups.
8556         Minor changes to prevent -gnatwa warnings
8557
8558         * ali.adb: Minor reformatting and cleanup of code
8559         Acquire new SS indication of secondary stack use from ali files
8560
8561         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
8562         (since now we expect this to be done for imported functions)
8563
8564         * bindgen.adb: Generate call to modify default secondary stack size if
8565         -Dnnn switch given
8566
8567         * bindusg.adb: Add line for new -D switch
8568
8569         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
8570         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
8571         Add circuitry for both records and arrays to avoid gigi
8572         processing if the type involved has non-bit-aligned components
8573
8574         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
8575         N_String_Literal node always references an E_String_Literal_Subtype
8576         entity. This may not be true in the future.
8577         (Possible_Bit_Aligned_Component): Move processing of
8578         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
8579
8580         * exp_ch6.adb (Expand_Thread_Body): Pick up
8581         Default_Secondary_Stack_Size as variable so that we get value modified
8582         by possible -Dnnn binder parameter.
8583
8584         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
8585         (Type_May_Have_Bit_Aligned_Components): New function.
8586
8587         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
8588         (Type_May_Have_Bit_Aligned_Components): New function.
8589
8590         * fe.h: (Set_Identifier_Casing): Fix prototype.
8591         Add declaration for Sem_Elim.Eliminate_Error_Msg.
8592         Minor reformatting.
8593
8594         * freeze.adb (Freeze_Entity): Add RM reference to error message about
8595         importing constant atomic/volatile objects.
8596         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
8597         unless explicit Pure_Function pragma given, to avoid insidious bug of
8598         call to non-pure imported function getting eliminated.
8599
8600         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
8601         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
8602         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
8603         Add 2004 to printed copyright notice
8604
8605         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
8606         stack used.
8607
8608         * Makefile.rtl: Add entry for g-sestin.o
8609         g-sestin.ads: New file.
8610
8611         * mdll.adb: Minor changes to avoid -gnatwa warnings
8612
8613         * mlib-tgt.adb: Minor reformatting
8614
8615         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
8616         New switch Sec_Stack_Used (GNAT, GNATBIND)
8617         Make Default_Secondary_Stack_Size a variable instead of a constant,
8618         so that it can be modified by the new -Dnnn bind switch.
8619
8620         * rtsfind.adb (Load_Fail): Give full error message in configurable
8621         run-time mode if all_errors mode is set. This was not done in the case
8622         of a file not found, which was an oversight.
8623         Note if secondary stack unit is used by compiler.
8624
8625         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
8626         ineffective elaborate all pragmas on non-visible packages (this
8627         happened when a renamed subprogram was called). Now the elaborate all
8628         always goes on the package containing the renaming rather than the one
8629         containing the renamed subprogram.
8630
8631         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
8632         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
8633
8634         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
8635         has an Etype that references an E_String_Literal.
8636         (Eval_String_Literal): Avoid assumption that N_String_Literal node
8637         always references an E_String_Literal_Subtype entity. This may not
8638         be true in the future.
8639
8640         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
8641         pragma location.
8642
8643         * sem_res.adb (Resolve): Specialize msg for function name used in proc
8644         call.
8645
8646 2004-01-05  Ed Falis  <falis@gnat.com>
8647
8648         * g-debuti.adb: Replaced direct boolean operator with short-circuit
8649         form.
8650
8651 2004-01-05  Vincent Celier  <celier@gnat.com>
8652
8653         * bld.adb: Minor comment updates
8654         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
8655         of Item_Name).
8656
8657         * make.adb (Gnatmake): Special process for files to compile/check when
8658         -B is specified. Fail when there are only foreign mains in attribute
8659         Main of the project file and -B is not specified. Do not skip bind/link
8660         steps when -B is specified.
8661
8662         * makeusg.adb: Document new switch -B
8663
8664         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
8665
8666         * switch-m.adb: (Scan_Make_Switches): Process -B switch
8667
8668         * vms_data.ads: Add new GNAT PRETTY qualifier
8669         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
8670
8671 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8672
8673         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
8674         case.
8675
8676         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
8677         Set_Identifier_Casing.
8678
8679         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
8680         has size that overflows.
8681
8682 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
8683
8684         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
8685         -gnatwa warning on static condition.
8686
8687 2004-01-05  Doug Rupp  <rupp@gnat.com>
8688
8689         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
8690
8691 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
8692
8693         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
8694         all attributes, including read-only attribute.
8695
8696 2004-01-05  Pascal Obry  <obry@gnat.com>
8697
8698         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
8699         library naming scheme.
8700
8701         * mlib-prj.adb (Build_Library): Generate different names for the static
8702         or dynamic version of the GNAT runtime. This is needed to support the
8703         new shared library naming scheme.
8704         (Process_Binder_File): Add detection of shared library in binder file
8705         based on the new naming scheme.
8706
8707         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
8708         scheme for the shared runtime libraries.
8709
8710         * Makefile.in:
8711         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
8712         scheme.
8713         (install-gnatlib): Do not create symlinks for shared libraries.
8714         (gnatlib-shared-default): Idem.
8715         (gnatlib-shared-dual-win32): New target. Not used for now as the
8716         auto-import feature does not support arrays/records.
8717         (gnatlib-shared-win32): Do not create copy for the shared libraries.
8718         (gnatlib-shared-vms): Fix shared runtime libraries names.
8719
8720         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
8721         dependent runtime shared library name.
8722
8723 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
8724
8725         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
8726         than the object.
8727
8728 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
8729
8730         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
8731         protected objects when allocator has a subtype indication, not a
8732         qualified expression. Note that qualified expressions may have to be
8733         checked when limited aggregates are implemented.
8734
8735         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
8736         pure, emit warning.
8737         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
8738         subprogram is imported, remove warning.
8739
8740 2004-01-05  Geert Bosch  <bosch@gnat.com>
8741
8742         * s-poosiz.adb: Update copyright notice.
8743         (Allocate): Use Task_Lock to protect against concurrent access.
8744         (Deallocate): Likewise.
8745
8746 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
8747
8748         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
8749         comment.
8750
8751 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
8752
8753         * gnat_ug.texi: Force a CVS commit by updating copyright.
8754         * gnat_ug_vxw.texi: Regenerate.
8755         * gnat_ug_wnt.texi: Regenerate.
8756         * gnat_ug_vms.texi: Regenerate.
8757         * gnat_ug_unx.texi: Regenerate.
8758
8759 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
8760
8761         * trans.c: Remove uses of "register" specifier in
8762         declarations of local variables.
8763
8764 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
8765
8766         * stamp-xgnatug: New stamp file.
8767         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
8768         (ada/doctools/xgnatug): Add $(build_exeext).
8769         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
8770         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
8771
8772 2003-12-17  Ed Falis  <falis@gnat.com>
8773
8774         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
8775         eliminate warning.
8776
8777         * a-exextr.adb: Add context clause for
8778         Ada.Exceptions.Last_Chance_Handler.
8779
8780 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
8781
8782         * cstand.adb (Create_Standard): Change the way how the declaration of
8783         the Duration type is created (making it the same way as it is for all
8784         the other standard types).
8785
8786 2003-12-17  Robert Dewar  <dewar@gnat.com>
8787
8788         * s-crtl.ads: Fix header format
8789         Change Pure to Preelaborate
8790
8791 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
8792
8793         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
8794         the expression type only if it is declared in the current unit.
8795
8796         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
8797         are universal and already analyzed, as can occur in constrained
8798         subcomponents that depend on discriminants, when one constraint is a
8799         subtype mark.
8800
8801         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
8802         type Any_Fixed is legal as the argument of a conversion, if only one
8803         fixed-point type is in context.
8804
8805 2003-12-17  GNAT Script  <nobody@gnat.com>
8806
8807         * Make-lang.in: Makefile automatically updated
8808
8809 2003-12-15  Robert Dewar  <dewar@gnat.com>
8810
8811         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
8812         sec stack size.
8813
8814 2003-12-15  Vincent Celier  <celier@gnat.com>
8815
8816         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
8817         (Gnatchop): Do not set failure status when reporting the number of
8818         warnings.
8819
8820 2003-12-15  Doug Rupp  <rupp@gnat.com>
8821
8822         * s-ctrl.ads: New file.
8823
8824         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
8825
8826         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
8827         (GNATBIND_OBJS): Add ada/s-crtl.o.
8828
8829         * Makefile.in [VMS]: Clean up ifeq rules.
8830
8831         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
8832         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
8833         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
8834         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
8835         s-tasdeb.adb: Update copyright.
8836         Import System.CRTL.
8837         Make minor modifications to use System.CRTL declared functions instead
8838         of importing locally.
8839
8840 2003-12-15  GNAT Script  <nobody@gnat.com>
8841
8842         * Make-lang.in: Makefile automatically updated
8843
8844 2003-12-11  Ed Falis  <falis@gnat.com>
8845
8846         * 5zinit.adb: Clean up.
8847
8848         * 5zintman.adb (Notify_Exception): replaced case statement with a call
8849         to __gnat_map_signal, imported from init.c to support
8850         signal -> exception mappings that depend on the vxWorks version.
8851
8852         * init.c:
8853         Created and exported __gnat_map_signal to support signal -> exception
8854         mapping that is dependent on the VxWorks version.
8855         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
8856
8857 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
8858
8859         * 5wosinte.ads: Link with -mthreads switch.
8860
8861 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
8862
8863         * init.c (__gnat_install_handler [NetBSD]): Set
8864         __gnat_handler_installed, as done on all other platforms.
8865         Remove duplicated code.
8866
8867 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
8868
8869         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
8870
8871 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
8872
8873         * sinfo.ads: Fix inconsistent example code in comment.
8874
8875 2003-12-11  Robert Dewar  <dewar@gnat.com>
8876
8877         * a-tiinau.adb: Add a couple of comments
8878
8879         * sem_ch3.adb: Minor reformatting
8880
8881         * sem_prag.adb:
8882         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
8883         Minor reformatting throughout
8884
8885 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
8886
8887         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
8888         bounds of a loop, create a separate block in order to generate proper
8889         cleanup actions to prevent memory leaks.
8890
8891         * sem_res.adb (Resolve_Call): After a call to
8892         Establish_Transient_Scope, the call may be rewritten and relocated, in
8893         which case no further processing is needed.
8894
8895         * sem_util.adb: (Wrong_Type): Refine previous fix.
8896          Fixes ACATS regressions.
8897
8898         PR ada/13353
8899
8900         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
8901         be inlined.
8902
8903 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
8904
8905         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
8906         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
8907         obsolete files.
8908
8909         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
8910         (rts-zfp): Ditto.
8911
8912 2003-12-08  Robert Dewar  <dewar@gnat.com>
8913
8914         * 7sintman.adb: Minor reformatting
8915
8916         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
8917         standard linker options to get standard libraries linked. We now plan
8918         to provide dummy versions of these libraries to match the appropriate
8919         configurable run-time (e.g. if a library is not needed at all, provide
8920         a dummy empty library).
8921
8922         * targparm.ads: Configurable_Run_Time mode no longer affects linker
8923         options (-L parameters and standard libraries). What we plan to do is
8924         to provide dummy libraries where the libraries are not required.
8925
8926         * gnatbind.adb: Minor comment improvement
8927
8928 2003-12-08  Javier Miranda  <miranda@gnat.com>
8929
8930         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
8931         aggregate in the parent. Otherwise constants with limited aggregates
8932         are not supported. Add new formal to pass the component type (Ctype).
8933         It is required to call the corresponding IP subprogram in case of
8934         default initialized components.
8935         (Gen_Assign): In case of default-initialized component, generate a
8936         call to the IP subprogram associated with the component.
8937         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
8938         of aggregate with default initialized components.
8939         (Has_Default_Init_Comps): Improve implementation to recursively check
8940         all the present expressions.
8941
8942         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
8943         to indicate that the initialization call corresponds to a
8944         default-initialized component of an aggregate.
8945         In case of default initialized aggregate with tasks this parameter is
8946         used to generate a null string (this is just a workaround that must be
8947         improved later). In case of discriminants, this parameter is used to
8948         generate a selected component node that gives access to the discriminant
8949         value.
8950
8951         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
8952         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
8953         allocated aggregates with default-initialized components.
8954
8955         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
8956         the box notation is used in positional aggregates.
8957
8958 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
8959
8960         * lib.ads: Fix typo in comment
8961
8962 2003-12-08  Vincent Celier  <celier@gnat.com>
8963
8964         * prj.adb (Project_Empty): New component Unkept_Comments
8965         (Scan): Remove procedure; moved to Prj.Err.
8966
8967         * prj.ads (Project_Data): New Boolean component Unkept_Comments
8968         (Scan): Remove procedure; moved to Prj.Err.
8969
8970         * prj-dect.adb: Manage comments for the different declarations.
8971
8972         * prj-part.adb (With_Record): New component Node
8973         (Parse): New Boolean parameter Store_Comments, defaulted to False.
8974         Set the scanner to return ends of line and comments as tokens, if
8975         Store_Comments is True.
8976         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
8977         comments are associated with these nodes. Store the node IDs in the
8978         With_Records.
8979         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
8980         With_Records.
8981         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
8982         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
8983         current project. Call Tree.Restore afterwards. Set the various nodes
8984         for comment storage (Next_End, End_Of_Line, Previous_Line,
8985         Previous_End).
8986
8987         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
8988         defaulted to False.
8989
8990         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
8991         to False. When Truncated is True, truncate the string, never go to the
8992         next line.
8993         (Write_End_Of_Line_Comment): New procedure
8994         (Print): Process comments for nodes N_With_Clause,
8995         N_Package_Declaration, N_String_Type_Declaration,
8996         N_Attribute_Declaration, N_Typed_Variable_Declaration,
8997         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
8998         Process nodes N_Comment.
8999
9000         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
9001         without comments and there are some comments, set the flag
9002         Unkept_Comments to True.
9003         (Scan): If there are comments, set the flag Unkept_Comments to True and
9004         clear the comments.
9005         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
9006         (Next_End_Nodes: New table
9007         (Comment_Zones_Of): New function
9008         (Scan): New procedure; moved from Prj. Accumulate comments in the
9009         Comments table and set end of line comments, comments after, after end
9010         and before end.
9011         (Add_Comments): New procedure
9012         (Save, Restore, Seset_State): New procedures
9013         (There_Are_Unkept_Comments): New function
9014         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
9015         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
9016         procedures.
9017         (First_Comment_After, First_Comment_After_End): New functions
9018         (First_Comment_Before, First_Comment_Before_End): New functions
9019         (Next_Comment): New function
9020         (End_Of_Line_Comment, Follows_Empty_Line,
9021         Is_Followed_By_Empty_Line): New functions
9022         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
9023         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
9024         (Set_Next_Comment): New procedure
9025         (Default_Project_Node): Associate comment before if the node can store
9026         comments.
9027
9028         * scans.ads (Token_Type): New enumeration value Tok_Comment
9029         (Comment_Id): New global variable
9030
9031         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
9032         defaulted to False.
9033         (Scan): Store position of start of comment. If comments are tokens, set
9034         Comment_Id and set Token to Tok_Comment when scanning a comment.
9035         (Set_Comment_As_Token): New procedure
9036
9037         * sinput-p.adb: Update Copyright notice
9038         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
9039         that no longer exists.
9040
9041 2003-12-08  Javier Miranda  <miranda@gnat.com>
9042
9043         * sem_aggr.adb: Add dependence on Exp_Tss package
9044         Correct typo in comment
9045         (Resolve_Aggregate): In case of array aggregates set the estimated
9046         type of the aggregate before calling resolve. This is needed to know
9047         the name of the corresponding IP in case of limited array aggregates.
9048         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
9049         in case of default initialized array components.
9050
9051         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
9052         types. Required to give support to limited aggregates in generic
9053         formals.
9054
9055 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
9056
9057         * sem_ch3.adb (Check_Initialization): For legality purposes, an
9058         inlined body functions like an instantiation.
9059         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
9060         until bounds are analyzed, to diagnose premature use of type.
9061
9062         * sem_util.adb (Wrong_Type): Improve error message when the type of
9063         the expression is used prematurely.
9064
9065 2003-12-08  GNAT Script  <nobody@gnat.com>
9066
9067         * Make-lang.in: Makefile automatically updated
9068
9069 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
9070
9071         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
9072         they are automatically generated by Make-lang.in and cause nothing but
9073         maintenance troubles.
9074
9075 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
9076
9077         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
9078         version of this unit).
9079
9080 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
9081
9082         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
9083         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
9084         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
9085         the body of System.Interrupt_Management common to several targets.
9086         Update copyright notice when appropriate.
9087
9088         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
9089         constant.
9090
9091         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
9092         to ensure that the kernel fills in the interrupted context structure
9093         before calling a signal handler, which is necessary to be able to
9094         unwind past it. Update the copyright notice.
9095
9096 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
9097
9098         * a-elchha.ads: New file.
9099
9100         * a-elchha.adb: New default last chance handler. Contents taken from
9101         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
9102
9103         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
9104         is moved to a-elchha.adb to provide a target-independent default last
9105         chance handler.
9106
9107         * Makefile.rtl: Add a-elchha.o
9108
9109         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
9110
9111 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
9112
9113         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
9114         declared in an instance, do not inline the call if the instance is not
9115         frozen yet, to prevent order of elaboration problems.
9116
9117         * sem_prag.adb: Add comments for previous fix.
9118
9119 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
9120
9121         * g-table.adb: Use the right variable in Set_Item.
9122         Update copyright notice.
9123
9124 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
9125
9126         * Makefile.in: Remove unused rules.
9127
9128 2003-12-05  Vincent Celier  <celier@gnat.com>
9129
9130         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
9131         -nostdlib. Not needed here after all.
9132
9133 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
9134
9135         PR ada/11724
9136
9137         * adaint.h, adaint.c, g-os_lib.ads:
9138         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
9139         on some platforms (including FreeBSD), it is a 64 bit value.
9140         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
9141
9142 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
9143
9144         * gnatvsn.ads (Library_Version): Now contain only the relevant
9145         version info.
9146         (Verbose_Library_Version): New constant.
9147
9148         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
9149         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
9150         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
9151
9152         * gnatlbr.adb: Clean up: replace Library_Version by
9153         Verbose_Library_Version.
9154
9155         * make.adb, lib-writ.adb, exp_attr.adb:
9156         Clean up: replace Library_Version by Verbose_Library_Version.
9157
9158         * 5lintman.adb: Removed.
9159
9160         * Makefile.in:
9161         Update and simplify computation of LIBRARY_VERSION.
9162         Fix computation of GSMATCH_VERSION.
9163         5lintman.adb is no longer used: replaced by 7sintman.adb.
9164
9165 2003-12-03  Robert Dewar  <dewar@gnat.com>
9166
9167         * exp_ch5.adb:
9168         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
9169         name. Modified to consider small non-bit-packed arrays as troublesome
9170         and in need of component-by-component assigment expansion.
9171
9172 2003-12-03  Vincent Celier  <celier@gnat.com>
9173
9174         * lang-specs.h: Process nostdlib as nostdinc
9175
9176         * back_end.adb: Update Copyright notice
9177         (Scan_Compiler_Arguments): Process -nostdlib directly.
9178
9179 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
9180
9181         * Makefile.in:
9182         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
9183         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
9184         included in HIE_NONE_TARGET_PAIRS.
9185
9186 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
9187
9188         * sem_attr.adb:
9189         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
9190         is legal in an instance, because legality is cheched in the template.
9191
9192         * sem_prag.adb:
9193         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
9194         appplied to an unchecked conversion of a formal parameter.
9195
9196         * sem_warn.adb:
9197         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
9198         variables.
9199
9200 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
9201
9202         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
9203         routines. The second one is new functionality to deal with backtracing
9204         through signal handlers.
9205         (unwind): Split into the two separate subroutines above.
9206         Update the documentation, and deal properly with sizeof (REG) different
9207         from sizeof (void*).
9208
9209 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
9210
9211         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
9212         so that the debugger can reliably access the value of the parameter,
9213         and therefore is able to display the exception name when an exception
9214         breakpoint is reached.
9215
9216 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
9217
9218         * fmap.adb: Fix typo in warning message.
9219
9220         * g-socket.ads, g-socket.adb: Make Free a visible instance of
9221         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
9222
9223 2003-12-01  Vincent Celier  <celier@gnat.com>
9224
9225         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
9226         ther is no Afile.
9227         (Build_Library): Get the switches only if Default_Switches is declared
9228         in package Binder.
9229
9230 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
9231
9232         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
9233         actuals that are indexed components, reanalyze actual to ensure that
9234         packed array references are properly expanded.
9235
9236         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
9237         attempted assignment to a discriminant.
9238
9239 2003-12-01  Robert Dewar  <dewar@gnat.com>
9240
9241         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
9242         reformatting.
9243
9244         * switch-c.adb: Minor reformatting of comments
9245
9246 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
9247
9248         * Makefile.in: Clean ups.
9249
9250 2003-12-01  GNAT Script  <nobody@gnat.com>
9251
9252         * Make-lang.in: Makefile automatically updated
9253
9254 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
9255
9256         * 5wsystem.ads: Disable zero cost exception, not ready yet.
9257
9258 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
9259
9260         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
9261         to force serialization.
9262
9263 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
9264
9265         * g-socket.ads, g-socket.adb:
9266         Clarify documentation of function Stream. Introduce a Free procedure
9267         to release the returned Stream once it becomes unused.
9268
9269         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
9270
9271 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
9272
9273         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
9274         since NT 4 cannot handle timeout values that are too large,
9275         e.g. DWORD'Last - 1.
9276
9277 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
9278
9279         * exp_ch4.adb:
9280         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
9281         in procedure calls and whose expansion must be deferred.
9282
9283         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
9284         is in exp_ch4.
9285
9286         * sem_ch3.adb:
9287         (Build_Derived_Array_Type): Create operator for unconstrained type
9288         if ancestor is unconstrained.
9289
9290 2003-11-26  Vincent Celier  <celier@gnat.com>
9291
9292         * make.adb (Project_Object_Directory): New global variable
9293         (Change_To_Object_Directory): New procedure
9294         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
9295         of Change_Dir directly. Do not change working directory to object
9296         directory of main project after each compilation.
9297         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
9298         directly.
9299         Change to object directory of main project before binding step.
9300         (Initialize): Initialize Project_Object_Directory to No_Project
9301
9302         * mlib-prj.adb:
9303         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
9304         binding a Stand-Alone Library.
9305
9306         * output.adb: Update Copyright notice
9307         (Write_Char): Output buffer when full
9308
9309 2003-11-26  Robert Dewar  <dewar@gnat.com>
9310
9311         * sem_ch13.adb: (Check_Size): Reset size if size is too small
9312
9313         * sem_ch13.ads:
9314         (Check_Size): Fix documentation to include bit-packed array case
9315
9316         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
9317
9318         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
9319
9320         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
9321
9322 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
9323
9324         PR ada/13142
9325         * utils.c (init_gigi_decls): Change name of built-in setjmp to
9326         __builtin_setjmp, since this is apparently needed by recent
9327         non Ada changes.
9328
9329 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9330
9331         * adadecode.c: Only include ctype.h if not IN_GCC.
9332         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
9333
9334 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
9335
9336         * Makefile.in:
9337         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
9338         signals and interrupts.
9339
9340         * 5zintman.ads: New File.
9341
9342         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
9343         add exception signals to the set of unmasked signals.
9344
9345         * 5ztaprop.adb:
9346         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
9347         between signals and interrupts.
9348         Add to Unblocked_Signal_Mask the set of signals that are in
9349         Keep_Unmasked.
9350
9351         * 7sinmaop.adb:
9352         Adding a check to see whether the Interrupt_ID we want to unmask is in
9353         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
9354         reason is that the index type of the Keep_Unmasked array is not always
9355         Interrupt_ID; it may be a subtype of Interrupt_ID.
9356
9357 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
9358
9359         * exp_util.adb:
9360         (Remove_Side_Effects): Condition constantness of object created for a
9361          an unchecked type conversion on the constantness of the expression
9362          to ensure the correct value for 'Constrained when passing components
9363          of view-converted class-wide objects.
9364
9365 2003-11-24  Robert Dewar  <dewar@gnat.com>
9366
9367         * par-load.adb (Load): Improve handling of misspelled and missing units
9368         Removes several cases of compilation abandoned messages
9369
9370         * lib.adb: (Remove_Unit): New procedure
9371
9372         * lib.ads: (Remove_Unit): New procedure
9373
9374         * lib-load.adb: Minor reformatting
9375
9376 2003-11-24  Vincent Celier  <celier@gnat.com>
9377
9378         * make.adb:
9379         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
9380         (Marking_Label): Label to mark processed source files. Incremented for
9381         each executable.
9382         (Gnatmake): Increase Marking_Labet for each executable
9383         (Is_Marked): Compare against marking label
9384         (Mark): Mark with marking label
9385
9386 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
9387
9388         * s-thread.ads:
9389         Move the declaration of the TSD for System.Threads to System.Soft_Links.
9390         Add some comments.
9391
9392         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
9393         (rts-cert): build a single relocatable object for the run-time lib.
9394         Fix perms.
9395
9396 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
9397
9398         * Make-lang.in:
9399         Use gnatls rather than gcc to obtain the location of GNAT RTL for
9400         crosstools build.
9401
9402 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
9403
9404         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
9405         can not use it as before (that is, as a variable) when dumping it into
9406         the tree file. Add a local variable to store the result of this
9407         function and to be used as the string to be written into the tree.
9408
9409         * scn.adb (Initialize_Scanner): Add comments explaining the recent
9410         changes.
9411
9412         * sinput.adb (Source_First, Source_Last): In case of
9413         Internal_Source_File, replace returning attributes of
9414         Internal_Source_Ptr (which is wrong) with returning attributes of
9415         Internal_Source.
9416
9417 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
9418
9419         * sem_ch3.adb:
9420         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
9421         used for implicit concatenation operators.
9422         Code cleanup.
9423
9424         * sem_elab.adb:
9425         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
9426         task bodies that are in the scope of a Suppress pragma.
9427         (Check_A Call): Use the flag to prevent spurious elaboration checks.
9428
9429         * sinfo.ads, sinfo.adb:
9430         New flag No_Elaboration_Check on function/procedure calls, to properly
9431         suppress checks on calls in task bodies that are within a local suppress
9432         pragma.
9433
9434         * exp_ch4.adb:
9435         (Expand_Concatenate_Other): Use the proper integer type for the
9436         expression for the upper bound, to avoid universal_integer computations
9437         when possible.
9438
9439 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
9440
9441         * .cvsignore: Delete.
9442
9443 2003-11-21  Andreas Schwab  <schwab@suse.de>
9444
9445         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
9446
9447 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
9448
9449         * 5wsystem.ads: Enable zero cost exception.
9450
9451 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
9452
9453         * 5ztiitho.adb: Remove an unreferenced variable.
9454
9455 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
9456
9457         * adaint.c: For FreeBSD, use mkstemp.
9458
9459 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
9460
9461         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
9462
9463 2003-11-21  Robert Dewar  <dewar@gnat.com>
9464
9465         * bld.adb: Remove useless USE of gnatvsn
9466
9467         * gnatchop.adb: Minor reformatting
9468         Clean up version handling to be more consistent
9469
9470         * gnatxref.adb: Minor reformatting
9471
9472         * gprcmd.adb: Minor reformatting
9473         Fix output of copyright to be more consistent with other tools
9474
9475 2003-11-21  Vincent Celier  <celier@gnat.com>
9476
9477         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
9478
9479 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
9480
9481         * atree.adb (Initialize): Add initializations for global variables
9482         used in New_Copy_Tree.
9483
9484         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
9485         Internal_Source_File as the actual).
9486         Put the set of statements creating Any_Character before the set of
9487         statements creating Any_Array to have Any_Character fully initialized
9488         when it is used in creating Any_Array.
9489
9490         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
9491         not call Scan in case if the actual is Internal_Source_File
9492         Add 2003 to copyright note.
9493
9494         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
9495         processing Internal_Source_File.
9496
9497         * types.ads: Add the constant Internal_Source_File representing the
9498         source buffer for artificial source-code-like strings created within
9499         the compiler (the definition of Source_File_Index is changed).
9500
9501 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
9502
9503         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
9504         56system.ads: New file, FreeBSD version.
9505
9506 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
9507
9508         * Make-lang.in (ada.extraclean): Delete.
9509
9510 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
9511
9512         * gnatmem.adb: Clean up verbose output.
9513
9514         * gprcmd.adb: Change copyright to FSF.
9515
9516 2003-11-19  Vincent Celier  <celier@gnat.com>
9517
9518         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
9519         and Version (ignored).
9520
9521         * symbols.ads: (Policy): New type
9522         (Initialize): New parameter Reference, Symbol_Policy and
9523         Library_Version.
9524         Remove parameter Force.
9525         Minor reformatting.
9526
9527         * snames.ads, snames.adbadb: New standard names
9528         Library_Reference_Symbol_File and Library_Symbol_Policy
9529
9530         * mlib-prj.adb:
9531         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
9532         project.
9533
9534         * mlib-tgt.adb:
9535         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
9536
9537         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
9538
9539         * prj.adb: (Project_Empty): New component Symbol_Data
9540
9541         * prj.ads: (Policy, Symbol_Record): New types
9542         (Project_Data): New component Symbol_Data
9543
9544         * prj-attr.adb:
9545         New attributes Library_Symbol_File, Library_Symbol_Policy and
9546         Library_Reference_Symbol_File.
9547
9548         * prj-nmsc.adb:
9549         (Ada_Check): When project is a Stand-Alone library project, process
9550         attribute Library_Symbol_File, Library_Symbol_Policy and
9551         Library_Reference_Symbol_File.
9552
9553         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9554         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
9555         5sml-tgt.adb (Build_Dynamic_Library): New parameter
9556         Symbol_Data (ignored).
9557
9558         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
9559         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
9560         functions Option_File_Name and Version_String. Set new options of
9561         gnatsym related to symbol file, symbol policy and reference symbol
9562         file.
9563
9564         * 5vsymbol.adb:
9565         Extensive modifications to take into account the reference symbol file,
9566         the symbol policy, the library version and to put in the symbol file the
9567         minor and major IDs.
9568
9569         * bld.adb (Process_Declarative_Items): Put second argument of
9570         gprcmd to_absolute between single quotes, to avoid problems with
9571         Windows.
9572
9573         * bld-io.adb: Update Copyright notice.
9574         (Flush): Remove last character of a line, if it is a back slash, to
9575         avoid make problems.
9576
9577         * gnatsym.adb:
9578         Implement new scheme with reference symbol file and symbol policy.
9579
9580         * g-os_lib.ads: (Is_Directory): Clarify comment
9581
9582 2003-11-19  Robert Dewar  <dewar@gnat.com>
9583
9584         * atree.adb: Move New_Copy_Tree global variables to head of package
9585
9586         * errout.adb: Minor reformatting
9587
9588 2003-11-19  Javier Miranda  <miranda@gnat.com>
9589
9590         * sem_ch4.adb: (Diagnose_Call): Improve error message.
9591         Add reference to Ada0Y (AI-50217)
9592
9593         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
9594         sem_util.adb: Add reference to AI-50217
9595
9596         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
9597
9598         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
9599
9600         * sem_aggr.adb: Complete documentation of AI-287 changes
9601
9602         * par-ch4.adb: Document previous changes.
9603
9604         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
9605         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
9606         Ada0Y (AI-50217)
9607
9608         * exp_aggr.adb: Add references to AI-287 in previous changes
9609
9610 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
9611
9612         * exp_ch6.adb:
9613         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
9614         in the rewriting is the result of an inlined call.
9615
9616         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
9617         parameter is a type conversion, use original node to construct the
9618         post-call assignment, because expression may have been rewritten, e.g.
9619         if it is a packed array.
9620
9621         * sem_attr.adb:
9622         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
9623         body, just as it is in an instance.
9624         Categorization routines
9625
9626         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
9627         Instantiate_Object): Set proper sloc reference for message on missing
9628         actual.
9629
9630 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
9631
9632         * Makefile.in: Add FreeBSD libgnat pairs.
9633
9634         * usage.adb: Fix typo in usage message.
9635
9636 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
9637
9638         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
9639         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
9640         pragma Thread_Body.
9641         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
9642
9643         * s-thread.adb: This file is now a dummy implementation of
9644         System.Thread.
9645
9646 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
9647
9648         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
9649
9650 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
9651
9652         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9653         instanciation references in the parent type description.
9654
9655 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9656
9657         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
9658
9659         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
9660         TYPE_PRECISION directly from esize.
9661
9662 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
9663
9664         * cstreams.c:
9665         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
9666
9667         * init.c: Initialization routines for FreeBSD
9668
9669         * link.c: Link info for FreeBSD
9670
9671         * sysdep.c: Add the case of FreeBSD
9672
9673 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
9674
9675         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
9676         already called in System.Threads.
9677
9678         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
9679         environment task, as it has been moved to System.Threads.Initialization.
9680
9681 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
9682
9683         * adaint.c (__gnatlib_install_locks): Only reference
9684         __gnat_install_locks on VMS, since other platforms can avoid using
9685         --enable-threads=gnat
9686
9687 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9688
9689         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
9690
9691         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
9692         TYPE_PACKED_ARRAY_TYPE_P.
9693         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
9694
9695         Part of PR ada/12806
9696         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
9697         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
9698
9699 2003-11-17  Vincent Celier  <celier@gnat.com>
9700
9701         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
9702         to False.
9703         Do not set exit status to Failure when Warning is True.
9704         (Gnatchop): Make errors "no compilation units found" and
9705         "no source files written" warnings only.
9706
9707         * make.adb (Gnatmake): When using a project file, set
9708         Look_In_Primary_Dir to False.
9709         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
9710         and Local_Configuration_Pragmas in the project where they are declared
9711         not an extending project which might have inherited them.
9712
9713         * osint.adb (Locate_File): If Name is already an absolute path, do not
9714         look for a directory.
9715
9716         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
9717         -gnats (Check_Syntax) is used, issue only a warning, not an error.
9718
9719         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
9720         in objects of type Variable_Value.
9721
9722         * prj.ads: (Variable_Value): New component Project
9723
9724         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
9725         is in a project extended by Project.
9726
9727         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
9728         Project of Variable_Values to this new parameter value.
9729         (Expression): Set component Project of Variable_Values.
9730         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
9731         Set the component Project in array elements.
9732
9733 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
9734
9735         * errout.adb: (Initialize): Add initialization for error nodes.
9736
9737         * sem_ch12.adb (Initialize): Add missing initializations for
9738         Exchanged_Views and Hidden_Entities.
9739
9740 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
9741
9742         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
9743         already instantiated tree for use in subsequent inlining.
9744         (Analyze_Associations, Instantiate_Formal_Subprogram,
9745         Instantiate_Object): improve error message for mismatch in
9746         instantiations.
9747
9748         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
9749         instantiations of subprograms declared in instances.
9750
9751 2003-11-17  Javier Miranda  <miranda@gnat.com>
9752
9753         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
9754         executed only under the Extensions_Allowed flag.
9755
9756 2003-11-17  Robert Dewar  <dewar@gnat.com>
9757
9758         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
9759         zeroes suppressed.
9760         (Address_Image): Fix bug of returning 0x instead of 0x0
9761         Minor reformatting (function specs).
9762
9763         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
9764         (missed case of 33-63)
9765
9766         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
9767
9768         * s-thread.adb: Add comments for pragma Restriction
9769
9770         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
9771         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
9772
9773 2003-11-17  Ed Falis  <falis@gnat.com>
9774
9775         * s-thread.adb: Added No_Tasking restriction for this implementation.
9776
9777 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
9778
9779         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9780         instanciation references in the parent type description.
9781
9782 2003-11-17  GNAT Script  <nobody@gnat.com>
9783
9784         * Make-lang.in: Makefile automatically updated
9785
9786 2003-11-16  Jason Merrill  <jason@redhat.com>
9787
9788         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
9789         and TAGS files that include them for each front end.
9790
9791 2003-11-14  Andreas Jaeger  <aj@suse.de>
9792
9793         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
9794         is the canonical version.
9795         * misc.c (gnat_handle_option): Likewise.
9796
9797         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
9798
9799         * 5nsystem.ads: New file for x86_64-linux-gnu.
9800
9801 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
9802
9803         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
9804
9805         * comperr.adb: Fix logic in previous change.
9806
9807 2003-11-13  Vincent Celier  <celier@gnat.com>
9808
9809         * 5bml-tgt.adb (Build_Dynamic_Library): Use
9810         Osint.Include_Dir_Default_Prefix instead of
9811         Sdefault.Include_Dir_Default_Name.
9812
9813         * gnatlbr.adb: Update Copyright notice
9814         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
9815         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
9816         instead of Sdefault.Object_Dir_Default_Name
9817
9818         * gnatlink.adb:
9819         (Process_Binder_File): Never suppress the option following -Xlinker
9820
9821         * mdll-utl.adb:
9822         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
9823         Sdefault.Object_Dir_Default_Name.
9824
9825         * osint.ads, osint.adb:
9826         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
9827         Minor reformatting.
9828
9829         * vms_conv.ads: Minor reformating
9830         Remove GNAT STANDARD and GNAT PSTA
9831
9832         * vms_conv.adb:
9833         Allow GNAT MAKE to have several files on the command line.
9834         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
9835         Sdefault.Object_Dir_Default_Name.
9836         Minor Reformating
9837         Remove data for GNAT STANDARD
9838
9839         * vms_data.ads:
9840         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
9841         Remove data for GNAT STANDARD
9842         Remove options and documentation for -gnatwb/-gnatwB: these warning
9843         options no longer exist.
9844
9845 2003-11-13  Ed Falis  <falis@gnat.com>
9846
9847         * 5zthrini.adb: (Init_RTS): Made visible
9848
9849         * 5zthrini.adb:
9850         (Register): Removed unnecessary call to taskVarGet that checked whether
9851          an ATSD was already set as a task var for the argument thread.
9852
9853         * s-thread.adb:
9854         Updated comment to reflect that this is a VxWorks version
9855         Added context clause for System.Threads.Initialization
9856         Added call to System.Threads.Initialization.Init_RTS
9857
9858 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
9859
9860         * 5zthrini.adb:
9861         (Init_RTS): New procedure, for the initialization of the run-time lib.
9862
9863         * s-thread.adb:
9864         Remove dependancy on System.Init, so that this file can be used in the
9865         AE653 sequential run-time lib.
9866
9867 2003-11-13  Robert Dewar  <dewar@gnat.com>
9868
9869         * bindgen.adb: Minor reformatting
9870
9871 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
9872
9873         * checks.adb:
9874         (Apply_Discriminant_Check): Do no apply check if target type is derived
9875         from source type with no applicable constraint.
9876
9877         * lib-writ.adb:
9878         (Ensure_System_Dependency): Do not apply the style checks that may have
9879         been specified for the main unit.
9880
9881         * sem_ch8.adb:
9882         (Find_Selected_Component): Further improvement in error message, with
9883         RM reference.
9884
9885         * sem_res.adb:
9886         (Resolve): Handle properly the case of an illegal overloaded protected
9887         procedure.
9888
9889 2003-11-13  Javier Miranda  <miranda@gnat.com>
9890
9891         * exp_aggr.adb:
9892         (Has_Default_Init_Comps): New function to check the presence of
9893         default initialization in an aggregate.
9894         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
9895         extension aggregate of a limited record. In addition, a new formal
9896         was added to do not initialize the record controller (if any) during
9897         this recursive expansion of ancestors.
9898         (Init_Controller): Add support for limited record components.
9899         (Expand_Record_Aggregate): In case of default initialized components
9900         convert the aggregate into a set of assignments.
9901
9902         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
9903         describing the new syntax.
9904         Nothing else needed to be done because this subprogram delegates part of
9905         its work to P_Precord_Or_Array_Component_Association.
9906         (P_Record_Or_Array_Component_Association): Give support to the new
9907         syntax for default initialization of components.
9908
9909         * sem_aggr.adb:
9910         (Resolve_Aggregate): Relax the strictness of the frontend in case of
9911         limited aggregates.
9912         (Resolve_Record_Aggregate): Give support to default initialized
9913         components.
9914         (Get_Value): In case of default initialized components, duplicate
9915         the corresponding default expression (from the record type
9916         declaration). In case of default initialization in the *others*
9917         choice, do not check that all components have the same type.
9918         (Resolve_Extension_Aggregate): Give support to limited extension
9919         aggregates.
9920
9921         * sem_ch3.adb:
9922         (Check_Initialization): Relax the strictness of the front-end in case
9923         of aggregate and extension aggregates. This test is now done in
9924         Get_Value in a per-component manner.
9925
9926         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
9927         expression corresponds to a limited aggregate. This test is now done
9928         in Get_Value.
9929
9930         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
9931         Box_Present flag.
9932
9933         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
9934         present in an N_Component_Association node
9935
9936 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
9937
9938         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
9939         type-conformant entry only if they are homographs.
9940
9941 2003-11-13  GNAT Script  <nobody@gnat.com>
9942
9943         * Make-lang.in: Makefile automatically updated
9944
9945 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9946
9947         * adadecode.c: Use <> form of include for ctype.h.
9948         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
9949
9950 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9951
9952         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
9953         Works around PR middle-end/6552.
9954
9955 2003-11-10  Ed Falis  <falis@gnat.com>
9956
9957         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
9958
9959         * 5zinit.adb: (Install_Handler): Moved back to spec
9960         (Install_Signal_Handlers): Deleted
9961
9962         * 5zthrini.adb: Added context clause for System.Storage_Elements
9963         (Register): Only handles creation of taskVar; initialization moved to
9964         Thread_Body_Enter.
9965         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
9966         Added declaration of environment task secondary stack and
9967         initialization.
9968
9969         * s-thread.adb: Implement bodies for thread body processing
9970
9971         * s-thread.ads:
9972         Added comment identifying supported targets for pragma Thread_Body.
9973
9974 2003-11-10  Pascal Obry  <obry@gnat.com>
9975
9976         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
9977         GNAT_MAX_PATH_LEN.
9978
9979         * s-fileio.adb:
9980         (Open): Properly check for string length before copying into the buffer.
9981         Raises Name_Error if buffer is too small. Note that this was a potential
9982         buffer overflow.
9983
9984 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
9985
9986         * bindgen.adb, comperr.adb: Code clean ups.
9987         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
9988
9989 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
9990
9991         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
9992
9993 2003-11-10  Vincent Celier  <celier@gnat.com>
9994
9995         * gprcmd.adb:
9996         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
9997         installation.
9998
9999         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
10000
10001         * prj.adb: (Project_Empty): Add new boolean component Virtual
10002
10003         * prj.ads: (Virtual_Prefix): New constant string
10004         (Project_Data): New boolean component Virtual
10005
10006         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
10007         a library project is extended by a virtual extending project.
10008
10009         * prj-part.adb:
10010         Modifications throughout to implement extending-all project, including:
10011         (Virtual_Hash, Processed_Hash): New hash tables
10012         (Create_Virtual_Extending_Project): New procedure
10013         (Look_For_Virtual_Projects_For): New procedure
10014
10015         * prj-proc.adb:
10016         (Process): After checking the projects, if main project is an
10017         extending-all project, set the object directory of all virtual extending
10018         project to the object directory of the main project.
10019         Adjust error message when a virtual extending project has the same
10020         object directory as an project being extended.
10021         (Recursive_Process): If name starts with the virtual prefix, set Virtual
10022         to True in the project data.
10023
10024         * prj-tree.adb:
10025         (Default_Project_Node): Add new boolean component Extending_All
10026         (Is_Extending_All): New function
10027         (Set_Is_Extending_All): New procedure
10028
10029         * prj-tree.ads: (Is_Extending_All): New function
10030         (Set_Is_Extending_All): New procedure
10031         (Project_Node_Record): New boolean component Extending_All
10032
10033         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
10034
10035         * vms_data.ads:
10036         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
10037
10038         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
10039         "gprcmd prefix" to define it.
10040
10041 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
10042
10043         * einfo.ads: Fix a typo and remove an extraneous word in comments.
10044
10045         * lib-load.adb:
10046         (Create_Dummy_Package_Unit): Set the scope of the entity for the
10047         created dummy package to Standard_Standard, not to itself, to
10048         defend other parts of the front-end against encoutering a cycle in
10049         the scope chain.
10050
10051         * sem_ch10.adb:
10052         (Analyze_With_Clause): When setting the entities for the successive
10053         N_Expanded_Names that constitute the name of a child unit, do not
10054         attempt to go further than Standard_Standard in the chain of scopes.
10055         This case arises from the placeholder units created by
10056         Create_Dummy_Package_Unit in the case of a with_clause for a
10057         nonexistent child unit.
10058
10059 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
10060
10061         * exp_ch6.adb:
10062         (Expand_Thread_Body): Place subprogram on scope stack, so that new
10063         declarations are given the proper scope.
10064
10065         * sem_ch13.adb:
10066         (Check_Expr_Constants): Reject an expression that contains a constant
10067         created during expansion, and that appears after the object to which
10068         the address clause applies.
10069
10070         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
10071         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
10072         that uses 'Range of a function call with controlled components, so
10073         that the function result can be finalized before starting the loop.
10074
10075         * sem_ch8.adb:
10076         (Find_Selected_Component): Improve error message when prefix is
10077         an implicit dereference of an incomplete type.
10078
10079 2003-11-10  Robert Dewar  <dewar@gnat.com>
10080
10081         * opt.ads: New Print_Standard flag for -gnatS switch
10082
10083         * sem_ch13.adb: Remove some additional checks for unaligned arrays
10084
10085         * cstand.adb (Create_Standard): Print out package standard if -gnatS
10086         switch set
10087
10088         * debug.adb: Update doc for -gnatds to discuss relationship with new
10089         -gnatS flag
10090
10091         * sinfo.adb: Add new field Entity_Or_Associated_Node
10092
10093         * sinfo.ads: Add new field Entity_Or_Associated_Node
10094         Update documentation for Associated_Node and Entity fields to clarify
10095         relationship and usage.
10096
10097         * sprint.adb:
10098         (Write_Id): Properly process Associated_Node field in generic template
10099
10100         * switch-c.adb:
10101         Recognize new -gnatS switch for printing package Standard
10102         This replaces gnatpsta
10103
10104         * usage.adb:
10105         Add line for  new -gnatS switch for printing package Standard
10106         This replaces gnatpsta
10107
10108 2003-11-10  Andreas Jaeger  <aj@suse.de>
10109
10110         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
10111         integer.
10112
10113 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
10114
10115         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
10116         by gnat1.
10117
10118 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
10119
10120         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
10121         no longer needed.
10122
10123         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
10124
10125         * sysdep.c: Add handling of cygwin.
10126
10127 2003-11-10  GNAT Script  <nobody@gnat.com>
10128
10129         * Make-lang.in: Makefile automatically updated
10130
10131 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
10132
10133         PR 12950
10134         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
10135         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
10136         Replace GNAT_ROOT by GCC_ROOT.
10137
10138         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
10139
10140 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
10141
10142         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
10143         and update for changed meaning of GET_MODE_BITSIZE.
10144
10145 2003-11-04  Doug Rupp  <rupp@gnat.com>
10146
10147         * sysdep.c: Problem discovered during IA64 VMS port.
10148         [VMS] #include <unixio.h> to get proper prototypes.
10149
10150         * adaint.c:
10151         Issues discovered/problems fixed during IA64 VMS port.
10152         [VMS] #define _POSIX_EXIT for proper semantics.
10153         [VMS] #include <unixio.h> for proper prototypes.
10154         [VMS] (fork): #define IA64 version.
10155         (__gnat_os_exit): Remove unnecessary VMS specific code.
10156
10157 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10158
10159         Part of PR ada/12806
10160
10161         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
10162         tree, not integer.
10163
10164         * decl.c:
10165         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
10166         not integer.
10167
10168         * targtyps.c, decl.c, misc.c,
10169         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
10170         routines to work around change in FP sizing semantics in GCC.
10171
10172         * utils.c:
10173         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
10174
10175         * gigi.h: (enumerate_modes): New function.
10176
10177         * Make-lang.in: (ada/misc.o): Add real.h.
10178
10179         * misc.c: (enumerate_modes): New function.
10180
10181 2003-11-04  Robert Dewar  <dewar@gnat.com>
10182
10183         * 3vtrasym.adb: Minor reformatting
10184         Use terminology encoded/decoded name, rather than C++ specific notion
10185         of mangling (this is the terminology used throughout GNAT).
10186
10187         * einfo.h: Regenerated
10188
10189         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
10190
10191         * exp_ch6.adb:
10192         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
10193
10194         * par-prag.adb: Add dummy entry for Thread_Body pragma
10195
10196         * rtsfind.ads:
10197         Add entries for System.Threads entities for thread body processing
10198
10199         * sem_attr.adb:
10200         (Analyze_Pragma, Access attributes): Check these are not applied to a
10201         thread body, since this is not permitted
10202
10203         * sem_prag.adb: Add processing for Thread_Body pragma.
10204         Minor comment fix.
10205
10206         * sem_res.adb:
10207         (Resolve_Call): Check for incorrect attempt to call a thread body
10208          procedure with a direct call.
10209
10210         * snames.ads, snames.adb: Add entry for Thread_Body pragma
10211         Add names associated with thread body expansion
10212
10213         * snames.h: Add entry for Thread_Body pragma
10214
10215         * s-thread.adb: Add entries for thread body processing
10216         These are dummy bodies so far
10217
10218         * s-thread.ads: Add documentation on thread body handling.
10219         Add entries for thread body processing.
10220
10221 2003-11-04  Javier Miranda  <miranda@gnat.com>
10222
10223         * sem_ch10.adb:
10224         (Build_Limited_Views): Return after posting an error in case of limited
10225         with_clause on subprograms, generics, instances or generic renamings
10226         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
10227         on subprograms, generics, instances or generic renamings
10228
10229 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
10230
10231         * raise.c (setup_to_install): Correct mistake in last revision; two
10232         arguments out of order.
10233
10234         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
10235         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
10236         notice, missed in previous change.
10237         Remove trailing blanks and other style errors introduced in previous
10238         change.
10239
10240 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
10241
10242         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
10243         rid of the wrapper for a LJM type, ensuring we don't do that if the
10244         field is addressable.  This avoids potential low level type view
10245         mismatches later on, for instance in a by-reference argument passing
10246         process.
10247
10248 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10249
10250         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
10251         aligned at byte boundary.
10252
10253 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
10254
10255         * decl.c (components_to_record): Do not delete the empty variants from
10256         the end of the union type.
10257
10258 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
10259
10260         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
10261         operation for a derived type, an explicit declaration may use a local
10262         subtype of Boolean.
10263
10264 2003-11-04  Vincent Celier  <celier@gnat.com>
10265
10266         * make.adb (Gnatmake): Allow main sources on the command line with a
10267         library project when it is only for compilation (no binding or
10268         linking).
10269
10270 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10271
10272         * Makefile.in: Remove many duplicate variables.
10273
10274 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
10275
10276         * Make-lang.in (dvi): Move targets to $(docobjdir).
10277         (gnat_ug_vms.dvi): Simplify rule and adjust target.
10278         (gnat_ug_wnt.dvi): Likewise.
10279         (gnat_ug_unx.dvi): Likewise.
10280         (gnat_ug_vxw.dvi): Likewise.
10281         (gnat_rm.dvi): Likewise.
10282         (gnat-style.dvi): Likewise.
10283
10284 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
10285
10286         * gigi.h: Missed commit from update for C90.
10287
10288 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
10289
10290         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
10291
10292 2003-10-31  Andreas Schwab  <schwab@suse.de>
10293
10294         * raise.c (get_action_description_for): Fix typo in last change.
10295
10296 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
10297
10298         PR ada/12761
10299         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
10300         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
10301
10302 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
10303
10304         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
10305         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
10306         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
10307         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
10308         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
10309
10310 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
10311
10312         * 3vtrasym.adb:
10313         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
10314         numbers when symbol name is too long.
10315
10316 2003-10-30  Ed Falis  <falis@gnat.com>
10317
10318         * g-signal.ads, g-signal.adb: New files
10319
10320         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
10321
10322         * Makefile.rtl: Introduce GNAT.Signals
10323
10324 2003-10-30  Robert Dewar  <dewar@gnat.com>
10325
10326         * freeze.adb: Minor reformatting
10327
10328         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
10329
10330         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
10331         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
10332         New handling of Id_Check parameter to improve recognition of keywords
10333         used as identifiers.
10334         Update copyright notice to include 2003
10335
10336 2003-10-29  Robert Dewar  <dewar@gnat.com>
10337
10338         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
10339         sem_ch10.adb: Minor reformatting
10340
10341         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
10342         (Expand_Assign_Record): Test right hand side for bit unaligned as well
10343
10344 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
10345
10346         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
10347         Support for TBK$SYMBOLIZE-based symbolic traceback.
10348
10349 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
10350
10351         * exp_disp.adb:
10352         Revert previous change, that did not work well when pragma No_Run_Time
10353         was used in conjunction with a run-time other than ZFP.
10354
10355 2003-10-29  Vincent Celier  <celier@gnat.com>
10356
10357         * make.adb:
10358         (Gnatmake): When there are no Ada mains in attribute Main, disable the
10359          bind and link steps only is switch -z is not used.
10360
10361 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
10362
10363         * Makefile.generic: Remove duplicated setting of CC.
10364
10365         * Makefile.prolog: Set CC to gcc by default, to override make's
10366         default (cc).
10367
10368         * einfo.h: Regenerated.
10369
10370 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
10371
10372         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
10373         current body, after compiling subunit.
10374
10375         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
10376         when in deleted code, because gigi needs properly ordered freeze
10377         actions to annotate types.
10378
10379         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
10380         prevent the premature freezing of record type that contains
10381         subcomponents with a private type that does not yet have a completion.
10382
10383 2003-10-29  Javier Miranda  <miranda@gnat.com>
10384
10385         * sem_ch12.adb:
10386         (Analyze_Package_Instantiation): Check that instances can not be used in
10387         limited with_clauses.
10388
10389         * sem_ch8.adb:
10390         (Analyze_Package_Renaming): Check that limited withed packages cannot
10391         be renamed. Improve text on error messages related to limited
10392         with_clauses.
10393
10394         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
10395
10396         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
10397         Update copyright notice.
10398
10399         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
10400         (Install_Limited_Context_Clauses): New subprogram that isolates all the
10401         checks required for limited context_clauses and installs the limited
10402         view.
10403         (Install_Limited_Withed_Unit): Complete its documentation.
10404         (Analyze_Context): Check that limited with_clauses are only allowed in
10405         package specs.
10406         (Install_Context): Call Install_Limited_Context_Clauses after the
10407         parents have been installed.
10408         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
10409         package as 'From_With_Type'; this mark indicates that the limited view
10410         is installed. Used to check bad usages of limited with_clauses.
10411         (Build_Limited_Views): Do not add shadow entities to the scope's list
10412         of entities. Do not add real entities to the Non_Limited_Views chain.
10413         Improve error notification.
10414         (Remove_Context_Clauses): Remove context clauses in two phases:
10415         limited views first and regular views later (to maintain the
10416         stack model).
10417         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
10418         its visible entities.
10419
10420 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
10421
10422         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
10423         with any type that Is_Fixed_Point_Type.
10424
10425         * sinfo.ads: Fix documentation for Associated_Node attribute.
10426
10427 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
10428
10429         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
10430         both '-gnatc' and '-gnatt' are specified.
10431
10432         * atree.adb (Initialize): Add initialization for Node_Count (set to
10433         zero).
10434
10435 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10436
10437         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
10438         do not consider as Pure.
10439
10440         Part of implementation of function-at-a-time:
10441
10442         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
10443         (tree_transform): Add new argument to build_component_ref.
10444         (tree_transform, case N_Assignment_Statement): Make and return an
10445         EXPR_STMT.
10446         (tree_transform): If result IS_STMT, set flags and return it.
10447         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10448
10449         * utils2.c (build_simple_component_ref, build_component_ref): Add new
10450         arg, NO_FOLD_P.
10451         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
10452         (build_allocator): Likewise.
10453
10454         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
10455         Add new arg to build_component_ref.
10456         (maybe_unconstrained_array, unchecked_convert): Likewise.
10457
10458         * ada-tree.def (EXPR_STMT): New code.
10459
10460         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
10461
10462         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
10463         build_component_ref calls.
10464
10465         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
10466
10467         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10468         (build_component_ref): Add new argument, NO_FOLD_P.
10469
10470 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
10471
10472         * Makefile.generic: Add missing substitution on object_deps handling.
10473
10474         PR ada/5909:
10475         * Make-lang.in (check-ada): Enable ACATS test suite.
10476
10477 2003-10-27  Robert Dewar  <dewar@gnat.com>
10478
10479         * exp_ch3.adb:
10480         (Freeze_Array_Type): We do not need an initialization routine for types
10481         derived from String or Wide_String. They should be treated the same
10482         as String and Wide_String themselves. This caused problems with the
10483         use of Initialize_Scalars.
10484
10485         * exp_ch5.adb:
10486         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
10487         composites. This allows use of component clauses that are not byte
10488         aligned.
10489
10490         * sem_prag.adb:
10491         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
10492         is an attempt to pack an array of atomic objects.
10493
10494         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
10495
10496 2003-10-27  Pascal Obry  <obry@gnat.com>
10497
10498         * g-dirope.adb:
10499         (Basename): Check for drive letters in a pathname only on DOS based OS.
10500
10501 2003-10-27  Vincent Celier  <celier@gnat.com>
10502
10503         * make.adb:
10504         (Gnatmake): When unable to change dir to the object dir, display the
10505         content of the parent dir of the obj dir, to try to understand why this
10506         happens.
10507
10508 2003-10-27  GNAT Script  <nobody@gnat.com>
10509
10510         * Make-lang.in: Makefile automatically updated
10511
10512 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
10513
10514         * sem_ch12.adb:
10515         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
10516         should not be done in Save/Restore_Scope_Stack, because it is performed
10517         locally.
10518
10519         * sem_ch8.adb:
10520         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10521         whether use clauses should be removed/restored.
10522
10523         * sem_ch8.ads:
10524         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10525         whether use clauses should be removed/restored.
10526
10527 2003-10-26  Andreas Jaeger  <aj@suse.de>
10528
10529         * Makefile.in: Remove duplicated lines.
10530
10531 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
10532
10533         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
10534         minimize the differences with ACT tree.
10535
10536         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
10537         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
10538         Gnatvsn.Gnat_Static_Version_String to reduce differences between
10539         ACT and FSF trees.
10540
10541 2003-10-24  Pascal Obry  <obry@gnat.com>
10542
10543         * adadecode.c (ostrcpy): New function.
10544         (__gnat_decode): Use ostrcpy of strcpy.
10545         (has_prefix): Set first parameter a const.
10546         (has_suffix): Set first parameter a const.
10547         Update copyright notice. Fix source name in header.
10548         Removes a trailing space.
10549         PR ada/12014.
10550
10551 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
10552
10553         * exp_disp.adb:
10554         Remove the test against being in No_Run_Time_Mode before generating a
10555         call to Register_Tag. It is redundant with the test against the
10556         availability of the function Register_Tag.
10557
10558 2003-10-24  Vincent Celier  <celier@gnat.com>
10559
10560         * g-catiio.adb: (Month_Name): Correct spelling of February
10561
10562         * make.adb: (Mains): New package
10563         (Initialize): Call Mains.Delete
10564         (Gnatmake): Check that each main on the command line is a source of a
10565         project file and, if there are several mains, each of them is a source
10566         of the same project file.
10567         (Gnatmake): When a foreign language is specified in attribute Languages,
10568         no main is specified on the command line and attribute Mains is not
10569         empty, only build the Ada main. If there is no Ada main, just compile
10570         the Ada sources and their closure.
10571         (Gnatmake): If a main is specified on the command line with directory
10572         information, check that the source exists and, if it does, that the path
10573         is the actual path of a source of a project.
10574
10575         * prj-env.adb:
10576         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
10577         Full_Path is True, return the full path instead of the simple file name.
10578         (Project_Of): New function
10579
10580         * prj-env.ads:
10581         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
10582         defaulted to False.
10583         (Project_Of): New function
10584
10585 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
10586
10587         * Makefile.generic:
10588         Ensure objects of main project are always checked and rebuilt if needed.
10589         Set CC to gcc by default.
10590         Prepare new handling of link by creating a global archive (not activated
10591         yet).
10592
10593         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10594         stringt.h: Update copyright notice. Remove trailing blanks.
10595         Fix source name in header.
10596
10597 2003-10-24  Robert Dewar  <dewar@gnat.com>
10598
10599         * sem_ch12.adb: Minor reformatting
10600
10601         * sem_ch3.adb:
10602         Minor reformatting (including new function return style throughout)
10603
10604         * sem_ch3.ads:
10605         Minor reformatting (including new function return style throughout)
10606
10607 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
10608
10609         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10610         stringt.h: Update copyright notice. Remove trailing blanks.
10611         Fix source name in header.
10612
10613 2003-10-24  GNAT Script  <nobody@gnat.com>
10614
10615         * Make-lang.in: Makefile automatically updated
10616
10617 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
10618
10619         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
10620         stringt.h: Convert to ISO C90 declarations and definitions.
10621
10622 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
10623
10624         PR ada/11978:
10625         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
10626         External_Tag attribute definition clauses.
10627
10628 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
10629
10630         PR ada/7613:
10631         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
10632         child unit, generate a fully qualified name to avoid spurious errors
10633         when the context contains renamings of different child units with
10634         the same simple name.
10635
10636         * exp_dbug.ads: Add documentation on name qualification for renamings
10637         of child units.
10638
10639 2003-10-23  Robert Dewar  <dewar@gnat.com>
10640
10641         * g-regpat.ads, g-regpat.adb: Minor reformatting
10642
10643 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
10644
10645         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
10646
10647 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10648
10649         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
10650         Machine call.
10651
10652         * urealp.h: (Machine): Update to proper definition.
10653
10654 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
10655
10656         * init.c, adaint.c: Minor reformatting.
10657
10658 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
10659
10660         * adaint.c (w32_epoch_offset): Define static const at file level.
10661         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
10662         rather than t_create, t_access in call to GetFileTime. Use union
10663         to convert between FILETIME and  unsigned long long.
10664         (__gnat_file_time_name): Test for invalid file handle.
10665         (__gnat_set_filetime_name): Support win32 targets using
10666         w32api SetFileTime.
10667
10668 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
10669
10670         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
10671
10672         * ctrl_c.c (__gnat_int_handler): Remove declaration.
10673
10674         * decl.c (creat_concat_name):  Const-ify prefix.
10675
10676         * adaint.c: Include ctype.h if __MINGW32__.
10677         (__gnat_readlink): Mark arguments as possibly unused.
10678         (__gnat_symlink): Likewise.
10679         (__gnat_is_symbolic_link): Likewise.
10680         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
10681         declaration
10682         (__gnat_file_time_name): Don't declare struct stat statbuf when
10683         not needed.
10684         (__gnat_is_absolute_path): Add parenthesis around condition of
10685         'if' statement to avoid warning.
10686         (__gnat_plist_init): Specify void as parameter.
10687         (plist_enter): Likewise.
10688         (plist_leave): Likewise.
10689         (remove_handle): Make static. Initialize prev.
10690
10691 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
10692
10693         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
10694         * cstreams.c (__gnat_full_name): Minor improvements and clean up
10695         of previous change.
10696
10697 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10698
10699         * tracebak.c (MAX): Avoid redefinition warning.
10700
10701         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
10702         Change msg to const char *.
10703         (__gnat_install_handler): Remove ss, unused.
10704         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
10705         to const char *.
10706         * cstreams.c (__gnat_full_name): Declare p only when used.
10707         (__gnat_full_name) [sgi] Return buffer.
10708
10709 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
10710
10711         * mingw32.h: New file.
10712         * gnat_wrapper.adb: New file.
10713
10714 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
10715
10716         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
10717         string match a pre compiled regular expression (the corresponding
10718         version of the function working on a raw regular expression)
10719         Fix typos in various comments
10720         Update copyright notice in spec
10721
10722 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
10723
10724         * exp_ch3.adb:
10725         (Component_Needs_Simple_Initialization): Return False when the type is a
10726         packed bit array. Revise spec comments to document this case.
10727
10728         * exp_prag.adb:
10729         (Expand_Pragma_Import): Set any expression on the imported object to
10730         empty to avoid initializing imported objects (in particular this
10731         covers the case of zero-initialization of bit arrays).
10732         Update copyright notice.
10733
10734 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
10735
10736         * sem_ch12.adb:
10737         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
10738         a subunit is missing.
10739         (Instantiate_Subprogram_Body): If body of function is missing, set type
10740         of return expression explicitly in dummy body, to prevent cascaded
10741         errors when a subunit is missing.
10742         Fixes PR 5677.
10743
10744         * sem_ch3.adb:
10745         (Access_Subprogram_Declaration): Verify that return type is valid.
10746         Fixes PR 8693.
10747
10748         * sem_elab.adb:
10749         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
10750         generic.
10751         Fixes PR 12318.
10752
10753         * sem_util.adb:
10754         (Corresponding_Discriminant): If the scope of the discriminant is a
10755         private type without discriminant, use its full view.
10756         Fixes PR 8247.
10757
10758 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
10759
10760         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
10761         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
10762         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
10763         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
10764         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
10765         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
10766         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
10767         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
10768         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
10769         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
10770         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
10771         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
10772         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
10773         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
10774         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
10775         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
10776         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
10777         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
10778         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
10779         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10780         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
10781         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
10782         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
10783         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
10784         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
10785         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
10786         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
10787         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
10788         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
10789         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
10790         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
10791         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10792         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
10793         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
10794         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
10795         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
10796         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
10797         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
10798         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
10799         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
10800         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
10801         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
10802         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
10803         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
10804         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
10805         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
10806         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
10807         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
10808         vms_conv.ads, vms_conv.adb, vms_data.ads,
10809         vxaddr2line.adb: Files added. Merge with ACT tree.
10810
10811         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
10812         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
10813         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
10814         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
10815         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
10816         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
10817         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10818         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
10819         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
10820         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
10821
10822         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10823         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10824         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10825         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10826         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
10827         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
10828         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10829         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
10830         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
10831         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
10832         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
10833         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
10834         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
10835         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
10836         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
10837         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
10838         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
10839         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10840         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
10841         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
10842         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
10843         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
10844         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
10845         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
10846         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
10847         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
10848         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
10849         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
10850         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
10851         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
10852         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
10853         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
10854         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10855         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
10856         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
10857         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
10858         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
10859         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
10860         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
10861         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
10862         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
10863         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
10864         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
10865         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
10866         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
10867         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
10868         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
10869         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
10870         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
10871         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
10872         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
10873         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
10874         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
10875         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
10876         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
10877         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
10878         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
10879         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
10880         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
10881         checks.adb, checks.ads, cio.c, comperr.adb,
10882         comperr.ads, csets.adb, cstand.adb, cstreams.c,
10883         debug_a.adb, debug_a.ads, debug.adb, decl.c,
10884         einfo.adb, einfo.ads, errout.adb, errout.ads,
10885         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
10886         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
10887         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
10888         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10889         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
10890         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
10891         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10892         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
10893         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
10894         fe.h, fmap.adb, fmap.ads, fname.adb,
10895         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
10896         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
10897         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
10898         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10899         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10900         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10901         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
10902         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
10903         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
10904         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
10905         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
10906         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
10907         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
10908         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
10909         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
10910         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
10911         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
10912         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
10913         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
10914         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
10915         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
10916         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
10917         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
10918         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
10919         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
10920         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
10921         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
10922         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
10923         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
10924         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
10925         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
10926         layout.adb, lib.adb, lib.ads, lib-list.adb,
10927         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
10928         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10929         link.c, live.adb, make.adb, make.ads,
10930         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
10931         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10932         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
10933         misc.c, mkdir.c, mlib.adb, mlib.ads,
10934         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
10935         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
10936         namet.adb, namet.ads, namet.h, nlists.ads,
10937         nlists.h, nmake.adt, opt.adb, opt.ads,
10938         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
10939         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
10940         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10941         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
10942         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
10943         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
10944         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
10945         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
10946         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10947         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10948         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10949         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10950         prj-util.adb, prj-util.ads, raise.c, raise.h,
10951         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
10952         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
10953         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
10954         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
10955         scans.ads, scn.adb, scn.ads, s-crc32.adb,
10956         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
10957         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10958         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10959         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
10960         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
10961         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10962         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10963         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
10964         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
10965         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
10966         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
10967         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
10968         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
10969         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
10970         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10971         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
10972         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
10973         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
10974         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
10975         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
10976         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
10977         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
10978         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
10979         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
10980         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
10981         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
10982         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
10983         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
10984         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
10985         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
10986         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
10987         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
10988         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
10989         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
10990         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
10991         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
10992         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
10993         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
10994         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
10995         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
10996         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10997         stringt.adb, stringt.ads, stringt.h, style.ads,
10998         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
10999         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
11000         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
11001         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
11002         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
11003         table.adb, table.ads, targparm.adb, targparm.ads,
11004         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
11005         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
11006         ttypes.ads, types.ads, types.h, uintp.adb,
11007         uintp.ads, uintp.h, uname.adb, urealp.adb,
11008         urealp.ads, urealp.h, usage.adb, utils2.c,
11009         utils.c, validsw.adb, validsw.ads, widechar.adb,
11010         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
11011         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
11012         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
11013         gnatvsn.ads: Merge with ACT tree.
11014
11015         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
11016
11017 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
11018
11019         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
11020         (gnat_ug_vmx.info): Likewise.
11021         (gnat_ug_vxw.info): Likewise.
11022         (gnat_ug_wnt.info): Likewise.
11023         (gnat_rm.info): Likewise.
11024         (gnat-style.info): Likewise.
11025
11026         * Make-lang.in (ada.install-info): Remove target.
11027         (info): New target.
11028         (install-info): Likewise.
11029         (gnat_ug_unx.info): Simplify rule.
11030         (gnat_ug_vmx.info): Likewise.
11031         (gnat_ug_vxw.info): Likewise.
11032         (gnat_ug_wnt.info): Likewise.
11033         (gnat_rm.info): Likewise.
11034         (gnat-style.info): Likewise.
11035
11036 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
11037
11038         * Make-lang.in: Replace uses of $(target_alias) with
11039         $(target_noncanonical).
11040         * ada/Makefile.in: Remove unused mention of $(target_alias).
11041
11042 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
11043
11044         * Make-lang.in (ada.info): Replace with ...
11045         (info): ... this.
11046         (ada.dvi): Replace with ...
11047         (dvi): ... this.
11048
11049 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
11050
11051         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
11052         initialize dconstp5 and dconstmp5.
11053
11054 2003-09-28  Richard Henderson  <rth@redhat.com>
11055
11056         * trans.c (tree_transform): Update call to expand_asm_operands.
11057
11058 2003-09-21  Richard Henderson  <rth@redhat.com>
11059
11060         * trans.c, utils.c: Revert.
11061
11062 2003-09-21  Richard Henderson  <rth@redhat.com>
11063
11064         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
11065         change to const.
11066
11067 2003-09-04  Michael Matz  <matz@suse.de>
11068
11069         * misc.c: Include "target.h".
11070         * Make-lang.in (misc.o): Add dependency on target.h.
11071
11072 2003-09-03  DJ Delorie  <dj@redhat.com>
11073
11074         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
11075         hook.
11076
11077 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
11078
11079         * Makefile.in: Update substitutions to match changes to
11080         configure.  Use include directives instead of @-insertions
11081         to read in host and target fragments.  Add a rule to
11082         regenerate ada/Makefile.
11083
11084 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
11085
11086         * lang-options.h: Remove.
11087         * lang.opt: Add help text.
11088
11089 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
11090
11091         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
11092         calls.
11093
11094 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
11095
11096         * misc.c (gnat_handle_option): Don't handle filenames.
11097
11098 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
11099
11100         * Make-lang.in: Replace PWD with PWD_COMMAND.
11101         * Makefile.adalib: Likewise.
11102         * Makefile.in: Likewise.
11103
11104 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
11105
11106         * misc.c (gnat_argv): Revert last change.
11107         (gnat_handle_option, gnat_init_options): Copy arguments.
11108
11109 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
11110
11111         * misc.c (gnat_argv): Make const.
11112
11113 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
11114
11115         * misc.c (save_argc, save_argv): Keep non-static!
11116
11117 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
11118
11119         * misc.c (save_argc, save_argv): Make static.
11120         (gnat_init_options): New prototype.
11121         (gnat_init_options): Update.
11122
11123 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
11124
11125         * gnat_ug.texi: Remove unlikely characters from @vars.
11126         * gnat_ug_vms.texi: Regenerate.
11127
11128 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
11129
11130         * misc.c (record_code_position): Adjust emit_note call.
11131
11132 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
11133
11134         * misc.c (gnat_handle_option): Don't check for missing arguments.
11135
11136 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
11137
11138         * utils.c (end_subprog_body): Adjust expand_function_end call.
11139
11140 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
11141
11142         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
11143         Bind_Main_Program.
11144
11145 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
11146
11147         * lang.opt: Declare Ada.
11148         * misc.c (gnat_init_options): Update.
11149
11150 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
11151
11152         * utils.c (begin_subprog_body): Adjust init_function_start call.
11153
11154 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
11155
11156         * Make-lang.in: Update to use options.c and options.h.
11157         * misc.c: Include options.h not aoptions.h.
11158         (gnat_handle_option): Abort on unrecognized switch.
11159         (gnat_init_options): Request Ada switches.
11160
11161 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
11162
11163         * lang.opt: Add -Wall.
11164         * misc.c (gnat_handle_option): Handle it.
11165
11166 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
11167
11168         * misc.c (gnat_handle_option): Fix warnings.
11169
11170 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
11171
11172         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
11173
11174 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
11175
11176         * Make-lang.in: Update to handle command-line options.
11177         * lang.opt: New file.
11178         * misc.c: Include aoptions.h.
11179         (cl_options_count, cl_options): Remove.
11180         (gnat_handle_option): New.
11181         (gnat_decode_option): Remove.
11182         (LANG_HOOKS_DECODE_OPTION): Remove.
11183         (LANG_HOOKS_HANDLE_OPTION): Override.
11184
11185 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
11186
11187         * init.c, misc.c, trans.c, utils.c: Remove dead code.
11188
11189 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
11190
11191         * Makefile.in: Replace "host_canonical" with "host" for autoconf
11192         substitution.
11193
11194 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
11195
11196         * Make-lang.in: Update.
11197         * misc.c: Include opts.h. Define cl_options_count and cl_options.
11198
11199 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
11200
11201         * misc.c (gnat_init_options): Update.
11202
11203 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
11204
11205         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
11206         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
11207         __attribute__ ((__unused__)).
11208
11209 2003-06-05  Jan Hubicka  <jh@suse.cz>
11210
11211         * Make-lang.in:  Add support for stageprofile and stagefeedback
11212
11213 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
11214
11215         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
11216         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
11217
11218 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
11219
11220         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
11221         Remove non-VMS directive.
11222         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
11223         alternatives.
11224         (Examples of gnatls Usage): Remove VMS alternative.
11225
11226 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
11227
11228         PR ada/9953:
11229         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
11230         and turn ZCX_By_Default back to False since the underlying support
11231         is not quite there yet.
11232
11233 2003-06-01  Andreas Jaeger  <aj@suse.de>
11234
11235         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
11236         and ROUND_TYPE_SIZE_UNIT.
11237
11238 2003-05-22   Geert Bosch <bosch@gnat.com>
11239
11240         * gnat_rm.texi : Remove reference to Ada Core Technologies.
11241
11242 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
11243
11244         * trans.c (tree_transform): Use location_t and input_location
11245         directly.
11246         (build_unit_elab): Likewise.
11247         * utils.c (create_label_decl): Likewise.
11248
11249 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
11250
11251         * trans.c (tree_transform, build_unit_elab,
11252         set_lineno): Rename lineno to input_line.
11253         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
11254         end_subprog_body): Likewise.
11255         * utils2.c (build_call_raise): Likewise.
11256
11257 2003-05-01  Laurent Guerby <guerby@acm.org>
11258
11259         PR ada/10546
11260         * 5iosinte.ads: Increase pthread_cond_t size to match recent
11261         LinuxThread and NPTL version, merge from ACT.
11262
11263 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
11264
11265         * utils.c (convert): No need to clear TREE_CST_RTL.
11266
11267 2003-04-23   Geert Bosch <bosch@gnat.com>
11268
11269         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
11270         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
11271         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
11272         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
11273         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
11274         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
11275         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
11276         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
11277         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
11278         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
11279         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
11280         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
11281         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
11282         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
11283         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
11284         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
11285         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
11286         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
11287         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
11288         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
11289         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
11290         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
11291         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
11292         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
11293         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
11294         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
11295         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
11296         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
11297         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
11298         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
11299         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
11300         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
11301         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
11302         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
11303         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
11304         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
11305         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
11306         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
11307         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
11308         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
11309         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
11310         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
11311         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
11312         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
11313         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
11314         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
11315         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
11316         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
11317         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
11318         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
11319         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
11320         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
11321         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
11322         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
11323         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
11324         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
11325         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
11326         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
11327         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
11328         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
11329         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
11330         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
11331         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
11332         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
11333         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
11334         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
11335         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
11336         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
11337         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
11338         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
11339         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
11340         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
11341         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
11342         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
11343         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
11344         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
11345         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
11346         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
11347         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
11348         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
11349         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
11350         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
11351         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
11352         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
11353         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
11354         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
11355         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
11356         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
11357         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
11358         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
11359         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
11360         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
11361         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
11362         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
11363         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
11364         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
11365         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
11366         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
11367         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
11368         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
11369         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
11370         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
11371         ali.adb, ali.ads, alloc.ads, argv.c,
11372         atree.adb, atree.ads, atree.h, aux-io.c,
11373         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
11374         binde.adb, binde.ads, binderr.adb, binderr.ads,
11375         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
11376         butil.adb, butil.ads, cal.c, calendar.ads,
11377         casing.adb, casing.ads, ceinfo.adb, checks.adb,
11378         checks.ads, cio.c, comperr.adb, comperr.ads,
11379         config-lang.in, csets.adb, csets.ads, csinfo.adb,
11380         cstand.adb, cstand.ads, cuintp.c, debug.adb,
11381         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
11382         dec-io.ads, dec.ads, deftarg.c, directio.ads,
11383         einfo.adb, einfo.ads, elists.adb, elists.ads,
11384         elists.h, errno.c, errout.adb, errout.ads,
11385         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
11386         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
11387         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
11388         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
11389         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
11390         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
11391         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
11392         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
11393         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
11394         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
11395         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
11396         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
11397         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
11398         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
11399         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
11400         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
11401         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
11402         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
11403         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
11404         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
11405         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
11406         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
11407         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
11408         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
11409         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
11410         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
11411         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
11412         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
11413         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
11414         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
11415         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
11416         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
11417         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
11418         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
11419         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
11420         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
11421         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
11422         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
11423         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
11424         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
11425         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
11426         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
11427         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
11428         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
11429         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
11430         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
11431         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
11432         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
11433         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
11434         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
11435         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
11436         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
11437         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
11438         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
11439         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
11440         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
11441         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
11442         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
11443         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
11444         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
11445         lib.adb, lib.ads, live.adb, live.ads,
11446         machcode.ads, make.adb, make.ads, makeusg.adb,
11447         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
11448         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
11449         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
11450         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
11451         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
11452         mlib.ads, namet.adb, namet.ads, nlists.adb,
11453         nlists.ads, opt.adb, opt.ads, osint-b.adb,
11454         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
11455         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
11456         osint.ads, output.adb, output.ads, par-ch10.adb,
11457         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
11458         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
11459         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
11460         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
11461         par-tchk.adb, par-util.adb, par.adb, par.ads,
11462         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
11463         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
11464         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
11465         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
11466         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
11467         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
11468         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
11469         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
11470         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
11471         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
11472         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
11473         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
11474         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
11475         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
11476         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
11477         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
11478         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
11479         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
11480         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
11481         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
11482         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
11483         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
11484         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
11485         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
11486         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
11487         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
11488         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
11489         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
11490         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
11491         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
11492         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
11493         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
11494         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
11495         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
11496         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
11497         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
11498         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
11499         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
11500         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
11501         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
11502         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
11503         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
11504         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
11505         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
11506         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
11507         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
11508         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
11509         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
11510         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
11511         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
11512         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
11513         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
11514         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
11515         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
11516         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
11517         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
11518         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
11519         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
11520         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
11521         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
11522         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
11523         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
11524         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
11525         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
11526         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
11527         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
11528         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
11529         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
11530         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
11531         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
11532         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
11533         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
11534         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
11535         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
11536         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
11537         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
11538         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
11539         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
11540         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
11541         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
11542         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
11543         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
11544         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
11545         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11546         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
11547         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
11548         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
11549         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
11550         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
11551         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
11552         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
11553         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
11554         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
11555         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
11556         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
11557         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
11558         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
11559         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
11560         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
11561         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
11562         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
11563         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
11564         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
11565         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
11566         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
11567         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
11568         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
11569         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
11570         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
11571         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
11572         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
11573         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
11574         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
11575         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
11576         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
11577         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
11578         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
11579         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
11580         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
11581         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
11582         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
11583         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
11584         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
11585         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
11586         snames.ads, sprint.adb, sprint.ads, stand.adb,
11587         stand.ads, stringt.adb, stringt.ads, style.adb,
11588         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
11589         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
11590         switch-m.ads, switch.adb, switch.ads, system.ads,
11591         table.adb, table.ads, targparm.adb, targparm.ads,
11592         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
11593         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
11594         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
11595         ttypef.ads, ttypes.ads, types.adb, types.ads,
11596         uintp.adb, uintp.ads, uname.adb, uname.ads,
11597         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
11598         usage.adb, usage.ads, validsw.adb, validsw.ads,
11599         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
11600         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
11601         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
11602         formatting and other trivial changes from ACT.
11603
11604 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11605
11606         * gigi.h, utils2.c (build_constructor):
11607         Rename gnat_build_constructor. Use build_constructor.
11608         * decl.c (gnat_to_gnu_entity)
11609         * trans.c (tree_transform, pos_to_constructor, extract_values)
11610         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
11611         (unchecked_convert)
11612         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
11613         (fill_vms_descriptor):
11614         Update to match.
11615
11616 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
11617
11618         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
11619         * misc.c (gnat_tree_size): New function.
11620         (LANG_HOOKS_TREE_SIZE): Override.
11621
11622 2003-04-03  Jason Merrill  <jason@redhat.com>
11623
11624         * misc.c (gnat_adjust_rli): #if 0.
11625
11626 2003-03-31   Geert Bosch <bosch@gnat.com>
11627
11628         PR ada/10020
11629         * link.c : Fix misspelled "const" keyword
11630
11631 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
11632
11633         PR c++/7086
11634         * utils2.c: Adjust calls to put_var_into_stack.
11635
11636 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11637
11638         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
11639
11640 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11641
11642         * misc.c (gnat_init): Update for new prototype.
11643
11644 2003-03-05  Olivier Hainque  <hainque@gnat.com>
11645
11646         ada/9961
11647         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
11648         warning, and fix return type for the IN_RTS && !SJLJ case.
11649
11650 2003-03-04  Tom Tromey  <tromey@redhat.com>
11651
11652         * Make-lang.in (ada.tags): New target.
11653
11654 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
11655
11656         ada/9911
11657         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
11658         wrapper, which name remains constant whatever underlying GCC
11659         scheme.
11660
11661         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
11662         the stable interface needed for a-except.
11663
11664 2003-03-02  Andreas Jaeger  <aj@suse.de>
11665
11666         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11667         gnat_ug_wnt.texi: Regenerate.
11668
11669 2003-03-02  Laurent Guerby <guerby@acm.org>
11670
11671         * Makefile.in (install-gnatlib): Match previous change there
11672         so it works.
11673
11674 2003-02-28  Andreas Schwab  <schwab@suse.de>
11675
11676         * Make-lang.in (install-gnatlib): Change to ada directory before
11677         running make instead of using ada/Makefile directly.
11678
11679 2003-02-18  Ben Elliston  <bje@redhat.com>
11680
11681         Part of fix for PR ada/9406
11682         * gnat_ug.texi (Binder output file): Grammar fix.
11683
11684 2003-02-18  Ben Elliston  <bje@redhat.com>
11685
11686         PR other/7350
11687         * 5qtaprop.adb (Sleep): Fix typo in comment.
11688
11689 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
11690
11691         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
11692         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11693         gnat_ug_wnt.texi: Regenerate.
11694
11695 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
11696
11697         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
11698         be created if necessary.
11699         (ada.install-common): Let $(DESTDIR)$(bindir) be created
11700         if necessary.  Remove erroneous and redundant gnatchop
11701         installation commands.  Test for gnatdll before attempting
11702         to install it.
11703         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
11704         and gnatdll from all plausible locations.
11705
11706 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
11707
11708         * utils2.c (build_unary_op): Don't check flag_volatile.
11709         * gnat_ug.texi: Remove -fvolatile from example.
11710         * gnat_ug_vxw.texi: Likewise.
11711
11712 2003-01-29  Laurent Guerby <guerby@acm.org>
11713
11714         PR ada/8344
11715         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
11716         * Makefile.in: match previous change.
11717         * Make-lang.in: match previous change.
11718
11719 2003-01-29      Joel Sherrill <joel@OARcorp.com>
11720
11721         * 5rosinte.ads: Add SIGXCPU.
11722         * 5rtpopsp.adb: New file.
11723         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
11724         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
11725         specific file 5rtpopsp.adb.
11726         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
11727         is likely needed for all newlib targets.
11728         * init.c: Add RTEMS specific version of __gnat_initialize().
11729
11730 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11731
11732         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
11733
11734 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11735
11736         * init.c (__gnat_error_handler): Make msg const.
11737
11738         * gmem.c (convert_addresses): Move declaration ...
11739         * adaint.h: ... here.
11740         * adaint.c (convert_addresses): Adapt addrs type to match
11741         prototype.
11742
11743         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
11744
11745 2003-01-24  Andreas Schwab  <schwab@suse.de>
11746
11747         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
11748         size_t to avoid warning.
11749
11750 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
11751
11752         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
11753
11754 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
11755
11756         * gnat_rm.texi: Remove RCS version number.
11757
11758         * ada-tree.h (union lang_tree_node): Add chain_next option.
11759
11760 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
11761
11762         * Make-lang.in (ada.install-info, ada.install-common,
11763         ada.uninstall): Prepend $(DESTDIR) to the destination
11764         directory in all (un)installation commands.
11765         * Makefile.in (install-gnatlib, install-rts): Ditto.
11766
11767 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
11768
11769         * gnat_rm.texi, gnat_ug.texi: Use @copying.
11770         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11771         gnat_ug_wnt.texi: Regenerate.
11772
11773 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
11774
11775         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
11776         only.
11777         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
11778         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
11779         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
11780         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
11781         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
11782         $(srcdir)/doc/include/gcc-common.texi.
11783
11784 2002-12-15   Geert Bosch <bosch@gnat.com>
11785
11786         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
11787
11788 2002-12-14   Geert Bosch <bosch@gnat.com>
11789
11790         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
11791         case of a body created for a Renaming_As_Body, on which
11792         conformance checks are not performed. Fixes PR ada/5690.
11793
11794 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
11795
11796         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
11797         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
11798         not already included.
11799         * Make-lang.in: Update dependencies.
11800
11801 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
11802         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
11803         solution to buffer overflow bug on GNU/Linux.
11804
11805 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
11806         Closes PR ada/5856 and PR ada/6919 !
11807         * bindgen.adb: Remove all references to Public_Version.
11808         * comperr.adb: Remove all references to Public_Version and
11809         GNATPRO_Version; correct bug reporting instructions.
11810         * comperr.ads: Change to match bug box.
11811         * gnatvsn.ads: Remove all references to Public version and
11812         GNATPRO version.
11813
11814 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
11815         PR ada/6919
11816         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
11817         GNU/Linux.
11818
11819         PR ada/6558
11820         * config-lang.in: Remove diff_excludes.
11821
11822 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
11823         PR ada/8358
11824         * trans.c (gnu_pending_elaboration_lists): New GC root.
11825         (build_unit_elab): Use..
11826
11827 2002-10-30   Geert Bosch <bosch@gnat.com>
11828         PR ada/6558
11829         * misc.c : Include optabs.h
11830
11831         * Make-lang.in (misc.o): Add dependency on optabs.h
11832
11833 2002-10-29   Geert Bosch <bosch@gnat.com>
11834         PR ada/6558
11835         * Make-lang.in (gnatbind): Depend on CONFIG_H
11836
11837 2002-10-29  Geert bosch  <bosch@gnat.com>
11838         PR ada/6558
11839         * misc.c: Unrevert misc.c (1.13)
11840
11841 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
11842
11843         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
11844         maintainership comments.
11845
11846 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
11847         PR ada/5904
11848         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
11849         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
11850         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
11851         7staprop.adb: Correct statements in comments about
11852         maintainership of GNAT.
11853
11854         PR ada/5904
11855         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
11856         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
11857         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
11858         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
11859         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
11860         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
11861         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
11862         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
11863         comments about maintainership of GNAT.
11864
11865         PR ada/6919 (forward port of patch for PR ada/5904)
11866         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
11867         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
11868         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
11869         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
11870         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
11871         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
11872         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
11873         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
11874         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
11875         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
11876         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
11877         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
11878         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
11879         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
11880         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
11881         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
11882         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
11883         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
11884         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
11885         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
11886         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
11887         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
11888         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
11889         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
11890         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
11891         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
11892         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
11893         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
11894         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
11895         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
11896         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
11897         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
11898         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
11899         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
11900         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
11901         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
11902         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
11903         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
11904         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
11905         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
11906         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
11907         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
11908         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
11909         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
11910         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
11911         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
11912         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
11913         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
11914         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
11915         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
11916         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
11917         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
11918         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
11919         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
11920         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
11921         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
11922         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
11923         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
11924         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
11925         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
11926         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
11927         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
11928         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
11929         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
11930         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
11931         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
11932         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
11933         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
11934         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
11935         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
11936         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
11937         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
11938         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
11939         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
11940         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
11941         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
11942         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
11943         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
11944         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
11945         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
11946         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
11947         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
11948         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
11949         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
11950         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
11951         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
11952         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
11953         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
11954         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
11955         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
11956         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
11957         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
11958         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
11959         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
11960         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
11961         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
11962         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
11963         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
11964         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
11965         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
11966         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
11967         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
11968         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
11969         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
11970         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
11971         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
11972         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
11973         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
11974         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
11975         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
11976         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
11977         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
11978         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
11979         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
11980         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
11981         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
11982         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
11983         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
11984         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
11985         par-endh.adb par-labl.adb par-load.adb par-prag.adb
11986         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
11987         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
11988         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
11989         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
11990         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
11991         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
11992         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
11993         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
11994         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
11995         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
11996         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
11997         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
11998         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
11999         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
12000         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
12001         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
12002         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
12003         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
12004         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
12005         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
12006         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
12007         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
12008         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
12009         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
12010         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
12011         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
12012         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
12013         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
12014         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
12015         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
12016         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
12017         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
12018         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
12019         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
12020         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
12021         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
12022         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
12023         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
12024         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
12025         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
12026         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
12027         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
12028         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
12029         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
12030         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
12031         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
12032         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
12033         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
12034         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
12035         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
12036         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
12037         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
12038         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
12039         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
12040         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
12041         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
12042         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
12043         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
12044         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
12045         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
12046         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
12047         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
12048         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
12049         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
12050         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
12051         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
12052         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
12053         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
12054         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
12055         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
12056         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
12057         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
12058         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
12059         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
12060         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
12061         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
12062         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
12063         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
12064         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
12065         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
12066         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
12067         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
12068         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
12069         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
12070         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
12071         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
12072         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
12073         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
12074         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
12075         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
12076         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
12077         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
12078         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
12079         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
12080         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
12081         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
12082         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
12083         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
12084         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
12085         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
12086         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
12087         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
12088         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
12089         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
12090         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
12091         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
12092         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
12093         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
12094         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
12095         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
12096         stringt.ads stringt.h style.adb style.ads stylesw.adb
12097         stylesw.ads switch.adb switch.ads sysdep.c system.ads
12098         table.adb table.ads targparm.adb targparm.ads targtyps.c
12099         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
12100         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
12101         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
12102         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
12103         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
12104         usage.ads utils.c utils2.c validsw.adb validsw.ads
12105         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
12106         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
12107         xtreeprs.adb: Correct statements in comments about maintainership
12108         of GNAT.
12109
12110 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
12111
12112         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
12113         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
12114         * gnatvsn.ads: Gnat_Version_String is now a function.
12115         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
12116         copy the C version_string into a String and return it.
12117         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
12118         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
12119         Remove pragma Ident (Gnat_Version_String).  If this was the
12120         sole use of package Gnatvsn, remove the with statement too.
12121         * gnat1drv.adb: Tweak -gnatv output.
12122
12123 2002-09-17  Richard Henderson  <rth@redhat.com>
12124
12125         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
12126         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
12127         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
12128         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12129         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
12130         and real_2expN instead of a loop.
12131         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
12132         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
12133
12134 2002-08-25  Andre Leis <a.leis@gmx.net>
12135             David Billinghurst (David.Billinghurst@riotinto.com>
12136
12137         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
12138
12139 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12140
12141         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
12142         Remove $(CONFIG_H) dependency.
12143
12144 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
12145
12146         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
12147
12148 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12149
12150         * adadecode.c (ada_demangle): Use xstrdup in lieu of
12151         xmalloc/strcpy.
12152         * misc.c (gnat_decode_option): Likewise.
12153
12154 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
12155
12156         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
12157         function approach did not work well because of a side effect (the
12158         function call could reallocate the table which was being indexed
12159         using its result). Fixes ada/4851. [RESURRECTED]
12160
12161 2002-07-01  Roger Sayle  <roger@eyesopen.com>
12162
12163         * ada/utils.c (builtin_function): Accept an additional parameter.
12164
12165 2002-06-28  Andreas Jaeger  <aj@suse.de>
12166
12167         PR ada/7144
12168         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
12169         <adi@thur.de>.
12170
12171 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12172
12173         * Makefile.in (SHELL): Set to @SHELL@.
12174
12175 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12176
12177         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
12178         array size calculation.
12179
12180 2002-06-04  Andreas Jaeger  <aj@suse.de>
12181
12182         * Make-lang.in (gnatbind): Readd rule that has been lost in last
12183         patch.
12184
12185 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
12186
12187         Merge from pch-branch:
12188
12189         * config-lang.in (gtfiles): Add ada-tree.h.
12190         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
12191         (SET_TYPE_MODULUS): New.
12192         (SET_TYPE_INDEX): New.
12193         (SET_TYPE_DIGITS_VALUE): New.
12194         (SET_TYPE_RM_SIZE): New.
12195         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
12196         (SET_TYPE_ADA_SIZE): New.
12197         (SET_TYPE_ACTUAL_BOUNDS): New.
12198         (SET_DECL_CONST_CORRESPONDING_VAR): New.
12199         (SET_DECL_ORIGINAL_FIELD): New.
12200         (TREE_LOOP_ID): Correct typo.
12201         * decl.c: Use new macros.
12202         * utils.c: Include debug.h, use new macros.
12203         * utils2.c: Use new macros.
12204
12205         * ada-tree.h: Update all macros for new tree description.
12206         (struct tree_loop_id): New.
12207         (union lang_tree_node): New.
12208         (struct lang_decl): New.
12209         (struct lang_type): New.
12210         * misc.c (gnat_mark_tree): Delete.
12211         (LANG_HOOKS_MARK_TREE): Delete.
12212         * trans.c (tree_transform): No longer any need to cast
12213         for TREE_LOOP_ID.
12214
12215         * utils.c (struct language_function): New dummy structure.
12216
12217         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
12218         (misc.o): Likewise.
12219         (utils.o): Likewise; also gtype-ada.h.
12220         * Make-lang.in (gnat1): Add dependency on s-gtype.
12221         (gnatbind): Add dependency on $(CONFIG_H).
12222         * utils.c: Correct last #include.
12223         (stuct e_stack): Remove unnecessary 'static'.
12224         (mark_e_stack): Remove unused prototype.
12225
12226         * scn-nlit.adb: Remove whitespace after version number to
12227         keep lines under 80 chars.
12228         * snames.adb: Likewise.
12229         * treepr.ads: Likewise.
12230
12231         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
12232         (misc.o): Likewise.
12233         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
12234         * config-lang.in (gtfiles): New.
12235         * decl.c: Use gengtype for roots.
12236         * gigi.h: Use gengtype for roots.
12237         * trans.c: Use gengtype for roots.
12238         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
12239
12240 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
12241
12242         * misc.c (gnat_init): Adjust setting of internal_error_function.
12243
12244 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12245
12246         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
12247         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
12248         gnat_ug_wnt.texi: Regenerate.
12249
12250 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
12251
12252         * 5ntaprop.adb (with System.OS_Primitives): Remove.
12253
12254         * cstreams.c (max_path_len): Move from here ...
12255         * adaint.c (__gnat_max_path_len): ... to here.
12256         * adaint.c (__gnat_max_path_len): Declare.
12257         * g-dirope.adb (Max_Path): Adjust.
12258         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
12259         * i-cstrea.ads (max_path_len): Adjust.
12260         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
12261         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
12262
12263         * Makefile.in, Make-lang.in: Documentation is now built in
12264         Make-lang.in.  Store Info and generated Texinfo files in the
12265         source directory.
12266         * gnat_ug.texi: Remove CVS keywords, correct version number.
12267         Set file name correctly.
12268
12269         * gnat_ug_*.texi: Add.
12270         * .cvsignore: Ignore generated Texinfo files.
12271
12272 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
12273
12274         * ada.h: Add MI guard macro.
12275         (SUBTYPE): Define constants with an anonymous enum, not static
12276         const variables.
12277         (IN): Cast constants to appropriate type before use.
12278
12279 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
12280
12281         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
12282         (experimental)".
12283
12284 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12285
12286         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
12287         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
12288         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
12289         (ALL_ADA_CFLAGS): Likewise.
12290         (ADA_INCLUDES): Likewise.
12291         Adapt for new working dir.
12292         (GNATBIND): Use Makefile.in version.
12293         (.SUFFIXES): Copy from Makefile.in.
12294         (ada-warn): Define.
12295         (.adb.o, .ads.o): Copy from Makefile.in.
12296         Added $(OUTPUT_OPTION).
12297         (GNAT1_C_OBJS): Moved from Makefile.in.
12298         Prefix with ada subdir.
12299         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
12300         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
12301         Adapt for new working dir.
12302         (EXTRA_GNATBIND_OBJS): Likewise.
12303         (ADA_BACKEND): Moved from Makefile.in.
12304         Renamed to avoid conflict with global BACKEND.
12305         Use that one.
12306         (TARGET_ADA_SRCS): Moved from Makefile.in.
12307         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
12308         Use ADA_BACKEND.
12309         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
12310         (ada_extra_files): Moved from Makefile.in.
12311         Prefix with ada subdir.
12312         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
12313         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
12314         (ada/nmake.ads): Likewise.
12315         (update-sources): Moved from Makefile.in.
12316         Prefix with ada subdir.
12317         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
12318         (ADA_TREE_H): Likewise.
12319         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
12320         (ada/memtrack.o): Likewise.
12321         (ada/adadecode.o): Likewise.
12322         Update dependencies.
12323         (ada/adaint.o): New.
12324         (ada/argv.o): Moved from Makefile.in.
12325         Prefix with ada subdir.
12326         Update dependencies.
12327         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
12328         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
12329         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
12330         Prefix with ada subdir.
12331         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
12332         (GNAT DEPENDENCIES): Regenerate.
12333         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
12334         toplevel Makefile.in.
12335         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
12336         (TARGET_ADA_SRCS): Removed.
12337         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
12338         (GNATBIND_OBJS): Likewise.
12339         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
12340         (BACKEND): Removed.
12341         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
12342         (TREE_H): Likewise.
12343         (ada_extra_files): Likewise.
12344         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
12345         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
12346         (update-sources): Likewise.
12347         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
12348         (ADA_TREE_H): Likewise.
12349         (adadecoce.o): Likewise.
12350         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
12351         (GNAT DEPENDENCIES): Likewise.
12352
12353 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12354
12355         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
12356         * Makefile.in: Likewise.
12357
12358 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12359
12360         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
12361         Restore $(CONFIG_H) and prefix.o dependencies.
12362         (ada.stage[1-4]): Depend on stage?-start.
12363
12364         * Makefile.in (b_gnatb.c): Depend on interfac.o.
12365
12366 2002-05-02  Jim Wilson  <wilson@redhat.com>
12367
12368         * utils.c (finish_record_type): Change record_size to record_type.
12369
12370 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12371
12372         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
12373         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
12374         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
12375
12376 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12377
12378         * misc.c (gnat_parse_file): Update.
12379
12380 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12381
12382         * misc.c (gnat_init): Don't set lang_attribute_common.
12383
12384 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
12385
12386         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
12387
12388 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
12389
12390         * gnat_ug.texi: New file.
12391
12392         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
12393         instead of gfdl.texi
12394
12395         * xgnatug.adb, ug_words: New files.
12396
12397         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
12398         gnat_rm and gnat-style manuals.
12399
12400 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12401
12402         * gigi.h (incomplete_type_error): Remove.
12403         * utils.c (incomplete_type_error): Remove.
12404
12405 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
12406
12407         * trans.c (tree_transform): Add has_scope argument to
12408         expand_start_stmt_expr.
12409
12410 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12411
12412         * gigi.h (truthvalue_conversion): Rename.
12413         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12414         * trans.c (tree_transform): Update.
12415         * utils2.c (truthvalue_conversion): Rename, update.
12416         (build_binary_op, build_unary_op): Update.
12417
12418 2002-04-04  Laurent Guerby  <guerby@acm.org>
12419
12420         * make.adb: Implement -margs, remove restriction about file name placement.
12421         * makeusg.adb: Documentation update.
12422         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
12423         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
12424
12425 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12426
12427         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
12428         (builtin_function): Similarly.
12429
12430 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12431
12432         * decl.c (gnat_to_gnu_entity): Update.
12433         * gigi.h (mark_addressable): Rename.
12434         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12435         * trans.c (tree_transform): Update.
12436         * utils.c (create_var_decl): Update.
12437         * util2.c (build_binary_op, build_unary_op,
12438         fill_vms_descriptor): Update.
12439         (mark_addressable): Rename, update.
12440
12441 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12442
12443         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
12444         Rename.
12445         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12446         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12447         * trans.c (tree_transform, convert_with_check): Update.
12448         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
12449         Rename.
12450
12451 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12452
12453         * gigi.h (finish_incomplete_decl): Rename.
12454         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
12455         * utils.c (gnat_init_decl_processing): Don't set hook.
12456         (finish_incomplete_decl): Rename.
12457
12458 2002-03-29  Andreas Schwab  <schwab@suse.de>
12459
12460         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
12461         directory.
12462
12463 2001-03-28  Robert Dewar <dewar@gnat.com>
12464
12465         * checks.ads:
12466         (Remove_Checks): New procedure
12467
12468         * checks.adb:
12469         (Remove_Checks): New procedure
12470
12471         * exp_util.adb:
12472         Use new Duplicate_Subexpr functions
12473         (Duplicate_Subexpr_No_Checks): New procedure
12474         (Duplicate_Subexpr_No_Checks_Orig): New procedure
12475         (Duplicate_Subexpr): Restore original form (checks duplicated)
12476         (Duplicate_Subexpr): Call Remove_Checks
12477
12478         * exp_util.ads:
12479         (Duplicate_Subexpr_No_Checks): New procedure
12480         (Duplicate_Subexpr_No_Checks_Orig): New procedure
12481         Add 2002 to copyright notice
12482
12483         * sem_util.adb: Use new Duplicate_Subexpr functions
12484
12485         * sem_eval.adb:
12486         (Eval_Indexed_Component): This is the place to call
12487         Constant_Array_Ref and to replace the value. We simply merge
12488         the code of this function in here, since it is now no longer
12489         used elsewhere. This fixes the problem of the back end not
12490         realizing we were clever enough to see that this was
12491         constant.
12492         (Expr_Val): Remove call to Constant_Array_Ref
12493         (Expr_Rep_Val): Remove call to Constant_Array_Ref
12494         Minor reformatting
12495         (Constant_Array_Ref): Deal with string literals (patch
12496         suggested by Zack Weinberg on the gcc list)
12497
12498 2001-03-28  Ed Schonberg <schonber@gnat.com>
12499
12500         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
12501         Duplicate_Subexpr_Move_Checks.
12502
12503         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
12504         Duplicate_Subexpr_Move_Checks.
12505
12506         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
12507         value of array exists before retrieving it (it may a private
12508         protected component in a function).
12509
12510 2002-03-28   Geert Bosch <bosch@gnat.com>
12511
12512         * prj-pp.adb : New file.
12513
12514         * prj-pp.ads : New file.
12515
12516 2002-03-28  Andreas Jaeger  <aj@suse.de>
12517
12518         * Makefile.in (stamp-sdefault): Fix path for Makefile.
12519
12520 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12521
12522         * misc.c (gnat_expand_expr): Move prototype.
12523
12524 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12525
12526         * misc.c (insert_default_attributes): Remove.
12527
12528 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12529
12530         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12531         (gnat_init): Don't set hook.
12532         (gnat_expand_expr): Fix prototype.
12533
12534 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12535
12536         * misc.c (ggc_p): Remove.
12537
12538 2002-03-27  Geert Bosch  <bosch@gnat.com>
12539
12540         * prj-makr.ads, prj-makr.adb : New files.
12541
12542 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12543
12544         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
12545         (lang_mark_tree): Make static, rename.
12546
12547 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12548
12549         * misc.c (maybe_build_cleanup): Remove.
12550
12551 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12552
12553         * gigi.h (yyparse): Remove.
12554
12555 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
12556
12557         * gnat_rm.texi: Sync with ACT version.
12558           (From Ben Brosgol <brosgol@gnat.com>)
12559
12560 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12561
12562         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12563         (gnat_init): Remove old hook.
12564
12565 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12566
12567         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
12568         (yyparse): Rename gnat_parse_file.
12569
12570 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
12571
12572         Delete all lines containing "$Revision:".
12573         * xeinfo.adb: Don't look for revision numbers.
12574         * xnmake.adb: Likewise.
12575         * xsinfo.adb: Likewise.
12576         * xsnames.adb: Likewise.
12577         * xtreeprs.adb: Likewise.
12578
12579 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12580
12581         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
12582         gnat_tree_code_name): Delete.
12583         (tree_code_type, tree_code_length, tree_code_name): Define.
12584         (gnat_init): Don't try to copy into the various tree_code
12585         arrays.
12586
12587 2002-03-11  Richard Henderson  <rth@redhat.com>
12588
12589         * Makefile.in (.NOTPARALLEL): Add fake tag.
12590
12591 2002-03-07  Geert Bosch  <bosch@gnat.com>
12592
12593         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
12594         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
12595         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
12596         switch-m.adb, switch-m.ads : New files.
12597
12598 2002-03-07  Geert Bosch  <bosch@gnat.com>
12599
12600         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
12601         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
12602         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
12603         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
12604         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
12605         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
12606         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
12607         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
12608         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
12609         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
12610         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
12611         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
12612         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
12613         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
12614         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
12615         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
12616         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
12617         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
12618         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
12619         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
12620         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
12621         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
12622         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
12623         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
12624         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
12625         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
12626         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
12627         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
12628         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
12629         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
12630         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
12631         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
12632         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
12633         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
12634         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
12635         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
12636         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
12637         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
12638         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
12639         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
12640         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
12641         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
12642         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
12643         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
12644         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
12645         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
12646         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
12647         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
12648         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
12649         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
12650         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
12651         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
12652         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
12653         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
12654         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
12655         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
12656         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
12657         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
12658         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
12659         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
12660         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
12661         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
12662         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
12663         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
12664         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
12665         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
12666         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
12667         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
12668         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
12669         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
12670         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
12671         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
12672         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
12673         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
12674         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
12675         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
12676         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
12677         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
12678         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
12679         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
12680         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
12681         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
12682         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
12683         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
12684         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
12685         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
12686         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
12687         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
12688         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
12689         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
12690         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
12691         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
12692         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
12693         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
12694         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
12695         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
12696         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
12697
12698         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
12699         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
12700         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
12701         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
12702
12703         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
12704         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
12705
12706         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
12707         to mdll-fil.ad[bs] and mdll-util.ad[bs]
12708
12709         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
12710         from mdllfile.ad[bs] and mdlltool.ad[bs]
12711
12712 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12713
12714         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
12715         lieu of explicit sizeof/sizeof.
12716
12717 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12718
12719         * misc.c (copy_lang_decl): Remove.
12720
12721 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
12722
12723         * misc.c: Delete traditional-mode-related code copied from the
12724         C front end but not used, or used only to permit the compiler
12725         to link.
12726
12727 2002-02-07  Richard Henderson  <rth@redhat.com>
12728
12729         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
12730         * adaint.h (__gnat_to_gm_time): Update prototype.
12731
12732 2002-01-30  Richard Henderson  <rth@redhat.com>
12733
12734         * trans.c (tree_transform) [N_Loop_Statement]: Use
12735         expand_exit_loop_top_cond.
12736
12737 2001-12-23  Richard Henderson  <rth@redhat.com>
12738
12739         * utils.c (end_subprog_body): Push GC context around
12740         rest_of_compilation for nested functions.
12741
12742 2001-12-23  Richard Henderson  <rth@redhat.com>
12743
12744         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
12745
12746 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
12747
12748         * gnat-style.texi (Declarations and Types): Remove ancient style
12749         rule which was mandated by code generation issues.
12750
12751         * gnat-style.texi (header): Add @dircategory, @direntry.
12752         (title page): Remove date.
12753         (general) Add @./@: where approriate, and two spaces after the
12754         full stop at the end of a sentence.  Use @samp markup when
12755         referring concrete lexical entities (keywords, attribute names
12756         etc.), and @syntax for ARM grammar elements. Use @r for English
12757         text in comments.  Use @emph for emphasis.  Change "if-statements"
12758         etc. to "if statements" (without @samp). Break long lines.  Make
12759         casing of section names consistent.
12760         (Identifiers): Use @samp markup for variable names.
12761         (Comments): Use @samp markup for comment characters. Line-end
12762         comments may follow any Ada code, not just statements.  Fix
12763         misspelling of "Integer" as "integer".
12764         (Loop statements): Do not use variable name "I", use "J".
12765         (Subprogram Declarations): Document alignment.
12766         (Subprogram Bodies, Block statements): Document empty line before
12767         "begin".
12768
12769 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
12770
12771         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
12772         function approach did not work well because of a side effect (the
12773         function call could reallocate the table which was being indexed
12774         using its result). Fixes ada/4851.
12775
12776 2001-12-19  Robert Dewar <dewar@gnat.com>
12777
12778         * bindgen.adb: Minor reformatting
12779
12780         * cstand.adb: Minor reformatting
12781
12782         * fmap.adb: Minor reformatting
12783         Change name from Add for Add_To_File_Map (Add is much too generic)
12784         Change Path_Name_Of to Mapped_Path_Name
12785         Change File_Name_Of to Mapped_File_Name
12786         Fix copyright dates in header
12787
12788         * fmap.ads:
12789         Change name from Add for Add_To_File_Map (Add is much too generic)
12790         Change Path_Name_Of to Mapped_Path_Name
12791         Change File_Name_Of to Mapped_File_Name
12792         Fix copyright dates in header
12793
12794         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
12795         Add use clause for Fmap.
12796
12797         * make.adb: Minor reformatting
12798
12799         * osint.adb: Minor reformatting.  Change of names in Fmap.
12800         Add use clause for Fmap.
12801
12802         * prj-env.adb: Minor reformatting
12803
12804         * prj-env.ads: Minor reformatting
12805
12806         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
12807         error found (there were odd exceptions to this general rule in
12808         -gnatec/-gnatem processing)
12809
12810 2001-12-19  Olivier Hainque <hainque@gnat.com>
12811
12812         * raise.c (__gnat_eh_personality): Exception handling personality
12813         routine for Ada.  Still in rough state, inspired from the C++ version
12814         and still containing a bunch of debugging artifacts.
12815         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
12816         inspired from the C++ library.
12817
12818         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
12819         exception handling integration.
12820
12821 2001-12-19  Arnaud Charlet <charlet@gnat.com>
12822
12823         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
12824         (HIE_SOURCES): Add s-secsta.ad{s,b}.
12825         (HIE_OBJS): Add s-fat*.o
12826         (RAVEN_SOURCES): Remove files that are no longer required. Add
12827         interrupt handling files.
12828         (RAVEN_MOD): Removed, no longer needed.
12829
12830 2001-12-19  Robert Dewar <dewar@gnat.com>
12831
12832         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
12833         Add 2001 to copyright date
12834
12835         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
12836         need to force universal inlining for these cases.
12837
12838 2001-12-19  Arnaud Charlet <charlet@gnat.com>
12839
12840         * s-taprob.adb: Minor clean ups so that this unit can be used in
12841         Ravenscar HI.
12842
12843         * exp_ch7.adb: Allow use of secondary stack in HI mode.
12844         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
12845
12846 2001-12-19  Vincent Celier <celier@gnat.com>
12847
12848         * prj-tree.ads (Project_Node_Record): Add comments for components
12849         Pkg_Id and Case_Insensitive.
12850
12851 2001-12-19  Pascal Obry <obry@gnat.com>
12852
12853         * g-socket.adb: Minor reformatting. Found while reading code.
12854
12855 2001-12-19  Robert Dewar <dewar@gnat.com>
12856
12857         * prj-tree.ads: Minor reformatting
12858
12859 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12860
12861         * config-lang.in (diff_excludes): Remove.
12862
12863 2001-12-17  Ed Schonberg <schonber@gnat.com>
12864
12865         * sem_res.adb (Resolve_Selected_Component): do not generate a
12866         discriminant check if the selected component is a component of
12867         the argument of an initialization procedure.
12868
12869         * trans.c (tree_transform, case of arithmetic operators): If result
12870         type is private, the gnu_type is the base type of the full view,
12871         given that the full view itself may be a subtype.
12872
12873 2001-12-17  Robert Dewar <dewar@gnat.com>
12874
12875         * sem_res.adb: Minor reformatting
12876
12877         * trans.c (tree_transform, case N_Real_Literal): Add missing third
12878         parameter in call to Machine (unknown horrible effects from this
12879         omission).
12880
12881         * urealp.h: Add definition of Round_Even for call to Machine
12882         Add third parameter for Machine
12883
12884 2001-12-17  Ed Schonberg <schonber@gnat.com>
12885
12886         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
12887         predefined units in No_Run_Time mode.
12888
12889 2001-12-17  Richard Kenner <kenner@gnat.com>
12890
12891         * misc.c (insn-codes.h): Now include.
12892
12893 2001-12-17  Olivier Hainque <hainque@gnat.com>
12894
12895         * a-except.adb: Preparation work for future integration of the GCC 3
12896         exception handling mechanism
12897         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
12898         to factorize previous code sequences and make them externally callable,
12899         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
12900         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
12901         Use the new notification routines.
12902
12903 2001-12-17  Emmanuel Briot <briot@gnat.com>
12904
12905         * prj-tree.ads (First_Choice_Of): Document the when others case
12906
12907 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12908
12909         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
12910         HI-E mode, in order to support Ravenscar profile properly.
12911
12912         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
12913         mode on 32 bits targets.
12914
12915 2001-12-17  Vincent Celier <celier@gnat.com>
12916
12917         * fmap.adb: Initial version.
12918
12919         * fmap.ads: Initial version.
12920
12921         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
12922         If search is successfully done, add to mapping.
12923
12924         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
12925
12926         * make.adb:
12927         (Gnatmake): Add new local variable Mapping_File_Name.
12928          Create mapping file when using project file(s).
12929          Delete mapping file before exiting.
12930
12931         * opt.ads (Mapping_File_Name): New variable
12932
12933         * osint.adb (Find_File): Use path name found in mapping, if any.
12934
12935         * prj-env.adb (Create_Mapping_File): New procedure
12936
12937         * prj-env.ads (Create_Mapping_File): New procedure.
12938
12939         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
12940         (Mapping_File)
12941
12942         * usage.adb: Add entry for new switch -gnatem.
12943
12944         * Makefile.in: Add dependencies for fmap.o.
12945
12946 2001-12-17  Ed Schonberg <schonber@gnat.com>
12947
12948         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
12949         is a package instantiation rewritten as a package body.
12950         (Install_Withed_Unit): Undo previous change, now redundant.
12951
12952 2001-12-17  Gary Dismukes <dismukes@gnat.com>
12953
12954         * layout.adb:
12955         (Compute_Length): Move conversion to Unsigned to callers.
12956         (Get_Max_Size): Convert Len expression to Unsigned after calls to
12957         Compute_Length and Determine_Range.
12958         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
12959         Compute_Length and Determine_Range.
12960         Above changes fix problem with length computation for supernull arrays
12961         where Max (Len, 0) wasn't getting applied due to the Unsigned
12962         conversion used by Compute_Length.
12963
12964 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12965
12966         * rtsfind.ads:
12967         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
12968          System.Secondary_Stack.
12969         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
12970          in HI-E mode.
12971         Remove unused entity RE_Exception_Data.
12972
12973         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
12974
12975         * rident.ads (No_Secondary_Stack): New restriction.
12976
12977 2001-12-17  Joel Brobecker <brobecke@gnat.com>
12978
12979         * gnat_rm.texi: Fix minor typos. Found while reading the section
12980         regarding "Bit_Order Clauses" that was sent to a customer.
12981         Very interesting documentation!
12982
12983 2001-12-17  Robert Dewar <dewar@gnat.com>
12984
12985         * sem_case.adb (Choice_Image): Avoid creating improper character
12986         literal names by using the routine Set_Character_Literal_Name. This
12987         fixes bombs in certain error message cases.
12988
12989 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12990
12991         * a-reatim.adb: Minor reformatting.
12992
12993 2001-12-17  Ed Schonberg <schonber@gnat.com>
12994
12995         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
12996         case where the formal is an extension of another formal in the current
12997         unit or in a parent generic unit.
12998
12999 2001-12-17  Arnaud Charlet <charlet@gnat.com>
13000
13001         * s-tposen.adb: Update comments.  Minor reformatting.
13002         Minor code clean up.
13003
13004         * s-tarest.adb: Update comments.  Minor code reorganization.
13005
13006 2001-12-17  Gary Dismukes <dismukes@gnat.com>
13007
13008         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
13009         when Java_VM.
13010
13011 2001-12-17  Robert Dewar <dewar@gnat.com>
13012
13013         * exp_attr.adb: Minor reformatting
13014
13015 2001-12-17  Ed Schonberg <schonber@gnat.com>
13016
13017         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
13018         derivations nested within a child unit: verify that the parent
13019         type is declared in an outer scope.
13020
13021 2001-12-17  Robert Dewar <dewar@gnat.com>
13022
13023         * sem_ch12.adb: Minor reformatting
13024
13025 2001-12-17  Ed Schonberg <schonber@gnat.com>
13026
13027         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
13028         warning if current unit is a predefined one, from which bodies may
13029         have been deleted.
13030
13031 2001-12-17  Robert Dewar <dewar@gnat.com>
13032
13033         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
13034         Fix header format. Add 2001 to copyright date.
13035
13036         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
13037         which caused CE during compilation if checks were enabled.
13038
13039 2001-12-17  Vincent Celier <celier@gnat.com>
13040
13041         * make.adb:
13042         (Switches_Of): New function
13043         (Test_If_Relative_Path): New procedure
13044         (Add_Switches): Use new function Switches_Of
13045         (Collect_Arguments_And_Compile): Use new function Switches_Of.
13046         When using a project file, test if there are any relative
13047         search path. Fail if there are any.
13048         (Gnatmake): Only add switches for the primary directory when not using
13049         a project file. When using a project file, change directory to the
13050         object directory of the main project file. When using a project file,
13051         test if there are any relative search path. Fail if there are any.
13052         When using a project file, fail if specified executable is relative
13053         path with directory information, and prepend executable, if not
13054         specified as an absolute path, with the exec directory.  Make sure
13055         that only one -o switch is transmitted to the linker.
13056
13057         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
13058
13059         * prj-nmsc.adb:
13060         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
13061         when using a non standard naming scheme.
13062         (Check_Ada_Naming_Scheme): Make sure that error messages
13063         do not raise exceptions.
13064         (Is_Illegal_Append): Return True if there is no dot in the suffix.
13065         (Language_Independent_Check): Check the exec directory.
13066
13067         * prj.adb (Project_Empty): Add new component Exec_Directory
13068
13069         * prj.ads:
13070         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
13071         (Project_Data): Add component Exec_Directory
13072
13073         * snames.adb: Updated to match snames.ads revision 1.215
13074
13075         * snames.ads: Added Exec_Dir
13076
13077 2001-12-17  Robert Dewar <dewar@gnat.com>
13078
13079         * make.adb: Minor reformatting
13080
13081         * prj-nmsc.adb: Minor reformatting
13082
13083         * snames.adb: Updated to match snames.ads
13084
13085         * snames.ads: Alphebetize entries for project file
13086
13087 2001-12-17  Ed Schonberg <schonber@gnat.com>
13088
13089         * trans.c (process_freeze_entity): Do nothing if the entity is a
13090         subprogram that was already elaborated.
13091
13092 2001-12-17  Richard Kenner <kenner@gnat.com>
13093
13094         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
13095         and Esize if object is referenced via pointer.
13096
13097 2001-12-17  Ed Schonberg <schonber@gnat.com>
13098
13099         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
13100         is discrete before analyzing choices.
13101
13102 2001-12-17  Joel Brobecker <brobecke@gnat.com>
13103
13104         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
13105         containing the name of the Ada Main Program. This string is mainly
13106         intended for the debugger.
13107         (Gen_Output_File_C): Do the equivalent change when generating a C file.
13108
13109 2001-12-17  Robert Dewar <dewar@gnat.com>
13110
13111         * ali.adb: Set new Dummy_Entry field in dependency entry
13112
13113         * ali.ads: Add Dummy_Entry field to source dependency table
13114
13115         * bcheck.adb (Check_Consistency): Ignore dummy D lines
13116
13117         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
13118
13119         * lib-writ.ads: Document dummy D lines for missing files.
13120
13121         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
13122
13123 2001-12-17  Robert Dewar <dewar@gnat.com>
13124
13125         * ali.adb: Type reference does not reset current file.
13126
13127         * ali.adb: Recognize and scan renaming reference
13128
13129         * ali.ads: Add spec for storing renaming references.
13130
13131         * lib-xref.ads: Add documentation for handling of renaming references
13132
13133         * lib-xref.adb: Implement output of renaming reference.
13134
13135         * checks.adb:
13136         (Determine_Range): Document local variables
13137         (Determine_Range): Make sure Hbound is initialized. It looks as though
13138          there could be a real problem here with an uninitialized reference
13139          to Hbound, but no actual example of failure has been found.
13140
13141 2001-12-17  Laurent Pautet <pautet@gnat.com>
13142
13143         * g-socket.ads:
13144         Fix comment of Shutdown_Socket and Close_Socket. These functions
13145         should not fail silently because if they are called twice, this
13146         probably means that there is a race condition in the user program.
13147         Anyway, this behaviour is consistent with the rest of this unit.
13148         When an error occurs, an exception is raised with the error message
13149         as exception message.
13150
13151 2001-12-17  Robert Dewar <dewar@gnat.com>
13152
13153         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
13154         that it happens before modification of Sloc values for -gnatD.
13155
13156         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
13157         so that it happens before modification of Sloc values for -gnatD.
13158
13159         * switch.adb: Minor reformatting
13160
13161 2001-12-15  Richard Henderson  <rth@redhat.com>
13162
13163         * sem_ch7.adb: Wrap comment.
13164
13165 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
13166
13167         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
13168         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
13169         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
13170         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
13171         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
13172         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
13173         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
13174         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
13175         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
13176         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
13177         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
13178         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
13179         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
13180         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
13181         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
13182         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
13183         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
13184         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
13185         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
13186         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
13187         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
13188         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
13189         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
13190         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
13191         spelling errors.
13192
13193 2001-12-14  Vincent Celier <celier@gnat.com>
13194
13195         * osint.adb(Create_Debug_File): When an object file is specified,
13196         put the .dg file in the same directory as the object file.
13197
13198 2001-12-14  Robert Dewar <dewar@gnat.com>
13199
13200         * osint.adb: Minor reformatting
13201
13202         * lib-xref.adb (Output_Instantiation): New procedure to generate
13203         instantiation references.
13204
13205         * lib-xref.ads: Add documentation of handling of generic references.
13206
13207         * ali.adb (Read_Instantiation_Ref): New procedure to read
13208         instantiation references
13209
13210         * ali.ads: Add spec for storing instantiation references
13211
13212         * bindusg.adb: Minor reformatting
13213
13214         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13215
13216         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13217
13218         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13219
13220         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13221
13222         * csets.ads:
13223         Fix header format
13224         Add 2001 to copyright date
13225         Add entry for Latin-5 (Cyrillic ISO-8859-5)
13226
13227 2001-12-14  Matt Gingell <gingell@gnat.com>
13228
13229         * adaint.c: mktemp is a macro on Lynx and can not be used as an
13230         expression.
13231
13232 2001-12-14  Richard Kenner <kenner@gnat.com>
13233
13234         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
13235         if operand is CONSTRUCTOR.
13236
13237 2001-12-14  Ed Schonberg <schonber@gnat.com>
13238
13239         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
13240         before emiting check on right-hand side, so that exception information
13241         is correct.
13242
13243 2001-12-14  Richard Kenner <kenner@gnat.com>
13244
13245         * utils.c (create_var_decl): Throw away initializing expression
13246         if just annotating types and non-constant.
13247
13248 2001-12-14  Vincent Celier <celier@gnat.com>
13249
13250         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
13251         Default_Ada_...
13252
13253         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13254         Remove functions.
13255         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
13256
13257         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13258         Remove functions.
13259         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
13260
13261 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
13262
13263         * ChangeLog: Remove piece of diff output.
13264
13265 2001-12-14  Geert Bosch <bosch@gnat.com>
13266
13267         * config-lang.in: Update copyright notice
13268
13269         * layout.adb: Remove commented out code.
13270
13271         * mdllfile.ads: Update copyright notice. Fix header format.
13272
13273         * sem_case.ads: Likewise.
13274
13275         * sem_ch3.adb: Minor reformatting.
13276
13277 2001-12-12  Geert Bosch <bosch@gnat.com>
13278
13279         * freeze.ads: Update copyright date.
13280
13281         * g-comlin.ads: Minor reformatting.
13282
13283         * gnat-style.texi: Fix typo.
13284
13285 2001-12-12  Geert Bosch <bosch@gnat.com>
13286
13287         *  einfo.h: Regenerate.
13288
13289 2001-12-12  Ed Schonberg <schonber@gnat.com>
13290
13291         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
13292         on known node types, rather than untyped fields. Further cleanups.
13293
13294 2001-12-12  Robert Dewar <dewar@gnat.com>
13295
13296         * sem_ch12.adb:
13297         (Save_Entity_Descendant): Minor comment update.
13298         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
13299          of an N_Attribute_Reference node. As per note below, this does not
13300         eliminate need for Associated_Node in attribute ref nodes.
13301         (Associated_Node): Documentation explicitly mentions attribute
13302         reference nodes, since this field is used in such nodes.
13303
13304         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
13305
13306 2001-12-12  Robert Dewar <dewar@gnat.com>
13307
13308         * s-stalib.adb: Add more comments on with statements being needed
13309
13310         * par-ch12.adb: Minor reformatting
13311
13312         * prj-dect.ads: Fix copyright header
13313
13314         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
13315         inputs fit in 32 bits, but the result still overflows.
13316
13317         * s-fatgen.ads: Minor comment improvement
13318
13319 2001-12-12  Ed Schonberg <schonber@gnat.com>
13320
13321         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
13322         formal derived type, look for an inherited component from the full
13323         view of the parent, if any.
13324
13325 2001-12-12  Robert Dewar <dewar@gnat.com>
13326
13327         * checks.ads (Apply_Alignment_Check): New procedure.
13328
13329         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
13330         ensure that the alignment of objects with address clauses is
13331         appropriate, and raise PE if not.
13332
13333         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
13334         Exp_Pakd.Known_Aligned_Enough
13335
13336         * mdllfile.ads: Minor reformatting
13337
13338         * mlib-fil.ads: Minor reformatting
13339
13340 2001-12-12  Ed Schonberg <schonber@gnat.com>
13341
13342         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
13343         fix to any component reference if enclosing record has non-standard
13344         representation.
13345
13346 2001-12-12  Vincent Celier <celier@gnat.com>
13347
13348         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
13349         Iteration
13350
13351 2001-12-12  Ed Schonberg <schonber@gnat.com>
13352
13353         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
13354         sem_attr.
13355
13356 2001-12-12  Robert Dewar <dewar@gnat.com>
13357
13358         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
13359
13360 2001-12-12  Emmanuel Briot <briot@gnat.com>
13361
13362         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
13363         and it adds dependencies to system.io.
13364
13365 2001-12-12  Pascal Obry <obry@gnat.com>
13366
13367         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
13368         variable name.
13369
13370 2001-12-11  Ed Schonberg <schonber@gnat.com>
13371
13372         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
13373         that is the parent of other generics, the instance body replaces the
13374         instance node.  Retrieve the instance of the spec, which is the one
13375         that is visible in clients and within the body.
13376
13377 2001-12-11  Vincent Celier <celier@gnat.com>
13378
13379         * gnatmain.adb: Initial version.
13380
13381         * gnatmain.ads: Initial version.
13382
13383         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
13384
13385         * snames.adb: Updated to match snames.ads.
13386
13387         * snames.ads: Added Gnatstub.
13388
13389 2001-12-11  Vincent Celier <celier@gnat.com>
13390
13391         * prj-attr.adb (Initialization_Data): Change name from
13392         Initialisation_Data.
13393
13394 2001-12-11  Emmanuel Briot <briot@gnat.com>
13395
13396         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
13397         + and * applied to backslashed expressions like \r.
13398
13399 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
13400
13401         * g-os_lib.ads: String_List type added, Argument_List type is now
13402         subtype of String_List.
13403
13404 2001-12-11  Robert Dewar <dewar@gnat.com>
13405
13406         * g-os_lib.ads: Change copyright to FSF
13407         Add comments for String_List type
13408
13409 2001-12-11  Vincent Celier <celier@gnat.com>
13410
13411         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
13412         string to the buffer).
13413
13414 2001-12-11  Ed Schonberg <schonber@gnat.com>
13415
13416         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
13417         sem_attr.
13418
13419         * sem_attr.adb: Simplify previous fix for Address.
13420         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
13421         to avoid anomalies where the bound of the type appears to raise
13422         constraint error.
13423
13424 2001-12-11  Robert Dewar <dewar@gnat.com>
13425
13426         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
13427         handled.
13428
13429 2001-12-11  Ed Schonberg <schonber@gnat.com>
13430
13431         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
13432         renamed unit before checking for recursive instantiations.
13433
13434 2001-12-11  Emmanuel Briot <briot@gnat.com>
13435
13436         * prj.ads: Add comments for some of the fields.
13437
13438 2001-12-11  Robert Dewar <dewar@gnat.com>
13439
13440         * lib-xref.adb (Output_Refs): Don't output type references outside
13441         the main unit if they are not otherwise referenced.
13442
13443 2001-12-11  Ed Schonberg <schonber@gnat.com>
13444
13445         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
13446         code and diagnose additional illegal uses
13447
13448         * sem_util.adb (Is_Object_Reference): An indexed component is an
13449         object only if the prefix is.
13450
13451 2001-12-11  Vincent Celier <celier@gnat.com>
13452
13453         * g-diopit.adb: Initial version.
13454
13455         * g-diopit.ads: Initial version.
13456
13457         * g-dirope.adb:
13458         (Expand_Path): Avoid use of Unbounded_String
13459         (Find, Wildcard_Iterator): Moved to child package Iteration
13460
13461         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
13462
13463 2001-12-11  Robert Dewar <dewar@gnat.com>
13464
13465         * sem_attr.adb: Minor reformatting
13466
13467 2001-12-11  Ed Schonberg <schonber@gnat.com>
13468
13469         * sem_ch3.adb: Clarify some ???.
13470
13471 2001-12-11  Robert Dewar <dewar@gnat.com>
13472
13473         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
13474         Exp_Pakd.Known_Aligned_Enough
13475
13476         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
13477         version is moved to Exp_Ch13.
13478
13479 2001-12-11  Robert Dewar <dewar@gnat.com>
13480
13481         * einfo.ads: Minor reformatting
13482
13483         * exp_ch5.adb: Add comment for previous.change
13484
13485         * ali.adb: New interface for extended typeref stuff.
13486
13487         * ali.ads: New interface for typeref stuff.
13488
13489         * checks.adb (Apply_Alignment_Check): New procedure.
13490
13491         * debug.adb: Add -gnatdM for modified ALI output
13492
13493         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
13494
13495         * lib-xref.adb: Extend generation of <..> notation to cover
13496         subtype/object types. Note that this is a complete rewrite,
13497         getting rid of the very nasty quadratic algorithm previously
13498         used for derived type output.
13499
13500         * lib-xref.ads: Extend description of <..> notation to cover
13501         subtype/object types. Uses {..} for these other cases.
13502         Also use (..) for pointer types.
13503
13504         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
13505
13506         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
13507         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
13508
13509 2001-12-11  Vincent Celier <celier@gnat.com>
13510
13511         * gnatcmd.adb:
13512         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
13513         Changed /BIND_ONLY to /ACTIONS=BIND
13514         Changed /LINK_ONLY to /ACTIONS=LINK
13515
13516 2001-12-11  Ed Schonberg  <schonber@gnat.com>
13517
13518         * sem_ch8.adb (Find_Selected_Component): improved search for a
13519         candidate package in case of error.
13520
13521         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
13522         chain back on scope stack before reinstalling use clauses.
13523
13524         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
13525         is enabled, do not kill the code for the condition, to preserve
13526         warning.
13527
13528 2001-12-11  Robert Dewar <dewar@gnat.com>
13529
13530         * checks.adb (Insert_Valid_Check): Apply validity check to expression
13531         of conversion, not to result of conversion.
13532
13533 2001-12-11  Ed Schonberg <schonber@gnat.com>
13534
13535         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
13536         before freezing parent. If the declarations are mutually recursive,
13537         an access to the current record type may be frozen before the
13538         derivation is complete.
13539
13540 2001-12-05  Vincent Celier <celier@gnat.com>
13541
13542         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
13543         -c /COMPILE_ONLY, -l /LINK_ONLY
13544
13545         * opt.ads:
13546         (Bind_Only): New Flag
13547         (Link_Only): New flag
13548
13549         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
13550         and -l (Link_Only)
13551
13552         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
13553
13554         * make.adb:
13555         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
13556         (Gnatmake): Set the step flags. Only perform a step if the
13557         corresponding step flag is True.
13558         (Scan_Make_Arg): Reset the bind and link step flags when -u
13559         or -gnatc has been specified.
13560
13561 2001-12-05  Ed Schonberg <schonber@gnat.com>
13562
13563         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
13564         get bounds from right operand.
13565
13566         * sem_eval.adb: Minor reformatting
13567
13568         * exp_util.adb (Make_Literal_Range): use bound of literal rather
13569         than Index'First, its lower bound may be different from 1.
13570
13571         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
13572         and C48009J
13573
13574 2001-12-05  Vincent Celier <celier@gnat.com>
13575
13576         * prj-nmsc.adb Minor reformatting
13577
13578         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
13579         set and libraries are not supported.
13580
13581 2001-12-05  Ed Schonberg <schonber@gnat.com>
13582
13583         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
13584         private view explicitly, so the back-end can treat as a global
13585         when appropriate.
13586
13587 2001-12-05  Ed Schonberg <schonber@gnat.com>
13588
13589         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
13590          unit, always replace instance node with new body, for ASIS use.
13591
13592 2001-12-05  Vincent Celier <celier@gnat.com>
13593
13594         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
13595         libraries are not supported and both attributes Library_Name and
13596         Library_Dir are specified.
13597
13598         * prj-proc.adb (Expression): Set location of Result to location of
13599         first term.
13600
13601         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
13602         (prj-nmsc is now importing MLib.Tgt)
13603
13604         * prj-proc.adb: Put the change indicated above that was forgotten.
13605
13606 2001-12-05  Robert Dewar <dewar@gnat.com>
13607
13608         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
13609
13610 2001-12-05  Ed Schonberg <schonber@gnat.com>
13611
13612         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
13613         constraint, introduce explicit subtype declaration and derive from it.
13614
13615         * sem_ch3.adb: Minor reformatting
13616
13617 2001-12-05  Robert Dewar <dewar@gnat.com>
13618
13619         * checks.adb (Determine_Range): Increase cache size for checks.
13620         Minor reformatting
13621
13622         * exp_ch6.adb: Minor reformatting
13623         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
13624         a parameter whose root type is System.Address, since treating such
13625         subprograms as pure in the code generator is almost surely a mistake
13626         that will lead to unexpected results.
13627
13628         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
13629         change handling of conversions.
13630
13631         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
13632
13633 2001-12-05  Ed Schonberg <schonber@gnat.com>
13634
13635         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
13636         aggregate with static wrong size, attach generated Raise node to
13637         declaration.
13638
13639 2001-12-05  Robert Dewar <dewar@gnat.com>
13640
13641         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
13642         Fixes compilation abandoned bomb in B24009B.
13643
13644 2001-12-05  Ed Schonberg <schonber@gnat.com>
13645
13646         * sem_ch12.adb:
13647         Document use of Associated_Node on Selected_Components.
13648         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
13649         to clarify use of untyped descendant fields.
13650
13651 2001-12-05  Robert Dewar <dewar@gnat.com>
13652
13653         * prj-dect.ads: Add ??? comment
13654         Add 2001 to copyright notice (was not done in after all)
13655
13656         * prj-part.adb: Minor reformatting. Reword one awkward error message.
13657
13658         * prj.ads: Minor reformatting throughout, and add some ??? comments
13659
13660         * snames.ads: Minor reformatting
13661
13662 2001-12-05  Geert Bosch <bosch@gnat.com>
13663
13664         * snames.adb: Autoupdate
13665
13666 2001-12-05  Vincent Celier <celier@gnat.com>
13667
13668         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
13669
13670         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
13671
13672         * prj-env.adb: Minor comment changes (modifying -> extends).
13673
13674         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
13675
13676         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
13677         Tok_Extends.
13678
13679         * prj.adb (Initialize): Change Modifying to Extends.
13680
13681         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
13682
13683         * prj.ads: Minor comment change (Modifying -> extending).
13684
13685         * snames.ads: Change modifying to extends.
13686
13687 2001-12-05  Robert Dewar <dewar@gnat.com>
13688
13689         * sem_warn.adb: Remove stuff for conditionals, we are not going to
13690         do this after all.
13691
13692         * sem_warn.ads: Remove stuff for conditionals, we are not going to
13693         do this after all.  Add 2001 to copyright notice
13694
13695 2001-12-04  Geert Bosch <bosch@gnat.com>
13696
13697         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
13698
13699 2001-12-04  Robert Dewar <dewar@gnat.com>
13700
13701         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
13702         location if we already have errors. Stops some cases of cascaded
13703         errors.
13704
13705         * errout.adb: Improve comment.
13706
13707 2001-12-04  Robert Dewar <dewar@gnat.com>
13708
13709         * sem_ch12.adb:
13710         (Analyze_Formal_Type_Definition): Defend against Error.
13711         (Analyze_Formal_Subprogram): Defend against Error.
13712
13713         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
13714         remove following semicolon if present. Removes cascaded error.
13715
13716 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
13717
13718         * bindgen.adb:
13719         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
13720          exceptions equals 0.
13721         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
13722         Fixes PIWG E tests (which have to be run with -gnatL).
13723
13724 2001-12-04  Robert Dewar <dewar@gnat.com>
13725
13726         * einfo.ads: Minor reformatting
13727
13728 2001-12-04  Ed Schonberg <schonber@gnat.com>
13729
13730         * einfo.ads: Block_Node points to the identifier of the block, not to
13731         the block node itself, to preserve the link when the block is
13732         rewritten, e.g. within an if-statement with a static condition.
13733
13734         * inline.adb (Cleanup_Scopes): recover block statement from block
13735         entity using new meaning of Block_Node.
13736
13737         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
13738         identifier of block node, rather than to node itself.
13739
13740 2001-12-04  Gary Dismukes <dismukes@gnat.com>
13741
13742         * layout.adb:
13743         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
13744         (Discrimify): Go back to setting the Etypes of the selected component
13745         because the Vname component does not exist at this point and will
13746         fail name resolution. Also set Analyzed.
13747         Remove with and use of Sem_Res.
13748
13749 2001-12-04  Arnaud Charlet <charlet@gnat.com>
13750
13751         * Makefile.in: (HIE_SOURCES): add s-fat*.
13752
13753 2001-12-04  Robert Dewar <dewar@gnat.com>
13754
13755         * sem_attr.adb:
13756         (Compile_Time_Known_Attribute): New procedure.
13757         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
13758          proper range check.
13759
13760 2001-12-04  Ed Schonberg <schonber@gnat.com>
13761
13762         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
13763         processing discriminants to diagnose illegal default values.
13764
13765 2001-12-04  Ed Schonberg <schonber@gnat.com>
13766
13767         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
13768         access discriminant within a type extension that constrains its
13769         parent discriminants.
13770
13771 2001-12-04  Ed Schonberg <schonber@gnat.com>
13772
13773         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
13774         is malformed, use instance of Any_Id to allow analysis to proceed.
13775
13776         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
13777         type definition is illegal.
13778         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
13779         misplaced.
13780
13781 2001-12-04  Ed Schonberg <schonber@gnat.com>
13782
13783         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
13784         constants.
13785
13786 2001-12-04  Robert Dewar <dewar@gnat.com>
13787
13788         * errout.adb: Minor reformatting
13789
13790 2001-12-04  Robert Dewar <dewar@gnat.com>
13791
13792         * exp_util.adb: Minor reformatting from last change
13793
13794         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
13795         which is a rewriting of an expression, traverse the original
13796         expression to remove warnings that may have been posted on it.
13797
13798 2001-12-04  Ed Schonberg <schonber@gnat.com>
13799
13800         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
13801         record that has other packed components.
13802
13803 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
13804
13805         * adaint.c: Minor cleanups.
13806
13807 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
13808
13809         * adaint.c: Do not use utime.h on vxworks.
13810
13811 2001-12-04  Arnaud Charlet <charlet@gnat.com>
13812
13813         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
13814         more confusion than it solves.
13815
13816 2001-12-04  Geert bosch <bosch@gnat.com>
13817
13818         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
13819
13820 2001-12-04  Geert Bosch  <bosch@gnat.com>
13821
13822         * Makefile.in (update-sources): New target.
13823         For use by gcc_release script.
13824
13825 2001-12-04  Ed Schonberg <schonber@gnat.com>
13826
13827         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
13828         a configuration pragma, it is now legal wherever a pragma can appear.
13829
13830 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
13831
13832         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
13833         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
13834         is now @CROSS@ -DIN_GCC; update comment.
13835
13836 2001-12-04  Robert Dewar <dewar@gnat.com>
13837
13838         * einfo.adb (Has_Pragma_Pure_Function): New flag.
13839         Fix problem that stopped ceinfo from working
13840
13841         * einfo.ads (Has_Pragma_Pure_Function): New flag.
13842
13843         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
13844
13845 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
13846
13847         * gnatchop.adb:
13848         (File_Time_Stamp): New procedure.
13849         (Preserve_Mode): New boolean.
13850         (Write_Unit): Pass time stamp.
13851         Implement -p switch (preserve time stamps).
13852
13853         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
13854
13855         * gnatchop.adb: Do usage info for -p switch
13856
13857         * adaint.h (__gnat_set_file_time_name): New function
13858
13859         * adaint.c (__gnat_set_file_time_name): Implement
13860
13861         * adaint.h: Fix typo
13862
13863 2001-12-03  Robert Dewar <dewar@gnat.com>
13864
13865         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
13866         have Associated_Node.
13867
13868 2001-12-03  Robert Dewar <dewar@gnat.com>
13869
13870         * prj-proc.adb: Minor reformatting
13871
13872         * make.adb: Minor reformatting
13873
13874 2001-12-03  Geert Bosch <bosch@gnat.com>
13875
13876         * make.adb: Minor reformatting.
13877
13878 2001-12-03 Robert Dewar  <dewar@gnat.com>
13879
13880         * sem_ch12.adb: Minor reformatting
13881
13882 2001-12-03  Ed Schonberg <schonber@gnat.com>
13883
13884         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
13885         push Standard on the stack before analyzing the instance body,
13886         in order to have a clean visibility environment.
13887
13888         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
13889
13890 2001-12-03  Ed Schonberg <schonber@gnat.com>
13891
13892         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13893         instantiation of a body that contains an inlined body.
13894
13895 2001-12-03  Ed Schonberg <schonber@gnat.com>
13896
13897         * sem_ch12.adb:
13898         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
13899         to prevent freezing within formal packages.
13900         (Freeze_Subprogram_Body): If body comes from another instance that
13901         appeared before its own body, place freeze node at end of current
13902         declarative part, to prevent a back-end crash.
13903         (Inline_Instance_Body): Handle properly a package instance within
13904         a subprogram instance that is a child unit.
13905
13906 2001-12-01  Graham Stott  <grahams@redhat.com>
13907
13908         * Makefile.in (misc.o): Add missing $(srcdir) prefix
13909         and add optabs.h dependency.
13910
13911         * misc.c: Include optabs.h
13912         (gnat_tree_code_type): Make static and const.
13913         (gnat_tree_code_length): Likewise.
13914         (gnat_tree_code_name): Likewise.
13915         (update_setjmp_buf): Obtain operands mode from insn_data.
13916
13917 2001-11-29  Richard Henderson  <rth@redhat.com>
13918
13919         * init.c: Remove obsolete dwarf2 frame.h section.
13920
13921 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
13922
13923         * Make-lang.in (ada.generated-manpages): New dummy target.
13924
13925 2001-11-29  Ed Schonberg <schonber@gnat.com>
13926
13927         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
13928         into Command, an array conversion is illegal here. Uncovered by
13929         ACATS B460005.
13930
13931 2001/11/28  Geert Bosch <bosch@gnat.com>
13932
13933         * init.c: Minor whitespace changes.
13934
13935 2001-11-28  Doug Rupp <rupp@gnat.com>
13936
13937         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
13938         signal stack.
13939
13940 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
13941
13942         * misc.c (gnat_expand_constant): Move declaration above
13943         definition of lang_hooks.
13944         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
13945         (gnat_init): lang_expand_constant no longer exists.
13946
13947         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
13948         always have vprintf.
13949         (gnat_init): Always call set_internal_error_function.
13950
13951 2001-11-27  Andreas Jaeger  <aj@suse.de>
13952
13953         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
13954
13955 2001-11-27  Laurent Guerby  <guerby@acm.org>
13956
13957         * Makefile.in: Regenerate Ada dependencies.
13958
13959 2001-11-26  Richard Henderson  <rth@redhat.com>
13960
13961         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
13962         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
13963         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
13964
13965 2001-11-25  Laurent Guerby  <guerby@acm.org>
13966
13967         * sysdep.c (rts_get_*): Fix style.
13968
13969 2001-11-19  Laurent Guerby  <guerby@acm.org>
13970
13971         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
13972         since it is of no apparent use and cause warnings.
13973
13974 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
13975
13976         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
13977         static too.
13978         (gnat_init): Don't return NULL.
13979         (finish_parse): Remove.
13980
13981 2001-11-17  Laurent Guerby  <guerby@acm.org>
13982
13983         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
13984         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
13985         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
13986         * lang-spec.h: Add missing struct field to silence warnings.
13987         * sysdep.c (rts_get_*): Provide K&R prototype.
13988         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
13989         * traceback.c (Unlock_Task, Lock_Task): Likewise.
13990         * tracebak.c (__gnat_backtrace): Remove unused variable.
13991         * utils.c (end_subprog_body): Move to K&R style.
13992
13993 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13994
13995         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
13996
13997 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
13998
13999         * misc.c (gnat_init): Change prototype.  Include the
14000         functionality of the old init_parse and init_decl_processing.
14001         (gnat_init_decl_processing): New prototype.
14002         (init_parse): Remove.
14003         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
14004
14005 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14006
14007         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
14008         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
14009         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
14010         set_yydebug): Remove.
14011
14012 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14013
14014         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
14015         (struct lang_hooks): Constify.
14016         (language_string, lang_identify): Remove.
14017         * utils.c (init_decl_processing): Update.
14018
14019 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14020
14021         * misc.c: Include langhooks-def.h.
14022         * Makefile.in: Update.
14023
14024 2001-10-30  Robert Dewar <dewar@gnat.com>
14025
14026         * style.adb:
14027         (Check_Identifier): Rewrite circuit to be compatible with use of letters
14028         in the upper half of ASCII.
14029         (Check_Identifier): Minor reformatting
14030
14031 2001-10-30  Geert Bosch <bosch@gnat.com>
14032
14033         * (Associated_Node, Set_Associated_Node): Do not check for
14034         Freeze_Entity.
14035
14036 2001-10-30  Robert Dewar <dewar@gnat.com>
14037
14038         * a-reatim.ads: Minor reformatting
14039
14040 2001-10-30  Robert Dewar <dewar@gnat.com>
14041
14042         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
14043         undocumented declarations.
14044
14045 2001-10-30  Pascal Obry <obry@gnat.com>
14046
14047         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
14048         to the binder and linker.
14049         Minor style fix.
14050
14051         * mdll.ads: Fix layout.  Update copyright notice.
14052
14053         * mdll.adb: Fix layout.  Update copyright notice.
14054
14055 2001-10-30  Robert Dewar <dewar@gnat.com>
14056
14057         * usage.adb: Minor fix to output for -gnaty.
14058
14059 2001-10-30  Ed Schonberg <schonber@gnat.com>
14060
14061         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
14062         to accommodate all its possible values.
14063
14064         * a-reatim.adb (Split): Special-case handling of Time_Span_First
14065         and of small absolute values of T.
14066
14067 2001-10-30  Richard Kenner <kenner@gnat.com>
14068
14069         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
14070         set_mem_attributes since not needed and wrong if RESULT if a REG;
14071         fixes ACATS failures.
14072
14073 2001-10-30  Geert Bosch <bosch@gnat.com>
14074
14075         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
14076         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
14077
14078 2001-10-30  Robert Dewar <dewar@gnat.com>
14079
14080         * bindusg.adb: Undocument -f switch.
14081
14082         * gnatcmd.adb: Remove /FULL_ELABORATION.
14083
14084         * opt.ads (Force_RM_Elaboration_Order): Document that this is
14085         obsolescent.
14086
14087         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
14088
14089         * gnatbind.adb: Minor update of warning msg.
14090
14091 2001-10-30  Vincent Celier <celier@gnat.com>
14092
14093         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
14094         for project file switches (-P (/PROJECT_FILE=),
14095          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
14096         or MEDIUM or HIGH)
14097
14098 2001-10-30  Geert Bosch <bosch@gnat.com>
14099
14100         * decl.c: Minor whitespace fixes.
14101
14102 2001-10-30  Richard Kenner <kenner@gnat.com>
14103
14104         * utils2.c (build_allocator): Test for SIZE overflow in array case too
14105
14106 2001-10-30  Geert Bosch <bosch@gnat.com>
14107
14108         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
14109         Found due to GCC 3.0 warning of using uninitialized value.
14110
14111         * layout.adb:
14112         (Get_Max_Size): Use variant record for tracking value/expression.
14113          Makes logic clearer and prevents warnings for uninitialized variables.
14114         (Layout_Array_Type): Use variant record for tracking value/expression.
14115          Makes logic clearer and prevents warnings for uninitialized variables.
14116
14117 2001-10-30  Robert Dewar <dewar@gnat.com>
14118
14119         * lib.adb: Minor reformatting
14120
14121         * s-taprop.ads: Minor reformatting
14122
14123 2001-10-29  Laurent Guerby  <guerby@acm.org>
14124
14125         * init.c:
14126         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
14127         const.
14128         (_gnat_error_handler): Make MSG const.
14129
14130 2001-10-29  Richard Kenner <kenner@gnat.com>
14131
14132         * sysdep.c: Fix localtime_r problem on LynxOS.
14133         Also remove #elif to avoid warnings.
14134
14135         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
14136         used by this.
14137
14138         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
14139
14140 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
14141
14142         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
14143         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
14144         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
14145         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
14146         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
14147         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
14148         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
14149         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
14150         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
14151         types.ads, urealp.adb: Fix spelling errors.
14152
14153 2001-10-27  Laurent Guerby <guerby@acm.org>
14154
14155         * trans.c (gigi): Fix non determinism leading to bootstrap
14156         comparison failures for debugging information.
14157
14158 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
14159
14160         * gnat_rm.texi: Use @./@: where appropriate.
14161
14162 2001-10-26  Robert Dewar <dewar@gnat.com>
14163
14164         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
14165
14166 2001-10-26  Richard Kenner <kenner@gnat.com>
14167
14168         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
14169
14170 2001-10-26  Richard Kenner <kenner@gnat.com>
14171
14172         * decl.c (validate_size): Modify message for bad size to avoid
14173         implication that compiler is modifying the size.
14174
14175 2001-10-26  Robert Dewar <dewar@gnat.com>
14176
14177         * prj-util.adb: Minor reformatting. Fix bad header format.
14178
14179 2001-10-26  Robert Dewar <dewar@gnat.com>
14180
14181         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
14182
14183         * sinfo.ads: Clarify use of Associated_Node (documentation only).
14184
14185         * sem_ch12.adb: Change Node4 to Associated_Node. Change
14186         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
14187         much more narrowly in places where needed. These are cleanups.
14188
14189 2001-10-26  Joel Brobecker <brobecke@gnat.com>
14190
14191         * 5zosinte.ads (null_pthread): new constant.
14192
14193         * 5ztaprop.adb:
14194         (Initialize_TCB): Initialize thread ID to null, to be able to verify
14195          later that this field has been set.
14196         (Finalize_TCB): ditto.
14197         (Suspend_Task): Verify that the thread ID is not null before using it.
14198         (Resume_Task): ditto.
14199
14200         * s-tasdeb.adb:
14201         (Resume_All_Tasks): Lock the tasks list before using it.
14202         (Suspend_All_Tasks): ditto.
14203
14204 2001-10-26  Richard Kenner <kenner@gnat.com>
14205
14206         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
14207         Make constant variant of designated type for Is_Access_Constant.
14208         Call update_pointer_to with main variant.
14209
14210         * trans.c (process_freeze_entity, process_type):
14211         Call update_pointer_to on main variant.
14212
14213         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
14214         If main variant, update all other variants.
14215
14216         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
14217         TREE_STATIC.
14218
14219 2001-10-26  Robert Dewar <dewar@gnat.com>
14220
14221         * prj-util.adb: Minor reformatting
14222
14223 2001-10-26  Robert Dewar <dewar@gnat.com>
14224
14225         * prj-util.adb: Minor reformatting
14226
14227 2001-10-26  Robert Dewar <dewar@gnat.com>
14228
14229         * prj-attr.adb: Minor reformatting throughout
14230
14231 2001-10-26  Robert Dewar <dewar@gnat.com>
14232
14233         * prj-attr.ads: Minor reformatting
14234         Add ??? comment (this whole spec has almost no comments)
14235
14236 2001-10-26  Vincent Celier <celier@gnat.com>
14237
14238         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
14239         ("//") that precede the drive letter on Interix.
14240
14241 2001-10-26  Geert Bosch <bosch@gnat.com>
14242
14243         * gnat_rm.texi: Add GNAT Reference Manual.
14244
14245 2001-10-25  Robert Dewar <dewar@gnat.com>
14246
14247         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
14248         is Error. Similar change for other renaming cases.
14249
14250 2001-10-25  Robert Dewar <dewar@gnat.com>
14251
14252         * s-atacco.ads: Add pragma Inline_Always for functions.
14253         Fix header format. Add copyright 2001
14254
14255 2001-10-25  Ed Schonberg <schonber@gnat.com>
14256
14257         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
14258         return Error rather than Empty so that analysis can proceed.
14259
14260 2001-10-25  Ed Schonberg <schonber@gnat.com>
14261
14262         * sem_util.adb (Enter_Name): better handling of cascaded error
14263         messages when a unit appears in its own context.
14264
14265 2001-10-25  Ed Schonberg <schonber@gnat.com>
14266
14267         * sem_util.adb (Defining_Entity): in case of error, attach created
14268         entity to specification, so that semantic analysis can proceed.
14269
14270 2001-10-25  Robert Dewar <dewar@gnat.com>
14271
14272         * sem_util.adb
14273         (Defining_Entity): Deal with Error.
14274         (Process_End_Label): Deal with bad end label for.
14275
14276 2001-10-25  Ed Schonberg <schonber@gnat.com>
14277
14278         * sem_elab.adb (Check_A_Call): refine message when call is in an
14279         instance but callee is not declared in the generic unit.
14280
14281 2001-10-25  Ed Schonberg <schonber@gnat.com>
14282
14283         * sem_elab.adb (Check_A_Call): check for renaming before finding the
14284         enclosing unit, which may already be different from the calling unit.
14285
14286 2001-10-25  Geert Bosch <bosch@gnat.com>
14287
14288         * 4gintnam.ads: fix header format.
14289
14290 2001-10-25  Ed Schonberg <schonber@gnat.com>
14291
14292         * sem_res.adb (Resolve_Call): if the call is actually an indexing
14293         operation on the result of a parameterless call, perform elaboration
14294         check after the node has been properly rewritten.
14295
14296         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
14297         inlined within the generic tree, the defining identifier is not a
14298         compilation_unit.
14299
14300 2001-10-25  Ed Schonberg <schonber@gnat.com>
14301
14302         * sem_res.adb (Resolve): special-case resolution of Null in an
14303          instance or an inlined body to avoid view conflicts.
14304
14305         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
14306          compatibility by retrieving the access type of the generic copy.
14307
14308 2001-10-25  Robert Dewar <dewar@gnat.com>
14309
14310         * sem_ch3.adb:
14311         (Analyze_Number_Declaration): Handle error expression.
14312         (Signed_Integer_Type_Declaration): Handle error bound.
14313         (Analyze_Subtype_Indication): Handle error range.
14314
14315         * sem_util.adb (Get_Index_Bounds): Check for Error.
14316
14317 2001-10-25  Robert Dewar <dewar@gnat.com>
14318
14319         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
14320         in no run time mode.
14321
14322 2001-10-25  Pascal Obry <obry@gnat.com>
14323
14324         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
14325         mode case for ALLOC case.
14326
14327         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
14328         all platforms. Improvement of last change.
14329
14330 2001-10-25  Robert Dewar <dewar@gnat.com>
14331
14332         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
14333
14334 2001-10-25  Geert Bosch  <bosch@gnat.com>
14335
14336         * osint.adb (Is_Relative): Remove duplicate.
14337
14338 2001-10-25  Pascal Obry <obry@gnat.com>
14339
14340         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
14341         pathnames in UNIX and DOS style with drive letter.
14342         (Is_Relative): new routine.
14343
14344         * osint.adb: Minor reformatting
14345
14346         * osint.adb (Is_Relative): implementation using
14347         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
14348
14349 2001-10-25  Pascal Obry <obry@gnat.com>
14350
14351         * g-dirope.adb (Basename): correctly compute offset between the
14352         original Path and the translated one.
14353
14354         * g-dirope.adb: (Base_Name): add some comments.
14355
14356 2001-10-25  Robert Dewar <dewar@gnat.com>
14357
14358         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
14359         in HIE mode, avoids compilation abandoned message
14360
14361         * exp_imgv.adb: Correct typo in previous change
14362
14363         * exp_imgv.adb: Correct typo in previous change (not my day!)
14364
14365 2001-10-25  Robert Dewar <dewar@gnat.com>
14366
14367         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
14368
14369 2001-10-25  Pascal Obry <obry@gnat.com>
14370
14371         * g-awk.ads: Move all pragma inlines next to the routine
14372          declarations. This is more uniform with other GNAT spec.
14373
14374 2001-10-22  Geert Bosch  <bosch@gnat.com>
14375
14376         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
14377
14378 2001-10-19  Geert Bosch  <bosch@gnat.com>
14379
14380         * Makefile.in (tools, gnattools): Remove gnatmem.
14381
14382 2001-10-17  Richard Henderson  <rth@redhat.com>
14383
14384         * Makefile.in (misc.o): Depend on langhooks.h.
14385         * misc.c: Include it.
14386         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
14387         (LANG_HOOKS_DECODE_OPTION): New.
14388         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
14389
14390 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
14391
14392         * trans.c (tree_transform): Adjust to recent change in
14393         expand_asm_operands to implement named asm operands.
14394
14395 2001-10-11  Ed Schonberg  <schonber@gnat.com>
14396
14397         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
14398         renaming of discriminant for mutable record type.
14399
14400 2001-10-11  Robert Dewar  <dewar@gnat.com>
14401
14402         * validsw.adb: Properly save -gnatVn status.
14403
14404 2001-10-11  Robert Dewar <dewar@gnat.com>
14405
14406         * usage.adb: Add lines for V switch.
14407
14408         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
14409         (/VALIDITY_CHECKING).
14410
14411 2001-10-11  Ed Schonberg <schonber@gnat.com>
14412
14413         * sem_type.adb (Add_One_Interp): an operator for a type declared in
14414         an extension of System is known to be visible.
14415
14416 2001-10-11  Ed Schonberg <schonber@gnat.com>
14417
14418         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
14419         properly. Fixes regression on ACATS C34005G.
14420
14421 2001-10-11  Robert Dewar <dewar@gnat.com>
14422
14423         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
14424         loop in generic instance, since this is likely not very useful.
14425
14426 2001-10-11  Robert Dewar <dewar@gnat.com>
14427
14428         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
14429         the error message for high integrity mode.
14430
14431         * rtsfind.adb (RTE): Give message if we try to find an entity that
14432         is not available in high integrity mode.
14433
14434         * rtsfind.ads:
14435         (OK_To_Use_In_HIE_Mode): New array.
14436         (RTE): May return Empty in high integrity mode.
14437
14438         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
14439         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
14440
14441         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
14442         unit if not inlined always and in no runtime mode. Fixes problem
14443         caused by new Rtsfind changes.
14444
14445         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
14446         body is deleted.
14447
14448         * rtsfind.adb (RTE): Make sure we do not try to load unit after
14449         giving message for entity not available in high integrity mode.
14450
14451 2001-10-11  Pascal Obry <obry@gnat.com>
14452
14453         * impunit.adb: Add GNAT.CRC32.
14454
14455 2001-10-11  Ed Schonberg <schonber@gnat.com>
14456
14457         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
14458         properly the case where one universal operand in a non-static
14459         exponentiation of a real literal.
14460
14461 2001-10-11  Ed Schonberg <schonber@gnat.com>
14462
14463         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
14464         clause, return the gobal finalization list, for lack of anthing else.
14465
14466 2001-10-11  Ed Schonberg <schonber@gnat.com>
14467
14468         * exp_ch7.adb (Make_Transient_Block): if statement is within
14469         exception handler, always use new transient scope to place Clean
14470         procedure.
14471
14472 2001-10-11  Pascal Obry <obry@gnat.com>
14473
14474         * Makefile.in:
14475         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14476         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14477         (GNATLS_RTL_OBJS): add g-crc32.o
14478         (GNATMAKE_RTL_OBJS): add g-crc32.o
14479
14480         * ali-util.adb:
14481         (CRC_Match): new function.
14482         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
14483         instead of the previous simple checksum algorithm.
14484         (Time_Stamp_Mismatch): use CRC_Match for comparison.
14485         (Set_Source_Table): idem.
14486
14487         * ali-util.ads:
14488         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
14489         instead of simple checksum.
14490         (CRC_Match): new function.
14491         (CRC_Error): new constant.
14492
14493         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
14494         a CRC now and not a simple checksum. A CRC uses lower-case hex
14495         letters, fixes ambiguity in parsing.
14496
14497         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
14498         is what this variable will store.
14499
14500         * bcheck.adb: Change reference to chechsum in comments by CRC.
14501         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
14502         rename All_Checksum_Match to All_CRC_Match. Change due to API
14503         renaming since now GNAT does not use a simple checksum but a
14504         CRC using GNAT.CRC32.
14505
14506         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
14507         now and not anymore a simple checksum.
14508
14509         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
14510         places.
14511
14512         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
14513
14514         * scans.adb:
14515         (Restore_Scan_State): rename Checksum to CRC.
14516         (Save_Scan_State): idem.
14517
14518         * scans.ads:
14519         With GNAT.CRC32.
14520         (Checksum): rename to CRC.
14521         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
14522
14523         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
14524         GNAT.CRC32).  Update copyright notice.
14525
14526         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
14527         GNAT.CRC32).  Update copyright notice.
14528
14529         * scn.adb:
14530         (Accumulate_Checksum): removed.
14531         (Update): new procedure. Add a wide-character into the CRC.
14532
14533         * sinput-l.adb:
14534         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
14535         (Load_File): fix initialization of S (change Source_Checksum to
14536         Source_CRC)
14537
14538         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
14539         Source_CRC in S initialization.
14540
14541         * sinput.adb (Source_Checksum): renamed to Source_CRC.
14542
14543         * sinput.ads (Source_Checksum): renamed to Source_CRC.
14544         Update comments for the CRC.
14545
14546         * types.adb (Hex): Use lowercase for the letter part.
14547
14548         * types.ads (Get_Hex_String): Returns the hexadecimal representation
14549         for a word. This is currently used only for CRC. In previous version,
14550         the checksum was using a representation with all letter being
14551         upper-case. With the new implementation (using CRC) we do not remove
14552         the 32th bit of the CRC, so we can have an upper-case starting letter
14553         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
14554         It is ambigous since the CRC was optional and could be followed by
14555         options like EB, EE. So now this routines uses lower-case letter for
14556         the hexadecimal representation. Strange enough only lower case letters
14557         where checked in Scan_ALI (even if this was not a possible case).
14558
14559         * gnatvsn.ads (Library_Version): changed to 3.15a.
14560
14561         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
14562         for the compiler.
14563
14564         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
14565         for the compiler.
14566
14567         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
14568         Add 2001 to copyright notice
14569         (Accumulate_Checksum): Modify to use System.CRC32.
14570
14571         * ali-util.ads: Redo changes of previous revision to continue to use
14572         the word Checksum. Add 2001 to copyright notice.
14573
14574         * ali.adb: Undo some of previous changes, not needed.
14575         Keep the change for lower case letters in the checksum.
14576
14577         * ali.ads: Undo previous change not needed.
14578
14579         * bcheck.adb: Undo most of previous change, not needed.
14580         But do use Checksums_Match for checksum comparison.
14581
14582         * gnatls.adb: Undo most of previous change, not needed.
14583         But do use Checksums_Match for comparing checksums.
14584
14585         * lib-load.adb: Undo previous change, not needed.
14586
14587         * lib-writ.adb: Undo previous change, not needed.
14588
14589         * lib-writ.ads: Document that checksums use lower case,
14590         not upper case letters.
14591
14592         * scans.adb: Undo previous change, not needed
14593
14594         * scans.ads: Undo previous change, not needed.
14595
14596         * scn-nlit.adb: Undo previous changes, not needed.
14597
14598         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
14599
14600         * scn.adb:
14601         (Accumulate_Checksum): Use System.CRC32.
14602         (Initialize_Checksum): New procedure.
14603         Remove other changes of previous revision.
14604
14605         * sinput-p.adb: Undo previous change, not needed.
14606
14607         * sinput.adb: Undo previous change, not needed.
14608
14609         * sinput-l.adb: Undo previous change, not needed.
14610
14611         * sinput.ads: Undo previous change, not needed.  Keep only comment
14612         on new checksum algorithm
14613
14614         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
14615         Also remove a-tags and a-stream from GNAT sources.
14616
14617         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
14618
14619         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
14620
14621 2001-10-11  Geert Bosch  <bosch@gnat.com>
14622
14623         * einfo.h: Regenerate.
14624
14625         * nmake.ads: Regenerate.
14626
14627         * nmake.adb: Regenerate.
14628
14629         * sinfo.h: Regenerate.
14630
14631         * treeprs.adb: Regenerate.
14632
14633 2001-10-10  Geert Bosch  <bosch@gnat.com>
14634
14635         * gnat-style.texi: New file describing coding guidelines for Ada.
14636
14637 2001-10-10  Ed Schonberg <schonber@gnat.com>
14638
14639         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
14640         is Flag174.
14641
14642 2001-10-10  Geert Bosch  <bosch@gnat.com>
14643
14644         * snames.ads: Add new names for project facility.
14645
14646         * snames.adb: Update to reflect snames.ads changes.
14647
14648         * snames.h: Update to reflect snames.ads changes.
14649
14650 2001-10-10  Vincent Celier <celier@gnat.com>
14651
14652         * make.adb:
14653         (Add_Switches): reflect the changes for the switches attributes
14654         Default_Switches indexed by the programming language,
14655         Switches indexed by the file name.
14656         (Collect_Arguments_And_Compile): Idem.
14657         Reflect the attribute name changes.
14658
14659         * prj-attr.adb:
14660         (Initialisation_Data): Change the names of some packages and
14661         attributes.
14662         (Initialize): process case insensitive associative arrays.
14663
14664         * prj-attr.ads:
14665         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
14666
14667         * prj-dect.adb:
14668         (Parse_Attribute_Declaration): For case insensitive associative
14669          arrays, set the index string to lower case.
14670
14671         * prj-env.adb:
14672         Reflect the changes of the project attributes.
14673
14674         * prj-nmsc.adb:
14675         Replace Check_Naming_Scheme by Ada_Check and
14676         Language_Independent_Check.
14677
14678         * prj-nmsc.ads:
14679         Replaced Check_Naming_Scheme by 2 procedures:
14680         Ada_Check and Language_Independent_Check.
14681
14682         * prj-proc.adb:
14683         (Process_Declarative_Items): For case-insensitive associative
14684         arrays, set the index string to lower case.
14685         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
14686         Prj.Nmsc.Check_Naming_Scheme.
14687
14688         * prj-tree.adb:
14689         (Case_Insensitive): New function
14690         (Set_Case_Insensitive): New procedure
14691
14692         * prj-tree.ads:
14693         (Case_Insensitive): New function
14694         (Set_Case_Insensitive): New procedure
14695         (Project_Node_Record): New flag Case_Insensitive.
14696
14697         * prj-util.adb:
14698         (Value_Of): new function to get the string value of a single
14699         string variable or attribute.
14700
14701         * prj-util.ads:
14702         (Value_Of): new function to get the string value of a single
14703         string variable or attribute.
14704
14705         * prj.adb:
14706         (Ada_Default_Spec_Suffix): New function
14707         (Ada_Default_Impl_Suffix): New function
14708         Change definitions of several constants to reflect
14709         new components of record types.
14710
14711         * prj.ads:
14712         (Naming_Data): Change several components to reflect new
14713         elements of naming schemes.
14714         (Project_Data): New flags Sources_Present and
14715         Language_Independent_Checked.
14716         (Ada_Default_Spec_Suffix): New function.
14717         (Ada_Default_Impl_Suffix): New function.
14718
14719         * snames.ads:
14720         Modification of predefined names for project manager: added
14721         Implementation, Specification_Exceptions, Implementation_Exceptions,
14722         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
14723         Default_Switches, _Languages, Builder, Cross_Reference,
14724         Finder. Removed Body_Part, Specification_Append, Body_Append,
14725         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
14726         Gnatlink.
14727
14728         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
14729         Add comments.
14730
14731         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
14732         not that it is Nil_Variable_Value.
14733
14734         * prj.ads: Add ??? for uncommented declarations
14735
14736 2001-10-10  Ed Schonberg <schonber@gnat.com>
14737
14738         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
14739         constant, do not indicate possible modification, so that gigi can
14740         treat it as a bona fide constant.
14741
14742 2001-10-10  Robert Dewar <dewar@gnat.com>
14743
14744         * sem_prag.adb: Add processing for pragma External.
14745
14746         * snames.ads: Add entry for pragma External.
14747
14748         * par-prag.adb: Add pragma External.
14749
14750         * snames.adb: Updated to match snames.ads.
14751
14752 2001-10-10  Ed Schonberg <schonber@gnat.com>
14753
14754         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
14755         a dynamic task if the allocator appears in an indexed assignment
14756         or selected component assignment.
14757
14758         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
14759         For a dynamic task in an assignment statement, use target of
14760         assignment to generate meaningful name.
14761
14762 2001-10-10  Ed Schonberg <schonber@gnat.com>
14763
14764         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
14765         a generic package.
14766
14767         * einfo.ads: Body_Entity is also defined for generic package.
14768         Documentation change only
14769
14770         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
14771         others_choice for a discriminated component initialization,
14772         convert discriminant references into the corresponding discriminals.
14773
14774         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
14775         only if original type is private and expression has to be wrapped
14776         in a conversion.
14777
14778         * checks.adb:
14779         (Apply_Constraint_Check): Do not perform length check
14780         if expression is an aggregate with only an others_choice.
14781         (Length_N_Cond): two references to the same in_parameter
14782         (typically the discriminal in an init_proc) denote the same value.
14783         Two useful optimization uncovered by bugfixes above.
14784
14785 2001-10-10  Robert Dewar <dewar@gnat.com>
14786
14787         * xeinfo.adb: Change int to char in translation of enumeration types.
14788         This fixes a problem in the C representation of component alignment.
14789         Add 2001 to copyright notice
14790
14791 2001-10-10  Richard Kenner <kenner@gnat.com>
14792
14793         * decl.c: (validate_size): Do check size of object of integral type
14794         if it is a packed array type.
14795
14796 2001-10-10  Richard Kenner <kenner@gnat.com>
14797
14798         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
14799         VAR_DECL for constant if not Is_Public but -O0.
14800
14801 2001-10-10  Richard Kenner  <kenner@gnat.com>
14802
14803         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
14804
14805 2001-10-10  Geert Bosch  <bosch@gnat.com>
14806
14807         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
14808         use '/' as switch character, allowing for absolute file names.
14809
14810 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
14811
14812         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
14813         FSF address.
14814
14815 2001-10-08  Geert Bosch  <bosch@gnat.com>
14816
14817         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
14818         Automatically build utilities when files need to be regenerated.
14819
14820 2001-10-08  Geert Bosch  <bosch@gnat.com>
14821
14822         * xsnames.adb: New utility for updating snames.ads and snames.adb
14823
14824 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
14825
14826         * Make-lang.in (ADAFLAGS): Add -W -Wall.
14827         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
14828         (gnat1): Also depend on attribs.o.
14829         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
14830         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
14831         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
14832         (ADAFLAGS): Add -W -Wall.
14833         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
14834         take out CFLAGS.
14835
14836         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
14837         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
14838         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
14839         Use $(ADAC), not $(CC), as compilation command.
14840
14841         (gnattools): Depend directly on tools to build, don't use
14842         recursive make.
14843         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
14844
14845         * einfo.h, sinfo.h: New files (autogenerated).
14846
14847 2001-10-08  Richard Henderson  <rth@redhat.com>
14848
14849         * comperr.adb (Abort_In_Progress): New.
14850         (Compiler_Abort): Use it to prevent recursion.
14851
14852 2001-10-08  Robert Dewar <dewar@gnat.com>
14853
14854         * atree.adb: Set Error_Posted in Error node, helps error recovery.
14855
14856         * par-endh.adb (Output_End_Expected): We should also not test
14857         Error_Posted on the Error node, since now it is always set.
14858
14859         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
14860         to help error recovery. Part of general work on 9407-004.
14861
14862         * par.adb: Add ??? for misuse of error
14863
14864         * sem_res.adb:
14865         (Resolve): Defend against Error, fixes 9407-003.
14866         (Resolve_Discrete_Subtype_Indication): Defend against Error.
14867
14868         * sinfo.ads (N_Error): Now has Etype field (which will be set
14869         to Any_Type to help error recovery).
14870
14871 2001-10-08  Richard Kenner (kenner@gnat.com)
14872
14873         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
14874         Consistently set MEM attributes from expression; fixes
14875         bootstrap failure on x86.
14876
14877 2001-10-08  Geert Bosch  (bosch@gnat.com)
14878
14879         * 5oosinte.adb: Add 2001 to copyright notice.
14880
14881 2001-10-08  Geert Bosch  (bosch@gnat.com)
14882
14883         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
14884
14885         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
14886
14887 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
14888
14889         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
14890
14891 2001-10-05  Geert Bosch  (bosch@gnat.com)
14892
14893         * adaint.h: Small formatting fix.
14894
14895 2001-10-04  Geert Bosch  <bosch@gnat.com>
14896
14897         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
14898         Arg is int, not FILE *, in dummy version of functions.
14899
14900         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
14901         Arg is int, not FILE *.
14902
14903 2001-10-04  Geert Bosch  <bosch@gnat.com>
14904
14905         * 3lsoccon.ads: Added file, missed with initial check ins.
14906
14907         * 4lintnam.ads: Fix header format.
14908         Change Linux to GNU/Linux.
14909
14910         * 5iosinte.adb: Change Linux to GNU/Linux.
14911
14912         * 5iosinte.ads: Change Linux to GNU/Linux.
14913
14914         * 5itaprop.adb: Change Linux to GNU/Linux.
14915
14916         * 5itaspri.ads: Change Linux to GNU/Linux.
14917         Update copyright notice.
14918
14919         * 5lintman.adb: Change Linux to GNU/Linux.
14920
14921         * 5lml-tgt.adb: Change Linux to GNU/Linux.
14922
14923         * 5losinte.ads: Change Linux to GNU/Linux.
14924
14925         * 5lsystem.ads: Change Linux to GNU/Linux.
14926
14927         * 5qosinte.adb: Change Linux to GNU/Linux.
14928
14929         * 5qosinte.ads: Change Linux to GNU/Linux.
14930
14931         * 5qparame.ads: Change Linux to GNU/Linux.
14932
14933         * 5qtaprop.adb: Change Linux to GNU/Linux.
14934
14935         * 5qtaspri.ads: Change Linux to GNU/Linux.
14936         Add 2001 to copyright notice.
14937
14938         * 5vintman.ads: Change Linux to GNU/Linux.
14939         Fix header format.  Add 2001 to copyright notice.
14940
14941         * g-soccon.ads: Change Linux to GNU/Linux.
14942
14943         * g-trasym.ads: Change Linux to GNU/Linux.
14944         Add 2001 to copyright notice.
14945
14946         * memtrack.adb: Change Linux to GNU/Linux.
14947
14948         * s-intman.ads: Change Linux to GNU/Linux.
14949         Add 2001 to copyright notice.  Fix header format.
14950
14951         * s-stache.adb: Change Linux to GNU/Linux.
14952
14953         * adaint.c: Change Linux to GNU/Linux.
14954
14955         * cio.c: Change Linux to GNU/Linux.
14956
14957         * cstreams.c: Change Linux to GNU/Linux.
14958
14959         * init.c: Change Linux to GNU/Linux.
14960
14961         * gmem.c: Change Linux to GNU/Linux.
14962
14963         * tracebak.c: Change Linux to GNU/Linux.
14964
14965
14966 2001-10-02  Geert Bosch  <bosch@gnat.com>
14967
14968         * misc.c (insert_default_attributes): Add dummy version.