1 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3 * system-irix-n64.ads: New file.
4 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
7 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10 * system-solaris-x86_64.ads: New file.
11 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
13 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
14 Eric Botcazou <ebotcazou@adacore.com>
17 * lib.ads: (Enable_Switch_Storing): Declare.
18 * lib.adb: (Enable_Switch_Storing): New procedure.
19 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
20 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
21 (Display): Never display -gnatea
22 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
24 2008-11-07 Thomas Quinot <quinot@adacore.com>
26 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
27 for empty range in original base type, not converted result type.
29 2008-11-07 Geert Bosch <bosch@adacore.com>
31 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
32 and result for call to __gnat_mulv64.
34 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
36 * gcc-interface/trans.c: Fix formatting nits.
38 2008-11-07 Geert Bosch <bosch@adacore.com>
40 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
41 overflow check for constant result.
43 2008-11-07 Geert Bosch <bosch@adacore.com>
45 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
46 overflow check for addition/subtraction if neither operand is constant.
48 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
50 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
51 files for the target-dependent part of the runtime.
52 (SPARC/Linux): Likewise.
54 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
56 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
57 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
60 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
62 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
65 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
68 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
69 Generate a call to memmove for an assignment between overlapping
72 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
75 * gcc-interface/Makefile.in: Add multilib handling for
76 s390-linux and s390x-linux.
78 2008-10-24 Jakub Jelinek <jakub@redhat.com>
80 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
81 check-acats-subtargets and check-gnat-subtargets.
82 (check_acats_targets): New variable.
83 (check-acats-subtargets, check-acats%): New targets.
84 (check-acats): If -j is used and CHAPTERS is empty, run the testing
85 in multiple make goals, possibly parallel, and afterwards run
86 dg-extract-results.sh to merge the sum and log files.
88 2008-10-17 Geert Bosch <bosch@adacore.com>
90 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
91 to use only a single check instead of three, and avoid unnecessary
93 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
94 creating more opportunities for optimizations.
96 2008-10-13 Jakub Jelinek <jakub@redhat.com>
99 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
102 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
104 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
105 dealing with volatileness to after code dealing with renaming.
107 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
109 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
110 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
112 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
114 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
115 (unchecked_convert): Use it to disable problematic folding with
116 VIEW_CONVERT_EXPR in the general case. Always disable it for the
117 special VIEW_CONVERT_EXPR built for integral types and cope with
118 its addressability issues by preserving the first conversion.
120 2008-10-01 Andreas Schwab <schwab@suse.de>
122 * system-linux-ppc64.ads: New file.
123 * gcc-interface/Makefile.in: Add multilib handling for
126 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
128 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
129 to that of ptr_mode instead of word_mode.
131 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
134 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
136 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
139 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
140 instead of deprecated FILE_WRITE_PROPERTIES.
142 2008-09-22 Olivier Hainque <hainque@adacore.com>
144 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
145 are never assigned, volatile entities are not constant for code
148 2008-09-21 Laurent Guerby <laurent@guerby.net>
151 * gcc-interface/Makefile.in: Add multilib handling for x86_64
153 * system-linux-sparcv9.ads: New file.
155 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
157 * exp_dbug.ads: Document new convention for the XVZ variable.
158 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
159 debug info if necessary for the type padding the component type.
160 <E_Array_Subtype>: Likewise.
161 (maybe_pad_type): Emit the XVZ variable in units.
162 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
163 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
164 on statements generated to initialize the parameter attributes cache.
165 Set the source line of the end label of the body on the special return
166 statement built for a procedure with copy-in copy-out parameters.
168 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
171 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
172 inlined external functions if they contain a nested function not
175 2008-09-18 Jan Hubicka <jh@suse.cz>
177 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
178 (end_subprog_body): Do not set DECL_INLINE.
180 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
183 * gnat_ugn.texi: Use proper format in direntry.
185 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
187 * gcc-interface/trans.c (gigi): Declare the name of the compilation
188 unit as the first global name.
190 2008-09-14 Jan Hubicka <jh@suse.cz>
192 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
194 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
196 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
197 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
198 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
199 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
200 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
201 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
202 gcc-interface/gigi.h, gcc-interface/trans.c,
203 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
204 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
205 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
206 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
207 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
208 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
209 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
210 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
212 * gnathtml.pl: Fix typos.
214 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
216 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
217 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
218 layer. RTEMS binds to OS provided adapter routines so there are
219 no modifications to s-osinte-rtems.adb.
221 2008-09-09 Arnaud Charlet <charlet@adacore.com>
222 Joel Sherrill <joel.sherrill@oarcorp.com>
224 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
226 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
228 * s-interr-hwint.adb: New file.
230 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
231 needed by s-interr-hwint.adb.
233 * s-osinte-vxworks-kernel.adb: New file.
235 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
237 * s-stchop-rtems.adb: Add file missed in early commit. Already
238 referenced in gcc-interface/Makefile.in.
240 2008-08-30 Thomas Quinot <quinot@adacore.com>
242 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
243 be built even without a separate libada directory.
245 2008-08-22 Arnaud Charlet <charlet@adacore.com>
247 * lib-xref.ads: Fix typo in subprogram reference definition.
249 2008-08-22 Robert Dewar <dewar@adacore.com>
251 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
254 * g-trasym.adb: Ditto
256 * s-utf_32.adb (Get_Category): Fix obvious typo
258 * s-wwdcha.adb: Minor code reorganization
261 2008-08-22 Robert Dewar <dewar@adacore.com>
263 * checks.adb (Determine_Range): Deal with values that might be invalid
265 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
266 configuration switches.
268 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
270 * sem_prag.adb: Implement pragma Assume_No_Default_Values
272 * snames.adb, snames.ads, snames.h:
273 Add entries for pragma Assume_No_Invalid_Values
275 * switch-c.adb: Add processing for -gnatB switch
277 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
279 2008-08-22 Javier Miranda <miranda@adacore.com>
281 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
282 init procedure all the expanded code associated with the spec of
283 task types and protected types.
285 2008-08-22 Gary Dismukes <dismukes@adacore.com>
287 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
288 component expression copies rather than directly setting Etype and
289 Is_Static_Expression.
291 2008-08-22 Gary Dismukes <dismukes@adacore.com>
293 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
294 private types to allow for types derived from a private type with
295 preelaborable initialization, but return False for a private extension
296 (unless it has the pragma).
298 2008-08-22 Robert Dewar <dewar@adacore.com>
300 * opt.ads: Minor code reorganization (put entries in alpha order)
302 2008-08-22 Pascal Obry <obry@adacore.com>
304 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
307 2008-08-22 Geert Bosch <bosch@adacore.com>
309 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
310 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
312 2008-08-22 Doug Rupp <rupp@adacore.com>
314 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
318 (__gnat_set_features): New function.
319 (__gnat_features_set): New tracking variable.
320 (__gl_no_malloc_64): New feature global variable
322 2008-08-22 Ed Schonberg <schonberg@adacore.com>
324 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
325 use_type_clause in an instance.
327 2008-08-22 Bob Duff <duff@adacore.com>
329 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
331 2008-08-22 Robert Dewar <dewar@adacore.com>
333 * exp_ch6.adb: Minor reformatting
335 * exp_ch7.adb: Minor reformatting
337 * exp_ch7.ads: Put routines in proper alpha order
339 * exp_dist.adb: Minor reformatting
341 2008-08-22 Vincent Celier <celier@adacore.com>
343 * prj.ads: Minor comment update
345 2008-08-22 Robert Dewar <dewar@adacore.com>
347 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
349 2008-08-22 Ed Schonberg <schonberg@adacore.com>
352 (Base_Init_Proc): For a protected subtype, use the base type of the
353 corresponding record to locate the propoer initialization procedure.
355 2008-08-22 Robert Dewar <dewar@adacore.com>
358 (In_Subrange_Of): New calling sequence
359 (Determine_Range): Prepare for new processing using base type
362 (Compile_Time_Compare): Use new calling sequence
365 (Compile_Time_Compare): Use new calling sequence
368 (Compile_Time_Compare): New calling sequence allows dealing with
370 (In_Subrange_Of): Ditto
373 (Compile_Time_Compare): New calling sequence allows dealing with
375 (In_Subrange_Of): Ditto
377 2008-08-22 Pascal Obry <obry@adacore.com>
379 * adaint.c: Fix possible race condition on win32_wait().
381 2008-08-22 Bob Duff <duff@adacore.com>
383 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
384 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
385 exp_intr.adb, exp_ch3.adb: Rename:
386 Exp_Ch7.Controlled_Type => Needs_Finalization
387 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
388 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
390 (Has_Some_Controlled_Component): Fix bug in array case.
392 2008-08-22 Robert Dewar <dewar@adacore.com>
394 * sem_ch8.adb: Minor reformatting
396 2008-08-22 Kevin Pouget <pouget@adacore.com>
398 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
399 Shared_Var_Close procedure specifications from package spec to package body.
401 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
402 RE_Shared_Var_WOpen entries.
404 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
405 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
407 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
409 * init.c: adjust EH support code on Alpha/Tru64 as well.
411 * raise-gcc.c: Add back a couple of comments.
413 2008-08-22 Ed Schonberg <schonberg@adacore.com>
415 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
416 involved and the return type is class-wide, use the type of the expression
417 for the generated access type. Suppress useless discriminant checks on the
420 2008-08-22 Bob Duff <duff@adacore.com>
422 * exp_ch7.adb: Minor comment fix
424 * exp_ch6.ads: Minor comment fix
426 2008-08-22 Thomas Quinot <quinot@adacore.com>
428 * sem_ch8.adb: Minor reformatting
429 Minor code reorganization (introduce subprogram to factor duplicated
432 2008-08-22 Sergey Rybin <rybin@adacore.com>
434 * gnat_ugn.texi: Change the description of gnatcheck default rule
437 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
439 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
440 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
441 do not adjust the PC anymore.
442 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
443 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
445 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
446 instead of _Unwind_GetIP.
448 2008-08-22 Gary Dismukes <dismukes@adacore.com>
450 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
451 with a range is transformed into a positional aggregate, any copied
452 component literals should be marked Is_Static_Expression.
454 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
455 not being known at at compile time when Configurable_Run_Time_Mode is
458 2008-08-22 Robert Dewar <dewar@adacore.com>
461 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
462 Read or Input attribute.
464 2008-08-22 Ed Schonberg <schonberg@adacore.com>
466 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
467 clauses in related units is redundant, if one of the units is a package
468 instantiation, use its instance_spec to determine which unit is the
469 ancestor of the other.
471 2008-08-22 Javier Miranda <miranda@adacore.com>
473 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
474 attributes add missing support to handle designated types that come
475 from the limited view.
477 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
479 2008-08-22 Sergey Rybin <rybin@adacore.com>
481 * vms_data.ads: Add entry for new gnatcheck -mNNN option
483 * gnat_ugn.texi: Add description for gnatcheck option '-m'
485 2008-08-22 Sergey Rybin <rybin@adacore.com>
487 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
488 acoording to the latest changes in the metric rule interface
490 2008-08-22 Vincent Celier <celier@adacore.com>
492 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
493 (Check): Check if the file names registered in the ALI file for the
494 spec, the body and each of the subunits are the ones expected.
496 2008-08-22 Robert Dewar <dewar@adacore.com>
498 * g-catiio.adb: Code cleanup.
500 2008-08-20 Vincent Celier <celier@adacore.com>
502 * make.adb (Gnatmake): Remove extra space in version line
505 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
506 as the name may already have been entered in the table by the Project
509 2008-08-20 Jose Ruiz <ruiz@adacore.com>
511 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
512 weak symbols so we use the version provided by MaRTE when available.
514 2008-08-20 Emmanuel Briot <briot@adacore.com>
516 * g-catiio.ads, g-catiio.adb:
517 (Value): Avoid an unnecessary system call to Clock in most cases.
518 This call is only needed when only the time is provided in the string,
519 and ignored in all other cases. This is more efficient.
521 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
523 * raise-gcc.c: Fix formatting nits.
525 2008-08-20 Robert Dewar <dewar@adacore.com>
528 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
529 non-existing component clause.
531 * exp_ch5.adb: Minor reformatting
533 * g-comlin.adb: Minor reformatting
535 * make.adb: Minor reformatting
537 * prj-proc.adb: Minor reformatting
539 * stylesw.ads: Minor reformatting
541 2008-08-20 Vincent Celier <celier@adacore.com>
543 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
544 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
545 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
546 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
547 and a switch is not recognized by gnatmake.
548 (Gnatmake): Implement new scheme for gnatmake switches and global
549 compilation switches.
550 (Switches_Of): Try successively Switches (<file name>),
551 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
553 2008-08-20 Ed Schonberg <schonberg@adacore.com>
555 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
556 implement style check that overriding operations are explicitly marked
559 * style.ads (Missing_Overriding): new procedure that provides interface
562 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
563 that the declaration or body of overriding operations carries an
564 explicit overriding indicator.
567 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
568 explicit indicator should be present.
570 * sem_ch6.adb (Verify_Overriding_Indicator,
571 Check_Overriding_Indicator): If operation is overriding, check whether
572 declaration and/or body of subprogram should be present
574 2008-08-20 Vincent Celier <celier@adacore.com>
576 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
577 gprbuild when casing is MixedCase, whatever the casing of the letters
580 2008-08-20 Gary Dismukes <dismukes@adacore.com>
582 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
583 creating dummy init proc.
584 (Requires_Init_Proc): Return False in the case No_Default_Initialization
585 is in force and the type does not have associated default
586 initialization. Move test of Is_Public (with tests of restrictions
587 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
588 for default initialization.
590 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
592 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
593 of any alias or prefix but having attached parameters (as \"-O2\").
595 2008-08-20 Robert Dewar <dewar@adacore.com>
597 * s-fileio.adb: Minor reformatting
599 2008-08-20 Thomas Quinot <quinot@adacore.com>
601 * exp_strm.adb (Build_Elementary_Input_Call,
602 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
603 selects the stream attribute routines for long float types.
605 2008-08-20 Vincent Celier <celier@adacore.com>
607 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
609 * prj.ads (Array_Data): Add a component Location
611 2008-08-20 Ed Schonberg <schonberg@adacore.com>
614 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
615 argument for ASIS and navigation use.
617 2008-08-20 Ed Schonberg <schonberg@adacore.com>
619 * einfo.ads: Add comment.
621 2008-08-20 Bob Duff <duff@adacore.com>
623 * sem_eval.ads: Minor comment fix.
625 2008-08-20 Bob Duff <duff@adacore.com>
627 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
628 folding. We were folding things like "False and then ...", but not
629 "X and then ..." where X is a constant whose value is known at compile
632 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
634 * exp_ch5.adb (Controlled_Type): New routine.
635 (Expand_N_Extended_Return_Statement): When generating a move of the
636 final list in extended return statements, check the type of the
637 function and in the case of double expanded return statements, the type
638 of the returned object.
639 (Expand_Simple_Function_Return): Perform an interface conversion when
640 the type of the returned object is an interface and the context is an
641 extended return statement.
643 2008-08-20 Ed Schonberg <schonberg@adacore.com>
645 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
646 and the full view is visible, set flag on full view as well.
648 2008-08-20 Thomas Quinot <quinot@adacore.com>
650 * g-comlin.adb: Minor reformatting
651 Minor code reorganization.
653 * freeze.adb: Minor reformatting
655 2008-08-20 Vincent Celier <celier@adacore.com>
657 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
658 source of another project.
660 2008-08-20 Pascal Obry <obry@adacore.com>
662 * s-os_lib.ads: Minor reformatting.
664 2008-08-20 Arnaud Charlet <charlet@adacore.com>
666 * gnatvsn.ads: Minor reformatting.
668 2008-08-20 Arnaud Charlet <charlet@adacore.com>
670 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
671 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
672 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
673 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
674 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
675 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
676 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
677 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
678 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
679 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
680 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
681 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
682 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
683 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
684 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
685 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
686 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
687 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
688 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
689 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
690 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
691 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
692 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
693 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
694 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
695 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
696 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
697 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
698 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
699 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
700 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
701 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
702 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
703 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
704 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
705 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
706 s-poosiz.adb, link.c: Fix copyright notice.
708 2008-08-20 Arnaud Charlet <charlet@adacore.com>
710 * g-comlin.ads: Update comments.
712 2008-08-20 Ed Schonberg <schonberg@adacore.com>
714 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
716 2008-08-20 Gary Dismukes <dismukes@adacore.com>
719 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
720 Make_Implicit_Exception_Handler when rewriting an exception handler with
721 a choice parameter, and pass the handler's Sloc instead of that of the
722 handled sequence of statements. Make_Implicit_Exception_Handler sets the
723 Sloc to No_Location (unless debugging generated code), which we don't
724 want for the case of a user handler.
726 2008-08-20 Robert Dewar <dewar@adacore.com>
728 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
731 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
732 now labeled as info msgs, not warnings.
734 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
736 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
738 * a-textio.adb: Remove redundant test.
740 * a-witeio.adb: Minor code reorganization
741 Remove redundant test found working on another issue
743 * a-ztexio.adb: Minor code reorganization
744 Remove redundant test found working on another issue
746 2008-08-20 Thomas Quinot <quinot@adacore.com>
748 * s-fileio.adb (Open) Use C helper function to determine whether a
749 given errno value corresponds to a "file not found" error.
751 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
753 2008-08-20 Jose Ruiz <ruiz@adacore.com>
755 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
756 to get access to the per-task errno variable.
757 (__set_errno for MaRTE): Do not redefine this function here since it is
758 already defined in MaRTE.
760 2008-08-20 Tristan Gingold <gingold@adacore.com>
762 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
764 2008-08-20 Robert Dewar <dewar@adacore.com>
766 * freeze.adb: Minor reformatting
768 * g-comlin.adb: Minor reformatting
770 * g-socket.adb: Minor reformatting
772 * g-socthi-mingw.adb: Minor reformatting
774 * g-stheme.adb: Minor reformatting
776 2008-08-20 Ed Schonberg <schonberg@adacore.com>
778 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
779 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
780 confusion between partial and full views of an ancestor of the context
781 type when the parent is a private extension declared in a parent unit,
782 and full views are available for the context type.
784 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
785 Robert Dewar <dewar@adacore.com>
788 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
790 Move comment in the right place.
791 * g-comver.adb (Version): Look for a zero-termination in
792 addition to a closing parenthesis.
794 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
796 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
797 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
798 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
799 Is_Package_Or_Generic_Package instead of hand-crafted tests.
801 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
804 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
807 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
809 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
811 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
813 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
814 for back-copy statements in lieu of that of the actual.
816 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
819 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
820 setjmp test consistently. Adjust for new behavior of flag_stack_check.
821 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
822 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
824 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
827 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
828 * sem_attr.adb (Check_Type): The current instance of a protected
829 object is not a type name.
830 (Analyze_Access_Attribute): Accept instances of protected objects.
831 (Analyze_Attribute, Attribute_Address clause): Ditto.
832 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
833 the prefix as being the current instance if needed.
835 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
837 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
838 Remove duplicate s-win32.o. Add s-winext.o.
840 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
842 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
843 with SOSC.SOCK__STREAM.
844 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
847 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
849 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
850 * gsocket.h, socket.c: Update to support RTEMS.
851 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
853 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
854 Robert Dewar <dewar@adacore.com>
856 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
857 left argument even when right argument is 0.
858 (Expand_N_Op_Mod): Ditto when right argument is 1.
859 (Expand_N_Op_Multiply): Ditto when any argument is 0.
860 (Expand_N_Op_Rem): Ditto when right argument is 1.
862 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
864 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
867 2008-08-08 Ed Schonberg <schonberg@adacore.com>
869 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
870 from Freeze_Entity. Used to generate cross-reference information for
871 types declared in generic packages.
873 2008-08-08 Thomas Quinot <quinot@adacore.com>
875 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
878 2008-08-08 Thomas Quinot <quinot@adacore.com>
881 On Windows, include <errno.h> and redefine only selected errno values
882 from their <winsock2.h> definitions.
884 * s-osinte-freebsd.ads: Minor reformatting
886 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
888 * g-soccon.ads: New file.
890 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
891 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
892 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
893 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
894 unit, to allow building software that depends on this internal unit
895 with both older and newer compilers.
897 2008-08-08 Robert Dewar <dewar@adacore.com>
899 * s-strxdr.adb: Minor reformatting
901 2008-08-08 Bob Duff <duff@adacore.com>
903 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
904 checking for integer operations (including division by zero)", which
905 is wrong -- divide by zero is not part of overflow checking.
906 Also added misc clarification about what check-suppression means.
908 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
910 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
912 * g-comlin.adb (Add_Switch): Handle addition of switches at the
913 begining of the command line.
914 (Append, Add): Renaming of Append to Add as this now allows addition
915 at the begining of the list.
917 * g-comlin.ads (Add_Switch): Handle addition of switches at the
918 begining of the command line.
920 2008-08-08 Thomas Quinot <quinot@adacore.com>
923 (Name): Document application scope (only legacy PC serial ports on
926 2008-08-08 Thomas Quinot <quinot@adacore.com>
928 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
929 previous change, not needed after all.
931 2008-08-08 Ed Schonberg <schonberg@adacore.com>
933 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
934 exclusion indicator is present
936 2008-08-08 Robert Dewar <dewar@adacore.com>
938 * g-comlin.adb: Minor code reorganization
941 * g-comlin.ads: Minor reformatting
943 * s-fileio.adb: Minor reformatting
945 * sem_attr.adb: Minor code reorganization (use Nkind_In)
948 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
950 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
951 with s-oscons-tmplt.i.
953 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
955 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
957 2008-08-06 Ed Schonberg <schonberg@adacore.com>
959 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
962 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
963 of a formal parameter of an incomplete type. Improve error message for
964 other improper uses of incomplete types.
966 2008-08-06 Robert Dewar <dewar@adacore.com>
968 * gnat_ugn.texi: Clarify -gnato documentation
970 2008-08-06 Thomas Quinot <quinot@adacore.com>
972 * gcc-interface/Makefile.in,
973 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
974 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
975 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
976 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
977 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
978 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
979 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
980 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
981 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
982 Remove GNAT.Sockets.Constants. This internal package is replaced by
985 2008-08-06 Thomas Quinot <quinot@adacore.com>
987 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
988 Remove obsolete targets referencing gen-soccon
989 When generating s-oscons.ads, use a file name that includes the
990 THREAD_KIND, to ensure that the (potentially different) version from a
991 previous build with a different threads flavour does not get reused.
993 2008-08-06 Thomas Quinot <quinot@adacore.com>
995 * sem_res.adb: Minor reformatting
997 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
998 only when the operating system reports a non-existing file or directory
999 (ENOENT), otherwise raise Name_Error.
1001 * exp_ch11.adb: Minor reformatting
1003 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1005 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
1006 incomplete, add the access_to_subprogram type to the list of private
1007 dependents only if the incomplete type will be completed in the current
1009 (Build_Discriminant_Constraints): If the type of the discriminant is
1010 access_to_variable, reject a constraint that is access_to_constant.
1012 2008-08-06 Thomas Quinot <quinot@adacore.com>
1014 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
1015 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
1016 g-sttsne-dummy.ads: New files.
1018 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
1019 with pragma Unimplemented_Unit for sockets packages on Nucleus.
1021 2008-08-06 Pascal Obry <obry@adacore.com>
1023 * adaint.c: Another fix for ACL support on Windows.
1025 2008-08-06 Javier Miranda <miranda@adacore.com>
1027 * exp_disp (Expand_Interface_Actuals): Adds missing support for
1028 expansion of calls to subprograms using selected components.
1030 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1032 * sem_res.adb (Resolve_Call): Use base type to determine whether a
1033 dereference is needed because a subtype of an access_to_subprogram is
1034 simply an access-subtype
1036 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1038 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
1039 parameters, always specify the expected separator.
1041 2008-08-06 Thomas Quinot <quinot@adacore.com>
1043 * xnmake.adb: Use new XUtil package for platform independent text
1046 2008-08-06 Vincent Celier <celier@adacore.com>
1048 * gnat_ugn.texi: Document compiler switch -gnateG
1050 2008-08-06 Quentin Ochem <ochem@adacore.com>
1052 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1053 in the case of an empty pattern size.
1054 (Compute_Result): Do not do any computation in the case of an empty
1056 (Report_Result): Fixed computation of the overflow guard.
1058 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1060 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1061 finalization routine to prevent elaboration order anomalies in new
1062 finalization scheme.
1064 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1066 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1067 declaration for the same type.
1069 2008-08-06 Thomas Quinot <quinot@adacore.com>
1071 * sem.adb: Minor rewording (comment)
1073 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1075 * g-comlin.adb (Define_Switch, Get_Switches): New.
1076 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1077 ungrouping switches.
1078 (For_Each_Simple_Switch): Allow more control over parameters handling.
1079 This generic method now allows ungrouping of switches with parameters
1080 and switches with more than one letter after the prefix.
1081 (Set_Command_Line): Take care of switches that are prefixed with a
1082 switch handling parameters without delimiter (-gnatya and -gnaty3 for
1084 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1085 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1087 (Start, Alias_Switches, Group_Switches): Take care of parameters
1088 possibly present inside a group.
1090 * g-comlin.ads (Define_Switch): New method used to define a list of
1091 expected switches, that are necessary for correctly ungrouping switches
1092 with more that one character after the prefix.
1093 (Get_Switches): Method that builds a getopt string from the list of
1094 switches as set previously by Define_Switch.
1095 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1096 status of the operation. Also allow the removal of switches with
1098 (Command_Line_Configuration_Record): Maintain a list of expected
1101 2008-08-06 Doug Rupp <rupp@adacore.com>
1103 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1104 TARGET_MALLOC64 clear.
1106 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1107 if TARGET_MALLOC64 clear.
1109 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1110 (TARGET_MALLC64): New macro. Default to clear.
1112 2008-08-06 Doug Rupp <rupp@adacore.com>
1114 * gcc-interface/utils2.c (snames.h) Include
1115 (TARGET_ABI_OPEN_VMS): Initialize.
1116 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1119 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1121 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1122 null exclusion in a discriminant declaration
1124 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1125 indicators when type is not an access type.
1127 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1128 indicators when type is not an access type.
1130 2008-08-06 Javier Miranda <miranda@adacore.com>
1132 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1133 with the target interface before expanding the code of the interface
1136 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1139 (Freeze_Entity): A deferred constant does not violate the restriction
1140 No_Default_Initialization,
1142 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1143 can carry a null exclusion indicator, and on which an error may be
1144 posted if the indicator is redundant.
1146 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1147 does not apply to a subtype mark that already excludes null.
1149 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1150 exclusion does not apply to a subtype mark that already excludes null.
1152 2008-08-05 Thomas Quinot <quinot@adacore.com>
1154 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1156 2008-08-05 Doug Rupp <rupp@adacore.com>
1158 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1160 2008-08-05 Thomas Quinot <quinot@adacore.com>
1162 * gsocket.h: Make this file includable in a Nucleus environment, which
1163 does not support sockets.
1165 * socket.c: Remove Nucleus-specific hack.
1167 2008-08-05 Pascal Obry <obry@adacore.com>
1169 * adaint.c: Remove support for readable attribute on vxworks and nucleus
1171 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1174 (Analyze_Attribute, case 'Result): handle properly the case where some
1175 operand of the expression in a post-condition generates a transient
1178 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1179 right-hand side when it is an anonymous access_to_subprogram, to force
1180 static accessibility check when needed.
1182 2008-08-05 Sergey Rybin <rybin@adacore.com>
1184 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1185 rule according to the change in the rule option.
1186 Add documentation for -gnatw.b/-gnatw.B
1188 2008-08-05 Robert Dewar <dewar@adacore.com>
1190 * ug_words: Add entries for -gnatw.b/-gnatw.B
1192 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1194 2008-08-05 Vincent Celier <celier@adacore.com>
1196 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1199 * a-ztdeio.adb: Ditto.
1201 2008-08-05 Pascal Obry <obry@adacore.com>
1203 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1206 2008-08-05 Vincent Celier <celier@adacore.com>
1209 (Wide_String_To_String): Returns a String with the same 'First as its
1211 (Wide_Wide_String_To_String): Ditto
1214 (Wide_String_To_String): Document that the lowest index of the returned
1215 String is equal to S'First.
1217 2008-08-05 Thomas Quinot <quinot@adacore.com>
1219 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1221 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1224 2008-08-05 Robert Dewar <dewar@adacore.com>
1226 * opt.ads (Warn_On_Biased_Representation): New flag
1229 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1230 representation is required.
1231 (Minimum_Size): Don't allow biasing if enum rep clause case
1234 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1235 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1237 * usage.adb: Add lines for -gnatw.b/B switches
1239 2008-08-05 Pascal Obry <obry@adacore.com>
1241 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1243 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1245 2008-08-05 Thomas Quinot <quinot@adacore.com>
1247 * socket.c: Minor reformatting.
1249 2008-08-05 Robert Dewar <dewar@adacore.com>
1251 * sem_ch3.adb: Minor reformatting
1253 * prj-nmsc.adb: Minor reformatting
1255 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1257 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1258 visibility check on the component type if the simple test fails.
1260 2008-08-05 Jose Ruiz <ruiz@adacore.com>
1262 * init.c (__gnat_install_handler for linux): If we are building the
1263 Xenomai run time then we need to do two additional things: avoid
1264 memory swapping and transform the Linux environment task into a native
1267 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1268 time): Use interface to Xenomai native skin and avoid linux-specific
1269 way of setting CPU affinity.
1270 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1272 2008-08-05 Bob Duff <duff@adacore.com>
1274 * checks.ads: Minor comment fix
1276 2008-08-05 Thomas Quinot <quinot@adacore.com>
1278 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1279 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1282 2008-08-05 Robert Dewar <dewar@adacore.com>
1284 * mlib.adb: Minor code reorganization
1287 * make.adb: Minor reformatting
1289 * prj-attr.ads: Minor reformatting
1291 * s-os_lib.adb: Minor reformatting
1293 * s-fileio.adb: Minor code reorganization
1296 * prj.ads: Minor reformatting
1298 2008-08-05 Bob Duff <duff@adacore.com>
1300 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1301 unresolved initial value of "null", because it causes implicitly
1302 generated "=" operators to be ambiguous, and because this type should
1303 not be passed to gigi.
1305 2008-08-05 Vincent Celier <celier@adacore.com>
1307 * mlib.adb: Update comments.
1309 * make.adb (Switches_Of): Check for Switches (others), before checking
1310 for Default_Switches ("Ada").
1311 (Gnatmake): Use Builder'Switches (others) in preference to
1312 Builder'Default_Switches ("Ada") if there are several mains.
1315 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1319 Add markers to indicates that attributes Switches allow others as index
1320 (Others_Allowed_For): New Boolean function, returning True for
1321 attributes with the mark.
1322 (Initialize): Recognize optional letter 'O' as the marker for
1323 associative array attributes where others is allowed as the index.
1326 (Others_Allowed_For): New Boolean function
1327 (Attribute_Record): New Boolean component Others_Allowed
1330 (Parse_Attribute_Declaration): For associative array attribute where
1331 others is allowed as the index, allow others as an index.
1334 (Process_Binder): Skip associative array attributes with index others
1335 (Process_Compiler): Ditto
1338 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1339 index is All_Other_Names.
1342 (All_Other_Names): New constant
1345 (Process_Declarative_Items): Skip associative array attribute when index
1346 is reserved word "others".
1348 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
1350 * gen-oscons.c: Adapt for VMS where termios.h is not available.
1352 2008-08-05 Thomas Quinot <quinot@adacore.com>
1354 * a-rttiev.adb: Minor reformatting (comments)
1356 * gen-soccon.c: Rename to gen-oscons.c
1358 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1359 GNAT.Sockets.Constants.
1360 Add new constants for GNAT.Serial_Communications and System.File_IO.
1362 2008-08-05 Javier Miranda <miranda@adacore.com>
1364 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1365 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1366 implementation of this routine has been simplified.
1368 2008-08-05 Pascal Obry <obry@adacore.com>
1370 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1371 Set_Read_Only Win32 implementation.
1373 2008-08-05 Thomas Quinot <quinot@adacore.com>
1375 * exp_strm.adb: Minor reformatting (comments)
1377 * sem_ch12.adb: Minor reformatting.
1379 2008-08-05 Robert Dewar <dewar@adacore.com>
1381 * sem_ch3.adb: Minor reformatting
1383 * checks.adb: Minor reformatting
1385 2008-08-05 Thomas Quinot <quinot@adacore.com>
1387 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1388 restriction on Prefix.
1390 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
1392 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1393 methods needed to handle switch sections when building a command line.
1394 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1395 Current_Section): New public methods or methods modified to handle
1396 building command lines with sections.
1397 (Set_Command_Line): Take into account sections when analysing a switch
1399 (Start): Sort the switches by sections before iterating the command line
1402 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1403 Is_New_Section, Current_Section): New methods or methods modified to
1404 handle building command lines with sections.
1406 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1408 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1409 discriminants, indicate that the corresponding object declaration has
1410 no initialization, to prevent spurious warnings when the access type is
1413 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1415 * sem_res.adb (Resolve_Call): If this is a call to the predefined
1416 Abort_Task, warn if the call appears within a protected operation.
1418 2008-08-04 Robert Dewar <dewar@adacore.com>
1420 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1422 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1425 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1426 anonymous access to protected subprogram that is the return type of the
1427 specification of a subprogram body.
1430 (Analyze_Subprogram_Body): if the return type is an anonymous access to
1431 subprogram, freeze it now to prevent access anomalies in the back-end.
1433 * exp_ch9.adb: Minor code cleanup.
1434 Make sure that new declarations are inserted into the tree before
1435 analysis (from code reading).
1437 2008-08-04 Robert Dewar <dewar@adacore.com>
1440 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1443 2008-08-04 Thomas Quinot <quinot@adacore.com>
1445 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1447 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1449 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1451 2008-08-04 Javier Miranda <miranda@adacore.com>
1453 * sem_prag.adb (Process_Convention): Add missing support for
1454 N_Private_Extension_Declaration nodes.
1456 2008-08-04 Robert Dewar <dewar@adacore.com>
1458 * exp_ch4.adb: Minor reformatting
1460 2008-08-04 Pascal Obry <obry@adacore.com>
1462 * adaint.h: Add missing prototype.
1464 * adaint.c: Refine support for Windows file attributes.
1466 2008-08-04 Robert Dewar <dewar@adacore.com>
1469 (Valid_Conversion): Catch case of designated types having different
1470 sizes, even though they statically match.
1472 2008-08-04 Javier Miranda <miranda@adacore.com>
1474 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1475 added in previous patch to handle access to subprograms.
1477 2008-08-04 Robert Dewar <dewar@adacore.com>
1480 (Freeze_Entity): Only check No_Default_Initialization restriction for
1481 constructs that come from source
1483 2008-08-04 Thomas Quinot <quinot@adacore.com>
1485 * exp_ch6.adb: Minor comment fix.
1487 * sem_ch4.adb: Minor reformatting.
1489 2008-08-04 Robert Dewar <dewar@adacore.com>
1491 * sem_res.adb: (Large_Storage_Type): Improve previous change.
1493 2008-08-04 Pascal Obry <obry@adacore.com>
1495 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1498 2008-08-04 Javier Miranda <miranda@adacore.com>
1500 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1501 for N_Formal_Object_Declaration nodes. Adding kludge required by
1502 First_Formal to provide its functionality with access to functions.
1503 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1504 for anonymous access types returned by functions.
1506 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1507 conversion of null-excluding access types (required only once to force
1508 the generation of the required runtime check).
1510 * sem_type.adb (Covers): minor reformating
1512 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1513 with internally generated nodes. Avoid generating the error inside init
1516 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1517 (Resolve_Null): Generate the null-excluding check in case of assignment
1518 to a null-excluding object.
1519 (Valid_Conversion): Add missing support for anonymous access to
1522 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1523 anonymous access types whose designated type is an itype. This case
1524 occurs with anonymous access to protected subprograms types.
1525 (Analyze_Return_Type): Add missing support for anonymous access to
1526 protected subprogram.
1528 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1529 subprograms addition of missing check on matching convention. Required
1530 to properly handle access to protected subprogram types.
1532 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1533 null excluding access types.
1535 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1537 * sem_ch12.adb: Add comments
1539 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1540 access type and the allocator is not initialized, warn rather than
1543 2008-08-04 Robert Dewar <dewar@adacore.com>
1545 * exp_ch4.adb: Minor reformatting
1547 * exp_dist.adb: Minor reformatting
1549 * g-comlin.adb: Minor reformatting
1551 2008-08-04 Gary Dismukes <dismukes@adacore.com>
1553 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1554 target to the type of the aggregate in the case where the target object
1557 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1558 result type is class-wide and inherently limited, and the expression
1559 has a specific type, create a return object of the specific type, for
1560 more efficient handling of returns of build-in-place aggregates (avoids
1561 conversions of the class-wide return object to the specific type on
1562 component assignments).
1564 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1565 about a type mismatch for a class-wide function with a return object
1566 having a specific type when the object declaration doesn't come from
1567 source. Such an object can result from the expansion of a simple return.
1569 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1571 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1573 * gcc-interface/Makefile.in: Use 64bit-specific system files when
1574 compiling for 64bit windows.
1576 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
1578 * g-comlin.adb (Group_Switches): Preserve the switch order when
1579 grouping and allow switch grouping of switches with more than one
1580 character extension (e.g. gnatw.x).
1581 (Args_From_Expanded): Remove this now obsolete method.
1583 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1585 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1586 chain at once, to ensure that type is properly decorated for back-end,
1587 when allocator appears within a loop.
1589 2008-08-04 Kevin Pouget <pouget@adacore.com>
1591 * snames.h, snames.adb, snames.ads:
1592 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1594 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1595 Build_To_Any_Call and Build_TypeCode_Call procedures.
1597 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1599 * rtsfind.ads: Add corresponding names.
1601 * tbuild.adb: Update prefix restrictions to allow '_' character.
1603 2008-08-04 Doug Rupp <rupp@adacore.com>
1605 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1606 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1607 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1608 use it. Calculate pointer range overflow using 64bit types.
1610 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1612 * sem_ch3.adb (Access_Definition): A formal object declaration is a
1613 legal context for an anonymous access to subprogram.
1615 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1616 indirect call, report success to the caller to include possible
1619 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1621 of the extended return is an anonymous access_to_subprogram type.
1624 (Resolve_Call): Insert a dereference if the type of the subprogram is an
1625 access_to_subprogram and the context requires its return type, and a
1626 dereference has not been introduced previously.
1628 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1630 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1631 gnatcheck support in GPS.
1633 2008-08-04 Vincent Celier <celier@adacore.com>
1635 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1638 2008-08-04 Vincent Celier <celier@adacore.com>
1640 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1641 variable, but don't check the resulting value as it has no impact on
1645 (Generate_Processed_File): New Boolean flag, set to True in the compiler
1646 when switch -gnateG is used.
1649 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1650 when the source is modified by the preprocessor and there is no
1651 preprocessing errors.
1653 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1656 (Load_File): Output the result of preprocessing if the source text was
1659 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1661 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1663 * ug_words: Add VMS equivalent for -gnateG
1666 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1668 2008-08-04 Doug Rupp <rupp@adacore.com>
1670 * gcc-interface/utils2.c:
1671 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1672 in 32bit descriptor.
1674 2008-08-04 Robert Dewar <dewar@adacore.com>
1676 * par-ch10.adb: Minor reformatting
1678 * i-cobol.adb: Minor reformatting.
1680 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1682 * sem_ch3.adb (Access_Definition): Create an itype reference for an
1683 anonymous access return type of a regular function that is not a
1686 2008-08-04 Vincent Celier <celier@adacore.com>
1688 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1690 * snames.adb: New standard name Global_Compilation_Switches
1692 * snames.ads: New standard name Global_Compilation_Switches
1694 * make.adb: Correct spelling error in comment
1696 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1698 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1701 2008-08-04 Thomas Quinot <quinot@adacore.com>
1703 * sem_ch10.adb: Minor comment fix.
1705 2008-08-04 Robert Dewar <dewar@adacore.com>
1707 * restrict.adb: Improved messages for restriction warnings
1709 * restrict.ads: Improved messages for restriction messages
1711 * s-rident.ads (Profile_Name): Add No_Profile
1713 2008-08-04 Robert Dewar <dewar@adacore.com>
1715 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1717 2008-08-04 Robert Dewar <dewar@adacore.com>
1719 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1721 2008-08-04 Vincent Celier <celier@adacore.com>
1724 (Copy_Package_Declarations): When inheriting package Naming from a
1725 project being extended, do not inherit source exception names.
1727 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1729 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1730 list of declaration to find previous subprogram, do not go to the
1731 original node of a generic unit.
1733 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
1735 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1736 New case. Convert BOOLEAN_TYPE operation to the default integer type.
1738 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1740 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1741 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1742 and adjust for above renaming.
1743 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1744 gnu_expr_alt_type parameter. Convert the expression to it instead
1745 of changing its type in place.
1746 (build_function_stub): Adjust call to above function.
1748 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1750 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1751 code. Do not get full definition of deferred constants with address
1752 clause for a use. Do not ignore deferred constant definitions with
1753 address clause. Ignore constant definitions already marked with the
1755 <object>: Remove obsolete comment. For a deferred constant with
1756 address clause, get the initializer from the full view.
1757 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1758 Rework and remove obsolete comment.
1759 <N_Object_Declaration>: For a deferred constant with address clause,
1760 mark the full view with the error node.
1761 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1764 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1766 * rtsfind.ads: Add block IO versions of stream routines for Strings.
1768 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1769 sem_prag.adb, snames.adb, snames.ads, snames.h,
1770 par-prag.adb: Undo previous stream related changes.
1772 * s-rident.ads: Add new restriction No_Stream_Optimizations.
1774 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1775 Define enumeration type to designate different IO mechanisms.
1776 Enchance generic package Stream_Ops_Internal to include an
1777 implementation of Input and Output.
1779 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1780 No_Stream_Optimization is active, choose the default byte IO
1781 implementations of stream attributes for Strings.
1782 Otherwise use the corresponding block IO version.
1784 2008-08-01 Olivier Hainque <hainque@adacore.com>
1786 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1787 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1789 2008-08-01 Robert Dewar <dewar@adacore.com>
1791 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1792 convert plain identifier into defining identifier.
1794 2008-08-01 Robert Dewar <dewar@adacore.com>
1796 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1799 * lib-xref.adb: Add error defense.
1801 2008-08-01 Bob Duff <duff@adacore.com>
1803 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1805 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1807 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1808 correct accessibility levels. In the "when others" case, retrieve the
1809 access level of the Etype of Prev rather than Prev_Orig, because the
1810 original exression has not always been analyzed.
1812 2008-08-01 Robert Dewar <dewar@adacore.com>
1814 * prj-nmsc.adb: Minor reformatting
1816 * sem_ch4.adb: Minor reformatting
1817 Minor code reorganization
1819 * prj.ads: Minor reformatting
1821 * s-os_lib.adb: Minor reformatting
1823 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1826 * scans.ads: Minor reformatting.
1828 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1829 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1832 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1834 * sem_ch12.adb: Minor comment reformatting
1836 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1839 2008-08-01 Robert Dewar <dewar@adacore.com>
1841 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1844 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1846 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1847 converted is a real literal and the target type has static bounds,
1848 perform the conversion exactly to prevent floating-point anomalies on
1851 2008-08-01 Vincent Celier <celier@adacore.com>
1853 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1855 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1857 * prj.adb (Object_Exist_For): Use Object_Generated, not
1858 Objects_Generated that is removed and was never modified anyway.
1861 (Path_Syntax_Kind): New enumeration type
1862 (Language_Config): New component Path_Syntax, defaulted to Host.
1863 Components PIC_Option and Objects_Generated removed, as they are not
1866 * snames.adb: New standard name Path_Syntax
1868 * snames.ads: New standard name Path_Syntax
1870 2008-08-01 Vincent Celier <celier@adacore.com>
1873 (Adalib_Path): New variable to store the path of the adalib directory
1874 when procedure Specify_Adalib_Dir is called.
1875 (Lib_Directory): If Adalib_Path is not null, return its value
1876 (Specify_Adalib_Dir): New procedure
1878 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1880 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1883 (Check_Precondition_Postcondition): If not generating code, analyze the
1884 expression in a postcondition that appears in a subprogram body, so that
1885 it is properly decorated for ASIS use.
1887 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1889 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1890 Orig_Prev to Prev in the case where the actual is N_Function_Call or
1891 N_Identifier. This was interfering with other cases that are rewritten
1892 as N_Identifier, such as allocators, resulting in passing of the wrong
1893 accessibility level, and based on testing this code is apparently no
1894 longer needed at all.
1896 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1898 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1899 procedure call whose prefix
1900 is a parameterless function call that returns an access_to_procedure.
1902 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1904 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1905 for RTX. Adding a suffix that is incremented at each iteration.
1907 2008-08-01 Robert Dewar <dewar@adacore.com>
1909 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1912 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
1914 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1915 paths, which are authorized by Windows but can lead to errors when used
1918 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1920 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1921 a pending instantiation for the body of a subprogram that is to be
1925 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1927 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1928 create a pending instance for its body, so that calls to the subprogram
1929 can be inlined by the back-end.
1931 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1933 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1936 2008-08-01 Robert Dewar <dewar@adacore.com>
1938 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1940 2008-08-01 Doug Rupp <rupp@adacore.com>
1942 * gnat_rm.texi: Document new mechanism Short_Descriptor.
1944 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1947 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1948 mechanism and Short_Descriptor mechanism values.
1950 * snames.adb (preset_names): Add short_descriptor entry.
1952 * snames.ads: Add Name_Short_Descriptor.
1954 * types.h: Add new By_Short_Descriptor mechanism values.
1956 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1957 mechanism and Short_Descriptor mechanism values.
1959 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1961 (Descriptor_Codes): Modify range for new mechanism values.
1963 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1966 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1967 (gnat_to_gnu_param): Handle By_Short_Descriptor.
1969 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1970 (build_vms_descriptor32): New prototype.
1971 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1973 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1974 argument in call fill_vms_descriptor.
1976 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1977 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1978 (build_vms_descriptor): Renamed from build_vms_descriptor64.
1979 (convert_vms_descriptor32): New function.
1980 (convert_vms_descriptor64): New function.
1981 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1984 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1987 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1989 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1990 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1993 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1995 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1996 current directory so only fully qualified names are allowed.
1998 2008-08-01 Robert Dewar <dewar@adacore.com>
2001 Minor editing, remove uncomfortable use of semicolon
2003 * s-ststop.adb: Add some ??? comments
2005 * sem_ch10.adb: Minor reformatting
2008 Minor comment fixes, some pragmas were not properly
2009 categorized in the comments, documentation change only
2011 * xref_lib.adb: Minor reformatting
2013 * sinput.adb: Minor reformatting
2015 * gnatchop.adb: Minor reformatting
2017 * sem_util.ads: Minor reformatting.
2019 * opt.ads: Minor documentation fix
2021 * scng.adb: Minor reformatting
2023 * prj-part.adb: Update comments
2025 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2027 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
2028 tagged synchronized type, use corresponding record type.
2030 2008-08-01 Doug Rupp <rupp@adacore.com>
2032 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
2033 dummy transfer address for debugging.
2035 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
2037 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
2039 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
2041 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2042 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2044 2008-07-31 Pascal Obry <obry@adacore.com>
2046 * prj-nmsc.adb: Keep Object and Exec directory casing.
2048 2008-07-31 Jose Ruiz <ruiz@adacore.com>
2050 * system-rtx-rtss.ads
2051 Change the default stack size. It is important to set the commit part.
2054 (Initialize): Get the clock resolution.
2055 (RT_Resolution): Return the clock resolution that is indicated by the
2058 * s-parame-vxworks.adb
2059 Document that this body is used for RTX in RTSS (kernel) mode.
2061 * gcc-interface/Makefile.in
2062 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2063 s-parame-vxworks.adb body in order to have reasonable stack sizes in
2064 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2065 cannot ask for too big values.
2067 2008-07-31 Robert Dewar <dewar@adacore.com>
2069 * exp_aggr.adb: Minor reformatting
2071 * makeutl.adb: Minor reformatting
2073 * prj-env.adb: Minor reformatting
2075 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2077 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2078 tagged type is completed by a concurrent type.
2080 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2083 (Resolve_Record_Aggregate): Bypass error that a type without
2084 components must have a "null record" aggregate when compiling for Ada
2085 2005, since it's legal to give an aggregate of form (others => <>)
2088 2008-07-31 Javier Miranda <miranda@adacore.com>
2090 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2091 handle synchronized types. Required to handle well the object.operation
2092 notation applied to synchronized types.
2094 2008-07-31 Quentin Ochem <ochem@adacore.com>
2096 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2097 anymore - just used internally.
2098 Added handling of very small tasks - when the theoretical size is
2099 already full at the point of the call.
2100 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2101 not need to be added to the result.
2103 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2105 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2106 corresponding spec is a primitive wrapper. Update comment.
2108 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2110 * bindgen.adb Comment reformatting. Update the list of run-time globals.
2111 (Gen_Adainit_Ada): Add the declaration, import and value set for
2112 configuration flag Canonical_Streams.
2113 (Gen_Adainit_C): Add the declaration and initial value of external
2114 symbol __gl_canonical_streams.
2116 * init.c: Update the list of global values computed by the binder.
2118 * opt.ads: Add flag Canonical_Streams.
2120 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2121 semantically handled pragmas.
2123 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2124 (Analyze_Pragma): Add case for pragma Canonical_Streams.
2126 * snames.adb: Add character value for name Canonical_Streams.
2129 Add Name_Canonical_Streams to the list of configuration pragmas.
2130 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2132 * snames.h: Add a definition for Pragma_Canonical_Streams.
2135 Add a flag and import to seize the value of external symbol
2136 __gl_canonical_streams. Update comment and initial value of constant
2139 * gnat_rm.texi: Add section of pragma Canonical_Streams.
2142 Add pragma Canonical_Streams to the list of configuration pragmas.
2144 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2146 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2147 has the form A.B.C and B is a unit renaming, analyze its compilation
2148 unit and add a with_clause on A.b to the context.
2150 2008-07-31 Vincent Celier <celier@adacore.com>
2152 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2153 return the empty string, instead of raising Constraint_Error.
2155 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2157 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2159 * checks.adb (Apply_Accessibility_Check): Insert the check on
2163 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2164 to new parameter Insert_Node on call to Apply_Accessibility_Check.
2165 Necessary to distinguish the insertion node because the dereferenced
2166 formal may come from a rename, but the check must be inserted in
2167 front of the attribute.
2170 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2171 call to Apply_Accessibility_Check.
2172 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2173 on call to Apply_Accessibility_Check.
2176 2008-07-31 Javier Miranda <miranda@adacore.com>
2178 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2179 types when the candidate type is a synchronized type.
2181 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2182 types, and complete management of synchronized types adding missing
2183 code to handle formal that is a synchronized type.
2185 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2186 are not available and cause the compiler to blowup. Found compiling
2187 test with switch -gnatc
2189 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2190 Has_Correct_Formal_Mode plus code cleanup.
2192 2008-07-31 Bob Duff <duff@adacore.com>
2194 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2195 recognized as two end-of-lines, but it should be just one.
2197 2008-07-31 Thomas Quinot <quinot@adacore.com>
2199 * exp_ch9.adb: Minor reformatting
2201 * tbuild.ads: Fix several occurrences of incorrectly referring to
2202 Name_Find as Find_Name.
2204 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2206 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2207 and the context is an object declaration with non-static bounds, treat
2208 the aggregate as non-static.
2210 2008-07-31 Vincent Celier <celier@adacore.com>
2212 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2213 Move back spec of Parse_Single_Project to body, as it is not called
2214 outside of package Prj.Part.
2215 (Project_Data): Remove components Linker_Name, Linker_Path and
2216 Minimum_Linker_Options as they are no longer set.
2217 Remove function There_Are_Ada_Sources from package Prj and move code
2218 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2220 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2222 * mlib-utl.ads: Fix typo.
2224 2008-07-31 Robert Dewar <dewar@adacore.com>
2226 * sem_ch12.adb: Minor reformatting
2228 2008-07-31 Sergey Rybin <rybin@adacore.com>
2230 * gnat_ugn.texi: Change the description of the
2231 Overly_Nested_Control_Structures: now the rule always requires a
2232 positive parameter for '+R' option
2234 2008-07-31 Thomas Quinot <quinot@adacore.com>
2236 * g-pehage.adb: Minor reformatting
2238 2008-07-31 Pascal Obry <obry@adacore.com>
2240 * s-finimp.ads: Minor reformatting.
2242 2008-07-31 Vincent Celier <celier@adacore.com>
2244 * s-regexp.ads: Minor comment fix
2246 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2248 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2249 so that we can compile this file successfully with -gnatc.
2251 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2253 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2254 of the type when looking for stream subprograms for type String,
2255 Wide_String and Wide_Wide_String.
2257 * s-ststop.adb: Change the initialization expression of constant
2260 2008-07-31 Geert Bosch <bosch@adacore.com>
2263 New file implementing __gnat_mulv64 signed integer multiplication with
2266 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2268 * gcc-interface/gigi.h:
2269 (standard_types): Add ADT_mulv64_decl
2270 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2272 * gcc-interface/utils.c:
2273 (init_gigi_decls): Add initialization of mulv64_decl
2275 * gcc-interface/trans.c:
2276 (build_unary_op_trapv): New function
2277 (build_binary_op_trapv): New function
2278 (gnat_to_gnu): Use the above functions instead of
2279 build_{unary,binary}_op
2281 * gcc-interface/Makefile.in
2282 (LIBGNAT_SRCS): Add arit64.c
2283 (LIBGNAT_OBJS): Add arit64.o
2285 2008-07-31 Vincent Celier <celier@adacore.com>
2287 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2288 Linker'Default_Switches are declared. Warn if they are declared.
2290 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2292 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2293 Insert_Actions to place the pointer declaration in the code, rather
2294 than Insert_Before_And_Analyze, so that insertions of temporaries are
2295 kept in the proper order when transient scopes are present.
2298 2008-07-31 Robert Dewar <dewar@adacore.com>
2300 * einfo.adb (Spec_PPC): Now defined for generic subprograms
2302 * einfo.ads (Spec_PPC): Now defined for generic subprograms
2304 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2307 2008-07-31 Vincent Celier <celier@adacore.com>
2309 * s-os_lib.adb: Minor comment fix
2311 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2313 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2314 transfer pre/postconditions from generic copy to original tree, so that
2315 they will appear in each instance.
2316 (Process_PPCs): Do not transform postconditions into a procedure in a
2317 generic context, to prevent double expansion of check pragmas.
2319 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2320 can be the renaming of the
2321 current instance, so check validity of the name accordingly.
2323 2008-07-31 Robert Dewar <dewar@adacore.com>
2325 * mlib-utl.ads: Minor reformatting
2327 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2329 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2330 from context. This attribute must be usable in Ada95 mode.
2331 The attribute can appear in the body of a function marked
2332 Inline_Always, but in this case the postocondition is not enforced.
2334 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2335 of an inlined call pre- and postconditions are legal
2337 2008-07-31 Vincent Celier <celier@adacore.com>
2339 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2340 were for gprmake only
2342 2008-07-31 Robert Dewar <dewar@adacore.com>
2344 * gnat_ugn.texi: Update -gnatN documentation.
2346 * gnat_rm.texi: Add note about pre/postcondition
2347 pragmas not checked in conjunction with front-end inlining.
2349 2008-07-31 Robert Dewar <dewar@adacore.com>
2351 * g-pehage.adb, g-pehage.ads: Minor reformatting
2353 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2355 * mlib-utl.ads, prj-makr.ads: Add comments.
2357 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2359 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2360 [WINDOWS]: Add s-winext.o.
2362 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2365 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2366 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2367 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2368 Set precision to 1 for subtype of BOOLEAN_TYPE.
2369 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2370 (make_type_from_size): Deal with BOOLEAN_TYPE.
2371 * gcc-interface/misc.c (gnat_print_type): Likewise.
2372 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2373 Set boolean_type_node as its translation in the table, as well
2374 as boolean_false_node for False and boolean_true_node for True.
2375 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2376 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2377 (create_param_decl): Deal with BOOLEAN_TYPE.
2378 (build_vms_descriptor): Likewise.
2379 (build_vms_descriptor64): Likewise.
2380 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2382 2008-07-30 Robert Dewar <dewar@adacore.com>
2384 * exp_ch9.adb: Minor reformatting
2386 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2387 if no primitive operation is found.
2389 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2391 * sem_ch8.adb: Minor reformatting
2393 2008-07-30 Laurent Pautet <pautet@adacore.com>
2396 Remove a limitation on the length of the words handled by the minimal
2397 perfect hash function generator.
2400 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2403 2008-07-30 Robert Dewar <dewar@adacore.com>
2405 * gnatlink.adb: Minor reformatting
2407 2008-07-30 Thomas Quinot <quinot@adacore.com>
2409 * rtsfind.adb (Check_RPC): Check version consistency even when not
2410 generating RCI stubs. Provide more detailed error message in case of
2413 2008-07-30 Ed Schonberg <schonberg@adacore.com>
2415 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2416 as a actual in an instance, check for a missing attribute to prevent
2417 program_error on an illegal program.
2419 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2420 error if primitive is not found, so that exception can be handled
2421 elsewhere on illegal programs.
2423 2008-07-30 Robert Dewar <dewar@adacore.com>
2425 * uintp.adb (UI_GCD): Fix potential overflow
2427 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
2429 * einfo.adb: Flag245 is now used.
2430 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2431 check to include functions.
2432 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2433 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2435 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2436 to the list of displayed flags.
2438 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2439 Wrapped_Entity. These two flags are now present in functions.
2440 New flag Is_Private_Primitive.
2441 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2444 (Build_Wrapper_Bodies): New subprogram.
2445 (Build_Wrapper_Body): The spec and body have been moved to in
2446 Build_Wrapper_ Bodies. Code cleanup.
2447 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2448 Wrappers are now generated for primitives declared between the private
2449 and full view of a concurrent type that implements an interface.
2450 (Build_Wrapper_Specs): New subprogram.
2451 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2452 creation mechanism with a call to Build_Wrapper_Bodies.
2453 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2454 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2455 (Expand_N_Task_Body): Replace the wrapper body creation
2456 mechanism with a call to Build_Wrapper_Bodies.
2457 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2458 creation mechanism with a call to Build_Wrapper_Specs.
2459 (Is_Private_Primitive_Subprogram): New subprogram.
2460 (Overriding_Possible): Code cleanup.
2461 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2463 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2465 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2466 (Process_Full_View): Build wrapper specs for all primitives
2467 that belong to a private view completed by a concurrent type
2468 implementing an interface.
2470 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2472 concurrent type with a private view that implements an interface, try to
2473 find the proper spec.
2474 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2475 primitive if the type of its first parameter is a non-generic tagged
2477 (Analyze_Subprogram_Specification): Code reformatting.
2478 (Disambiguate_Spec): New routine.
2479 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2480 (Is_Private_Concurrent_Primitive): New routine.
2483 (Find_Corresponding_Spec): Add a formal to control the output of errors.
2485 2008-07-30 Doug Rupp <rupp@adacore.com>
2487 * gigi.h (build_vms_descriptor64): New function prototype.
2488 (fill_vms_descriptor): Modified function prototype.
2490 * utils.c (build_vms_descriptor64): New function.
2492 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2494 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2497 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2498 64bit and 32bit descriptor and save the 64bit version as an alternate
2499 TREE_TYPE in the parameter.
2500 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2503 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2505 2008-07-30 Robert Dewar <dewar@adacore.com>
2507 * make.adb: Minor reformatting
2509 * mlib-utl.adb: Minor reformatting
2511 * osint.ads: Minor reformatting
2513 2008-07-30 Jose Ruiz <ruiz@adacore.com>
2516 (__gnat_file_exists): Do not use __gnat_stat for RTX.
2517 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2518 avoid the use of this symbol from libgcc.a in RTX kernel mode.
2521 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2522 the function RtPrintf for console output.
2524 * argv.c Do not use the environ variable for RTX.
2526 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2527 been moved before the call to Osint.Add_Default_Search_Dirs in order
2528 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2529 from the appropriate run time.
2532 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2533 target is a RTSS module for RTX.
2535 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2536 RTX_RTSS_Kernel_Module
2537 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2539 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2540 exception handling mechanism for Windows and RTX in Win32 mode, but
2541 not for RTX in kernel mode (RTSS).
2542 (LIBGNAT_SRCS): Remove ada.h
2544 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
2546 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2547 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2548 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2549 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2550 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2551 ALL_ADA_CFLAGS): Remove.
2552 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2553 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2554 (GCC_CFLAGS): Remove X_CFLAGS.
2555 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2556 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2557 (ADA_CFLAGS): Substitute.
2559 2008-07-30 Laurent Guerby <laurent@guerby.net>
2562 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2563 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2564 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2565 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2566 by stamp-gnatlib2-rts.
2568 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2570 PR documentation/15479
2571 * gnat-style.texi: Remove AdaCore copyright statement and GPL
2572 statement for GNAT. Add @copying stanza, use it. Update to
2573 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
2574 title as Front-Cover Text.
2575 * gnat_rm.texi: Likewise.
2576 * gnat_ugn.texi: Likewise.
2578 2008-07-29 Jan Hubicka <jh@suse.cz>
2580 * trans.c (process_inlined_subprograms): Remove tree_really_inline
2583 2008-07-29 Arnaud Charlet <charlet@adacore.com>
2585 * gcc-interface: New directory.
2587 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2588 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2589 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2590 to gcc-interface subdirectory.
2592 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2594 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2596 2008-07-28 Jan Hubicka <jh@suse.cz>
2598 * misc.c (gnat_post_options): Do not set flag_no_inline.
2600 2008-07-28 Richard Guenther <rguenther@suse.de>
2602 Merge from gimple-tuples-branch.
2604 2008-07-22 Olivier Hainque <hainque@adacore.com>
2606 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2607 this is called for an elab proc to be discarded if empty.
2608 * utils.c (end_subprog_body): Honor ELAB_P.
2609 (build_function_stub): Adjust call to end_subprog_body.
2610 * trans.c (Subprogram_Body_to_gnu): Likewise.
2611 (gigi): Reorganize processing of elab procs to prevent
2612 gimplifying twice, using the new end_subprog_body argument.
2614 2008-07-19 Richard Guenther <rguenther@suse.de>
2616 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2617 (utils.o): Likewise.
2618 * trans.c: Include tree-iterator.h.
2619 (gnat_gimplify_expr): Adjust prototype. Fix typo.
2620 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2621 (set_expr_location_from_node): Likewise.
2623 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2625 * utils.c: Include tree-iterator.h.
2626 * gigi.h (gnat_gimplify_expr): Adjust prototype.
2628 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2630 * trans.c: Include gimple.h instead of tree-gimple.h.
2633 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
2635 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2637 2008-07-25 Jan Hubicka <jh@suse.cz>
2639 * utils.c (end_subprog_body): Remove inline trees check.
2640 * misc.c (gnat_post_options): Do not set flag_inline_trees.
2642 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2644 * raise-gcc.c: Move tsystem.h before tm.h.
2646 2008-07-20 Arnaud Charlet <charlet@adacore.com>
2648 * gnathtml.pl: New file.
2650 2008-07-19 Olivier Hainque <hainque@adacore.com>
2652 * targtyps.c (get_target_default_allocator_alignment): Use
2653 MALLOC_ABI_ALIGNMENT.
2655 2008-07-17 Olivier Hainque <hainque@adacore.com>
2657 * adaint.c (__MINGW32__ section): Include ctype.h and define
2658 a fallback ISALPHA if IN_RTS.
2659 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2661 2008-07-17 Olivier Hainque <hainque@adacore.com>
2663 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2664 argument, to apply to references in addition to definitions. Prevent
2665 setting TREE_STATIC on externals.
2666 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2668 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2670 PR documentation/15479
2671 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2672 Replace backets around optional parameters with @ovar
2673 where possible, use @r{[}, @r{]} otherwise.
2674 Replace some @r, @i, and @emph with @var where appropriate.
2676 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
2678 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2680 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2682 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2683 -Wc++-compat warnings.
2684 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2685 __gnat_locate_exec_on_path): Likewise.
2686 * decl.c (annotate_value): Likewise.
2687 * misc.c (gnat_handle_option): Likewise.
2688 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2689 post_error_ne_tree): Likewise.
2691 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
2693 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2694 version of its type, attempt to first convert its elements.
2696 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
2698 * Makefile.in: Fix *86 kfreebsd target specific pairs.
2700 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
2702 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2704 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
2706 * utils2.c (known_alignment): Derive the alignment from pointed-to
2707 types only if it is otherwise unknown.
2708 <INTEGER_CST>: Tidy.
2709 <MULT_EXPR>: Likewise.
2710 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2713 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2716 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2718 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2720 * gnat_rm.texi (Implementation Defined Characteristics)
2721 (Standard Library Routines): Use @smallexample for indented
2722 text. Drop Indentation outside examples.
2723 * gnat_ugn.texi: Likewise.
2725 2008-06-13 Olivier Hainque <hainque@adacore.com>
2727 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2729 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2730 realignment with force_align_arg_pointer attribute on foreign
2731 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2733 2008-06-13 Olivier Hainque <hainque@adacore.com>
2735 * utils.c (rest_of_record_type_compilation): When computing
2736 encodings for the components of a variable size type, early
2737 strip conversions on the current position expression to make
2738 sure it's shape is visible. Use remove_conversions for this
2741 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
2743 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2744 constrained subtype of a discriminated type, discard the fields that
2745 are beyond its limits according to its size.
2747 2008-06-10 Olivier Hainque <hainque@adacore.com>
2749 * utils.c (create_subprog_decl): If this is for the 'main' entry
2750 point according to the asm name, redirect main_identifier_node.
2752 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
2754 * decl.c (components_to_record): Adjust the packedness for the
2755 qualified union as well.
2757 2008-06-09 Arnaud Charlet <charlet@adacore.com>
2759 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2762 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
2764 * sem_res.adb (Large_Storage_Type): A type is large if it
2765 requires as many bits as Positive to store its values and its
2766 bounds are known at compile time.
2767 * sem_ch13.adb (Minimum_Size): Note that this function returns
2768 0 if the size is not known at compile time.
2770 2008-06-06 Nicolas Setton <setton@adacore.com>
2771 Olivier Hainque <hainque@adacore.com>
2773 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2774 attribute, parallel descriptive type attached to another
2775 type for debug info generation purposes.
2776 * utils.c (add_parallel_type): New function, register
2777 parallel type to be attached to a type.
2778 (get_parallel_type): New function, fetch a registered
2779 parallel type, if any.
2780 (rest_of_record_type_compilation): Register the parallel
2781 type we make for variable size records.
2782 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2783 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2784 parallel debug types we make.
2785 * trans.c (extract_encoding, decode_name): New functions.
2786 (gigi): If the DWARF attribute extensions are available, setup
2788 * lang.opt: Register language specific processing request
2790 * misc.c (gnat_dwarf_extensions): New global variable. How much
2791 do we want of our DWARF extensions. 0 by default.
2792 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2793 (gnat_post_options): Map gnat_dwarf_extensions to the
2794 commonuse_gnu_debug_info_extensions for later processing.
2796 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
2798 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2800 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2802 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2803 * gnat_ugn.texi (Style Checking)
2804 (Adding the Results of Compiler Checks to gnatcheck Output)
2805 (Example of Binder Output File): Fix typos.
2806 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2807 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2808 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2809 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2810 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2811 sinfo.ads, utils.c: Fix typos in comments.
2812 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2814 2008-05-29 Thomas Quinot <quinot@adacore.com>
2816 * sem_eval.adb: Minor reformatting
2818 2008-05-29 Ed Schonberg <schonberg@adacore.com>
2820 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2821 is abstract, do not apply abstractness check on subprogram if this is
2822 a renaming declaration.
2824 2008-05-29 Arnaud Charlet <charlet@adacore.com>
2827 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2828 allow recognition of program suffix in addition to prefix.
2830 * gnatchop.adb (Locate_Executable): Add support for prefix.
2832 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2833 mlib-utl.adb: Adjust calls to Program_Name.
2835 2008-05-29 Robert Dewar <dewar@adacore.com>
2837 * sem_ch3.adb: Minor reformatting
2838 * sem_prag.adb: Minor reformatting
2839 * sem_res.adb: Minor reformatting
2840 * sinput-p.ads: Minor reformatting
2842 2008-05-29 Javier Miranda <miranda@adacore.com>
2845 (Abstract_Interface_List): Add missing support for full type-declaration
2846 associated with synchronized types.
2848 2008-05-29 Robert Dewar <dewar@adacore.com>
2850 * sem_eval.adb (Is_Same_Value): Take care of several more cases
2852 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2854 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2855 access type, wrap the expression in a conversion to force an
2856 accessibility check.
2858 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2859 accessibility checks even when expansion is disabled in order to
2860 generate messages in the presence of previous errors or in
2861 semantics-only mode.
2863 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
2865 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2866 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2868 2008-05-28 Vincent Celier <celier@adacore.com>
2871 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2872 preprocessing expressions
2874 2008-05-28 Vincent Celier <celier@adacore.com>
2876 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2879 * sinput-p.ads: Minor comment update and reformatting
2881 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2883 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2884 type has a deeper level than any master only when it is the type of an
2887 2008-05-28 Javier Miranda <miranda@adacore.com>
2889 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2891 2008-05-28 Javier Miranda <miranda@adacore.com>
2893 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2894 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2895 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2896 Add code that was previously located in
2897 Find_Overridden_Synchronized_Primitive because it is only used here.
2899 2008-05-28 Sergey Rybin <rybin@adacore.com>
2901 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2902 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2904 2008-05-28 Robert Dewar <dewar@adacore.com>
2907 Add missing restrictions, and properly label all GNAT defined ones
2910 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2911 Add entry for Ada.Task_Termination.Set_Specific_Handler
2912 Add entry for Ada.Task_Termination.Specific_Handler
2915 Add missing restrictions and properly mark all gnat defined ones
2918 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2921 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2923 * gnat_rm.texi: Add missing restrictions, and properly label all
2926 2008-05-28 Robert Dewar <dewar@adacore.com>
2929 (Check_Restriction): violation of restriction No_Finalization is
2930 treated as a serious error to stop expansion
2932 2008-05-28 Robert Dewar <dewar@adacore.com>
2934 * exp_util.adb: Minor reformatting
2935 * exp_util.ads: Minor reformatting.
2937 2008-05-28 Arnaud Charlet <charlet@adacore.com>
2939 * Make-lang.in: Remove gprmake.
2941 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2943 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2945 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2946 improper progenitor names, and avoid cascaded errors.
2948 2008-05-28 Robert Dewar <dewar@adacore.com>
2950 * gnat_rm.texi: Add note on Old giving warning when applied to constant
2952 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2955 2008-05-28 Robert Dewar <dewar@adacore.com>
2957 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2960 2008-05-28 Robert Dewar <dewar@adacore.com>
2963 (Expand_Simple_Function_Return): Copy unaligned result into temporary
2965 2008-05-28 Javier Miranda <miranda@adacore.com>
2967 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2968 for user-defined predefined primitives.
2970 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2971 (Find_Overridden_Synchronized_Primitive): Ditto.
2973 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2975 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2977 * a-ststio.adb, s-direio.adb:
2978 Further code clean up of previous change.
2981 2008-05-27 Vincent Celier <celier@adacore.com>
2983 * prj-nmsc.adb: Minor reformatting
2985 2008-05-27 Bob Duff <duff@adacore.com>
2987 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2988 untagged private type with a tagged full type, where the full type has
2989 a self reference, create the corresponding class-wide type early, in
2990 case the self reference is "access T'Class".
2992 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2994 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2995 tasks and context is an object declaration. create master entity before
2998 2008-05-27 Robert Dewar <dewar@adacore.com>
3000 * mlib-prj.adb: Minor reformatting
3002 * prj-part.adb: Minor reformatting
3004 * prj.ads: Minor reformatting
3006 * exp_ch3.adb: Minor reformatting.
3008 * sem_ch3.ads: Minor reformatting
3010 * sem_eval.adb: Minor reformatting
3012 2008-05-27 Vincent Celier <celier@adacore.com>
3015 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
3017 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3019 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
3020 tasks, create an activation chain now, before the expansion into
3021 assignments and build-in-place calls that require the presence of an
3023 (Backend_Processing_Possible): If the component type is inherently
3024 limited, the aggregate must be expanded into individual built-in-place
3027 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
3028 determine whether an allocation extra parameter must be built, to
3029 handle case of a private type whose full type is a discriminated type
3032 2008-05-27 Bob Duff <duff@adacore.com>
3035 Document the new behavior regarding trampolines.
3037 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3039 * a-direio.adb, a-sequio.adb: Replace address clause by
3040 unrestricted_access, simpler and compatible with .NET.
3042 2008-05-27 Vincent Celier <celier@adacore.com>
3045 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3046 a project file, so that symbolic links are not resolved.
3048 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3050 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3051 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3052 portable across GNAT targets, since this kind of address clause is not
3053 supported by VM back-ends (.NET/JGNAT).
3055 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3057 * bindgen.adb: Update comments.
3059 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3061 2008-05-27 Vincent Celier <celier@adacore.com>
3063 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3064 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3065 mlib-tgt.adb, prj-env.adb, prj-env.ads:
3066 (Path_Information): New record type
3067 Use component of type Path_Information when there are two paths, one in
3068 canonical format and one in display format.
3069 Update the project manager to these new components.
3071 2008-05-27 Robert Dewar <dewar@adacore.com>
3073 * makeutl.adb: Minor reformatting
3074 * prj-nmsc.adb: Minor reformatting
3075 * s-stausa.adb: Minor reformatting
3076 * s-stausa.ads: Minor reformatting
3077 * sem_ch6.adb: Minor reformatting
3079 2008-05-27 Thomas Quinot <quinot@adacore.com>
3081 * sem_res.adb: Minor comment fixes
3083 2008-05-27 Thomas Quinot <quinot@adacore.com>
3085 * makeutl.adb: Minor code reorganization
3087 * exp_aggr.adb: Add ??? comment
3090 * exp_ch6.adb: Minor reformatting
3092 2008-05-27 Quentin Ochem <ochem@adacore.com>
3094 * s-stausa.adb (Initialize): Updated result initialization, and
3095 initialization of environment stack.
3096 (Fill_Stack): Improved computation of the pattern zone, taking into
3097 account already filled at the calling point.
3098 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3099 Measure and Overflow_Guard.
3100 (Report_Result): Fixed computation of the result using new fields of
3103 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3104 params by more explicit Stack_Size / Max_Pattern_Size params.
3105 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3106 Added Stack_Used_When_Filling field.
3107 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3108 Min_Measure and Max_Measure fields.
3110 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3112 2008-05-27 Vincent Celier <celier@adacore.com>
3115 (Check_File): Make sure that a unit that replaces the same unit in a
3116 project being extended is properly processed.
3118 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3121 (Get_Discr_Value): Remove obsolete code that failed to find the value
3122 of a discriminant for an inherited task component appearing in a type
3125 2008-05-27 Thomas Quinot <quinot@adacore.com>
3127 (System.File_IO.{Close, Delete, Reset}):
3128 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3130 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3131 Pass File parameter by reference.
3133 2008-05-27 Vincent Celier <celier@adacore.com>
3136 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3137 sources of the same project that have the same object file name.
3138 (Find_Explicit_Sources): Always remove a source exception that was not
3141 2008-05-27 Thomas Quinot <quinot@adacore.com>
3143 * sem_ch3.adb: Minor reformatting
3145 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3148 (Is_Interface_Conformant): Handle properly a primitive operation that
3149 overrides an interface function with a controlling access result.
3150 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3151 inherited and overriding operations, omit as well the conformance check
3152 on result types, to prevent spurious errors.
3154 2008-05-27 Vincent Celier <celier@adacore.com>
3156 * makeutl.ads, makeutl.adb:
3157 (Set_Location): New procedure
3158 (Get_Location): New function
3159 (Update_Main): New procedure
3161 2008-05-27 Vincent Celier <celier@adacore.com>
3164 (Check_Library): Allow standard project to be extended as a static
3166 (Get_Mains): Do not inherit attribute Main in an extending library
3169 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3171 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3172 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3173 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3174 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3175 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3176 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3177 * system-mingw.ads (Always_Compatible_Rep): Likewise.
3178 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3179 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3180 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3182 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3184 * sem_attr.adb: add guard to previous patch.
3186 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3188 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3189 a synchronized tagged type, do not attempt to build dispatch table for
3190 full view. The table is built for the corresponding record type, which
3191 has its own declaration.
3193 2008-05-27 Gary Dismukes <dismukes@adacore.com>
3195 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3196 to the known type entity E, rather than setting it to Any_Type. Fixes
3197 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3198 for objects whose type had an illegal constraint.
3200 2008-05-27 Vincent Celier <celier@adacore.com>
3203 Add succinct documentation for attribute Excluded_Source_List_File
3205 2008-05-27 Vincent Celier <celier@adacore.com>
3207 * prj-attr.adb: Add new project level attribute Map_File_Option
3209 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3211 * prj.ads: Minor reformatting and comment update
3212 (Project_Configuration): New component Map_File_Option
3214 * snames.adb: New standard name Map_File_Option
3216 * snames.ads: New standard name Map_File_Option
3218 2008-05-27 Vincent Celier <celier@adacore.com>
3220 * xsnames.adb: Remove unused variable Oname
3222 2008-05-27 Doug Rupp <rupp@adacore.com>
3225 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3228 (Expand_Vax_Foreign_Return): Fix comments.
3230 2008-05-27 Thomas Quinot <quinot@adacore.com>
3232 * exp_dist.adb: Minor reformating
3234 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3236 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3237 No_Default_Initialization, which is now delayed until the freeze point
3238 of the object. Add a comment about deferral of the check.
3240 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3241 on objects is moved here.
3243 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3245 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3246 (Compare_Array_S16): Adjust for above change.
3247 * s-casi32.adb (Uword): Likewise.
3248 (Compare_Array_S32): Likewise.
3249 * s-casi64.adb (Uword): Likewise.
3250 (Compare_Array_S64): Likewise.
3251 * s-caun16.adb (Uhalf): Likewise.
3252 (Compare_Array_U16): Likewise.
3253 * s-caun32.adb (Uword): Likewise.
3254 (Compare_Array_U32): Likewise.
3255 * s-caun64.adb (Uword): Likewise.
3256 (Compare_Array_U64): Likewise.
3258 2008-05-26 Robert Dewar <dewar@adacore.com>
3260 * exp_ch6.adb: Add ??? comment for previous change
3262 * exp_vfpt.adb: Minor reformatting
3264 * exp_vfpt.ads: Add ??? comment for last change
3266 * sem_attr.adb: Add some ??? comments for previous change
3268 * s-vaflop.ads: Add comments for previous change
3270 2008-05-26 Doug Rupp <rupp@adacore.com>
3272 * s-vaflop-vms-alpha.adb:
3273 Remove System.IO use clause, to prevent spurious ambiguities when
3274 package is access through rtsfind.
3276 2008-05-26 Sergey Rybin <rybin@adacore.com>
3278 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3281 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3284 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3285 converted to S (A)'address only if A .. B is known to be a non-null
3288 2008-05-26 Doug Rupp <rupp@adacore.com>
3291 (Return_D, Return_F, Return_G): New functions.
3294 (Return_D, Return_F, Return_G): New functions.
3297 (Expand_Vax_Foreign_Return): New procedure
3300 (Expand_Vax_Foreign_Return): New procedure
3303 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3304 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3308 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3310 * s-vaflop-vms-alpha.adb:
3311 (Return_D, Return_F, Return_G): New functions.
3313 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3315 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3316 init proc entity when there is actual default initialization associated
3317 with the component type, to avoid spurious errors on objects of scalar
3318 array types that are marked Is_Public when No_Default_Initialization
3321 2008-05-26 Thomas Quinot <quinot@adacore.com>
3323 * rtsfind.ads, rtsfind.adb:
3324 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3325 (Check_RPC): Support per-PCS-kind API versioning.
3327 exp_dist.ads, exp_dist.adb:
3328 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3329 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3330 library function Get_RACW.
3331 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3332 library function Get_Reference.
3333 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3334 through an intermediate Any.
3335 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3336 going through an intermediate Any.
3338 * sem_dist.adb: Minor reformatting.
3340 2008-05-26 Javier Miranda <miranda@adacore.com>
3342 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3343 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3344 (Is_Internal): Adding documentation on internal entities that have
3345 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3347 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3348 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3349 Added assertion to force entities with this attribute to have
3350 attribute Is_Internal set to True.
3351 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3353 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3354 renamed as Derive_Progenitor_Subprograms. In addition, its code is
3355 a new implementation.
3356 (Add_Interface_Tag_Components): Remove special management of
3357 synchronized interfaces.
3358 (Analyze_Interface_Declaration): Minor reformating
3359 (Build_Derived_Record_Type): Minor reformating
3360 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3361 predefined primitive inherited from interface type because the body of
3362 internally generated predefined primitives of tagged types are generated
3363 later by Freeze_Type
3364 (Derive_Subprogram): Avoid generating an internal name if the parent
3365 subprogram overrides an interface primitive.
3366 (Derive_Subprograms): New implementation that keeps separate the
3367 management of tagged types not implementing interfaces, from tagged
3368 types that implement interfaces.
3369 (Is_Progenitor): New implementation.
3370 (Process_Full_View): Add documentation
3371 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3372 by call to Derive_Progenitor_Subprograms.
3374 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3375 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3376 Skip_Controlling_Formals.
3378 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3379 (Check_Conventions): New implementation. Remove local subprogram
3380 Skip_Check. Remove formal Search_From of routine Check_Convention.
3381 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3382 Skip_Controlling_Formals.
3383 (New_Overloaded_Entity): Enable addition of predefined dispatching
3387 (Find_Primitive_Covering_Interface): New subprogram.
3389 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3390 the task body procedure as a primitive of the corresponding tagged
3392 (Check_Operation_From_Private_Type): Avoid adding twice an entity
3393 to the list of primitives.
3394 (Find_Primitive_Covering_Interface): New subprogram.
3395 (Override_Dispatching_Operation): Add documentation.
3397 * sem_type.adb (Covers): Minor reformatings
3399 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3402 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3403 (Implements_Interface): New subprogram.
3404 (Is_Parent): Removed.
3405 (Primitive_Names_Match): New subprogram.
3406 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3407 (Ultimate_Alias): New subprogram.
3409 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3411 Remove special management for synchronized types. Rename formal. Remove
3412 internal subprograms Interface_Present_In_Parent and Add_Interface.
3413 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3414 on non-record types by code to return false in such case.
3415 (Implements_Interface): New subprogram.
3416 (Is_Parent): Removed. No special management is now required for
3417 synchronized types covering interfaces.
3418 (Primitive_Names_Match): New subprogram.
3419 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3420 (Ultimate_Alias): New subprogram.
3422 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3423 Add internal entities associated with secondary dispatch tables to
3424 the list of tagged type primitives that are not interfaces.
3425 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3426 (Make_Predefined_Primitive_Specs): Code reorganization to improve
3427 the management of predefined equality operator. In addition, if
3428 the type has an equality function corresponding with a primitive
3429 defined in an interface type, the inherited equality is abstract
3430 as well, and no body can be created for it.
3432 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3433 exp_util to exp_disp.
3434 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3435 an entity corresponds with one of the predefined primitives required
3436 to implement interfaces.
3437 Update copyright notice.
3439 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3440 final check on abstract subprograms all the primitives associated with
3441 interface primitives because they must be visible in the public and
3443 (Write_DT): Use Find_Dispatching_Type to locate the name of the
3444 interface type. This allows the use of this routine, for debugging
3445 purposes, when the tagged type is not fully decorated.
3446 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3447 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3448 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3449 entity corresponds with one of the predefined primitives required to
3450 implement interfaces.
3452 * exp_util.adb (Find_Interface_ADT): New implementation
3453 (Find_Interface): Removed.
3455 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3456 list of interfaces associated with nodes
3457 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3459 2008-05-26 Thomas Quinot <quinot@adacore.com>
3461 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3462 condition for assignment to temporary.
3464 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3466 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3467 checks on the upper bound if the index type is a modular type, to
3468 prevent wrap-around computations when size is close to upper bound of
3471 2008-05-26 Robert Dewar <dewar@adacore.com>
3473 * sem_ch3.adb: Minor reformatting
3475 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3477 * sem_ch12.adb (Remove_Parent): Use specification of instance
3478 to retrieve generic parent,
3479 to handle properly the case where the instance is a child unit.
3480 Add guard to handle properly wrapper packages.
3483 2008-05-26 Thomas Quinot <quinot@adacore.com>
3485 * sinfo.ads: Minor reformatting
3487 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3489 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3490 Generate a tag check when the result subtype of a function, defined by
3491 an access definition, designates a specific tagged type.
3492 (Make_Tag_Check): New routine.
3494 2008-05-26 Arnaud Charlet <charlet@adacore.com>
3496 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3498 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3500 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3501 (builtin_decl_for): Likewise.
3502 * trans.c (gigi): Likewise.
3503 * utils.c (def_builtin_1): Fix formatting.
3505 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3507 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3508 Create the statements which map a string name to protected or task
3511 * exp_ch9.adb: Add with and use clause for Stringt.
3512 Minor code reformatting.
3513 (Build_Entry_Names): New routine.
3514 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3515 for flag Build_Entry_Names which controls the allocation of the data
3516 structure for the string names of entries.
3518 * exp_ch9.ads (Build_Entry_Names): New subprogram.
3520 * exp_util.adb (Entry_Names_OK): New function.
3522 * exp_util.ads (Entry_Names_OK): New function.
3524 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3525 enumerations RE_Id and RE_Unit_Table.
3527 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3528 (Free_Entry_Names_Array): New routine.
3530 * s-taskin.ads: Comment reformatting.
3531 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3532 Add component Entry_Names to record Ada_Task_Control_Block.
3533 (Free_Entry_Names_Array): New routine.
3535 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3536 dynamically allocate an array
3537 of string pointers. This structure holds string entry names.
3538 (Free_Entry_Names): New routine.
3539 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3540 (Set_Entry_Names): New routine.
3543 (Create_Task): Add formal Build_Entry_Names. The flag is used to
3544 control the allocation of the data structure which stores entry names.
3545 (Set_Entry_Name): New routine.
3548 Add with and use clause for Ada.Unchecked_Conversion.
3549 (Finalize): Deallocate the entry names array.
3550 (Free_Entry_Names): New routine.
3551 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3552 create an array of string pointers to hold the entry names.
3553 (Set_Entry_Name): New routine.
3556 Add field Entry_Names to record Protection_Entries.
3557 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3558 (Set_Entry_Name): New routine.
3560 2008-05-26 Vincent Celier <celier@adacore.com>
3563 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3566 (Project_Configuration): New component Shared_Lib_Driver
3568 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3571 (Cleanup_Scopes): For a protected operation, transfer finalization list
3572 to protected body subprogram, to force cleanup actions when needed.
3574 2008-05-26 Robert Dewar <dewar@adacore.com>
3576 * sem_cat.adb: Minor reformatting
3578 * gnatname.adb: Minor reformatting
3580 * osint.ads: Minor reformatting
3582 * s-carun8.ads: Minor reformatting
3584 * g-heasor.ads: Minor comment fix (unit is now pure)
3586 2008-05-26 Robert Dewar <dewar@adacore.com>
3589 (Expand_Current_Value): Properly type generated integer literal
3591 2008-05-26 Sergey Rybin <rybin@adacore.com>
3593 * gnat_ugn.texi: Add description for the new gnatcheck rule -
3594 Separate_Numeric_Error_Handlers.
3596 2008-05-26 Pascal Obry <obry@adacore.com>
3598 * sem_aggr.adb: Minor reformatting.
3600 2008-05-26 Jose Ruiz <ruiz@adacore.com>
3603 (To_Target_Priority): Setting the time slice value to 0 or greater sets
3604 the scheduling policy to FIFO within priorities or round-robin
3606 Hence, the priority must be set in this case to the one selected by the
3609 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3612 (Remove_Parent): If the enclosing scope is an instance whose generic
3613 parent is declared within some parent scope of the just completed
3614 instance, make full views of the entities in that parent visible, when
3617 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
3619 * mingw32.h (STD_MINGW): Set to true for target w64.
3621 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3623 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3624 instead of TREE_STATIC on the ADDR_EXPR.
3626 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
3628 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3629 (Sloc_to_locus): Do not overwrite known GCC locations when translating
3630 GNAT standard locations.
3632 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3634 * gigi.h (mark_visited): Declare.
3635 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3636 only the topmost node of expressions.
3637 (elaborate_expression_1): Look deeper for read-only variables.
3638 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3639 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
3640 (mark_visited_r): New function.
3642 2008-05-23 Vincent Celier <celier@adacore.com>
3644 * snames.adb: New standard name Excluded_Source_List_File.
3646 * snames.ads: New standard name Excluded_Source_List_File.
3648 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3650 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3651 Get excluded sources from
3652 file indicated by attribute Excluded_Source_List_File, when present and
3653 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3655 2008-05-23 Robert Dewar <dewar@adacore.com>
3657 * exp_dist.adb: Minor reformatting
3659 2008-05-23 Ed Schonberg <schonberg@adacore.com>
3661 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3662 slice, convert it to an indexed component, which is equivalent, more
3663 efficient, and usable even if the slice itself is not addressable.
3665 2008-05-23 Olivier Hainque <hainque@adacore.com>
3667 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3668 convention also allows access to named compiler built-in subprograms
3669 such as the GCC __builtin family.
3671 2008-05-23 Vincent Celier <celier@adacore.com>
3673 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3674 sep. If there are several possibilities, choose the one with the
3677 2008-05-23 Vincent Celier <celier@adacore.com>
3679 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3680 back end switches when executable specified with --GCC= is same as
3681 default, even if there are additional options.
3684 Document when the back end switches from the ALI file are taken into
3685 account when gnatlink is invoked with --GCC=
3687 2008-05-23 Thomas Quinot <quinot@adacore.com>
3690 (copy_File): Do not open destination file if source file is unreadable.
3692 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3694 * utils.c (handle_type_generic_attribute): Adjust to accept
3695 fixed arguments before an elipsis.
3697 2008-05-21 Thomas Quinot <quinot@adacore.com>
3699 * g-sothco.ads, g-sothco.adb: New files.
3701 2008-05-20 Thomas Quinot <quinot@adacore.com>
3703 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3705 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3706 Add missing "with" of Ada.Unchecked_Conversion
3708 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3709 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3710 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3711 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3712 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3713 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3714 Move common code out of GNAT.Sockets.Thin implementations and into
3716 New constant SIZEOF_fd_set
3717 New flag Has_Sockaddr_Len
3718 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3720 * g-stsifd-sockets.adb
3721 (Create): Remove call to Set_Length; use Set_Family to set the family
3722 and (on appropriate platforms) length fields in struct sockaddr.
3724 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3725 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3726 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3727 Move common code out of GNAT.Sockets.Thin implementations and into
3730 * g-socket.ads, g-socket.adb:
3731 Move common code out of GNAT.Sockets.Thin implementations and into
3733 (Connect_Socket, Accept_Socket): Provide new versions of these two
3734 routines that operate with a user specified timeout.
3735 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3736 this is now handled automatically by Set_Family on platforms that
3740 Move common code out of GNAT.Sockets.Thin implementations and into
3742 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3743 this constant to 0 (not -1) because we use it to initialize an
3744 unsigned_char value.
3745 Align values for numeric constants only.
3746 Handle the case of systems that do not support AF_INET6.
3747 New constant SIZEOF_fd_set
3748 New flag Has_Sockaddr_Len
3749 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3751 * gsocket.h: New flag Has_Sockaddr_Len
3752 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3754 2008-05-20 Santiago Uruena <uruena@adacore.com>
3756 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3758 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3760 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3761 the underlying issue with malloc/free has been fixed. Remove associated
3764 Related to PR ada/24533
3766 2008-05-20 Robert Dewar <dewar@adacore.com>
3768 * ali.adb: Correct casing of ASCII.NUL
3770 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3773 2008-05-20 Robert Dewar <dewar@adacore.com>
3774 Gary Dismukes <dismukes@adacore.com>
3776 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3777 overflow if result converted to wider integer type.
3778 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3779 discriminated types when discriminant checks are suppressed.
3781 2008-05-20 Vincent Celier <celier@adacore.com>
3783 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3784 Wide_Wide_Character.
3786 2008-05-20 Tristan Gingold <gingold@adacore.com>
3788 * decl.c: Do not emit a variable for a object that has an address
3789 representation clause whose value is known at compile time.
3790 When a variable has an address clause whose value is known at compile
3791 time, refer to this variable by using directly the address instead of
3792 dereferencing a pointer.
3794 2008-05-20 Robert Dewar <dewar@adacore.com>
3797 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3798 subtypes, always False for non-modular types.
3799 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3800 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3801 for Shared_Storage package.
3802 (Is_RACW_Stub_Type): New entity flag.
3805 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3806 case where we have a modular type with a non-binary modules.
3807 Comments reformattings.
3809 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3812 2008-05-20 Javier Miranda <miranda@adacore.com>
3815 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3816 tests did not covered the case in which the type of the aggregate has
3817 no progenitors but some its parents has progenitors.
3819 2008-05-20 Gary Dismukes <dismukes@adacore.com>
3820 Hristian Kirtchev <kirtchev@adacore.com>
3823 (Expand_N_Object_Declaration): Correct the condition which triggers the
3824 generation of a call to Displace when initializing a class-wide object.
3825 (Build_Dcheck_Functions): Build discriminant-checking for null variants
3826 when Frontend_Layout_On_Target is true to ensure that they're available
3827 for calling when a record variant size function is built in Layout.
3829 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3831 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3832 procedure for a derived type retrieve the discriminant values from the
3833 parent using the corresponding discriminant.
3834 (Expand_N_Assignment_Statement): Skip generation of implicit
3835 if-statement associated with controlled types if we are
3836 compiling with restriction No_Finalization.
3838 2008-05-20 Vincent Celier <celier@adacore.com>
3840 * prj.adb (Hash (Project_Id)): New function
3841 (Project_Empty): Add new component Interfaces_Defined
3843 * prj.ads (Source_Data): New component Object_Linked
3844 (Language_Config): New components Object_Generated and Objects_Linked
3845 (Hash (Project_Id)): New function
3846 (Source_Data): New Boolean components In_Interfaces and
3847 Declared_In_Interfaces.
3848 (Project_Data): New Boolean component Interfaces_Defined
3851 New project level attribute Object_Generated and Objects_Linked
3852 Add new project level attribute Interfaces
3854 * prj-dect.adb: Use functions Present and No throughout
3855 (Parse_Variable_Declaration): If a string type is specified as a simple
3856 name and is not found in the current project, look for it also in the
3857 ancestors of the project.
3860 Replace procedure Make with procedures Initialize, Process and Finalize
3861 to implement H414-023: process different directories with different
3863 Use functions Present and No throughout
3866 Replace procedure Make with procedures Initialize, Process and Finalize
3869 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3870 the language configuration.
3871 (Process_Project_Level_Array_Attributes): Process new attributes
3872 Object_Generated and Object_Linked.
3873 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3874 False, to indicate that the erreor/warning is a continuation.
3875 (Check): Call Report_No_Sources with Contnuation = True after the first
3877 (Error_Msg): Process successively contnuation character and warning
3879 (Find_Explicit_Sources): Check that all declared sources have been found
3880 (Check_File): Indicate in hash table Source_Names when a declared source
3882 (Check_File): Set Other_Part when found
3883 (Find_Explicit_Sources): In multi language mode, check if all exceptions
3884 to the naming scheme have been found. For Ada, report an error if an
3885 exception has not been found. Otherwise, disregard the exception.
3886 (Check_Interfaces): New procedure
3887 (Add_Source): When Other_Part is defined, set mutual pointers in spec
3889 (Check): In multi-language mode, call Check_Interfaces
3890 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3891 for an excluded source.
3892 (Remove_Source): A source replacing a source in the interfaces is also
3895 * prj-pars.adb: Use function Present
3897 * prj-part.adb: Use functions Present and No throughout
3898 (Parse_Single_Project): Set the parent project for child projects
3899 (Create_Virtual_Extending_Project): Register project with no qualifier
3900 (Parse_Single_Project): Allow an abstract project to be extend several
3901 times. Do not allow an abstract project to extend a non abstract
3904 * prj-pp.adb: Use functions Present and No throughout
3905 (Print): Take into account the full associative array attribute
3908 * prj-proc.adb: Use functions Present and No throughout
3909 (Expression): Call itself with the same From_Project_Node for the
3910 default value of an external reference.
3912 * prj-strt.adb: Use functions Present and No throughout
3913 (Parse_Variable_Reference): If a variable is specified as a simple name
3914 and is not found in the current project, look for it also in the
3915 ancestors of the project.
3917 * prj-tree.ads, prj-tree.adb (Present): New function
3919 Use functions Present and No throughout
3920 (Parent_Project_Of): New function
3921 (Set_Parent_Project_Of): New procedure
3923 * snames.ads, snames.adb:
3924 Add new standard names Object_Generated and Objects_Linked
3926 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3928 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3929 and the derived type are of the same kind.
3930 (Expand_Call): Generate type conversions for actuals of
3931 record or array types when the parent and the derived types differ in
3932 size and/or packed status.
3934 2008-05-20 Javier Miranda <miranda@adacore.com>
3935 Ed Schonberg <schonberg@adacore.com>
3937 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3938 generating dispatch tables of locally defined tagged types statically.
3939 Remove implicit if-statement that is no longer required.
3940 (Expand_Dispatching_Call): If this is a call to an instance of the
3941 generic dispatching constructor, the type of the first argument may be
3942 a subtype of Tag, so always use the base type to recognize this case.
3944 2008-05-20 Thomas Quinot <quinot@adacore.com>
3947 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3948 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3949 assigning NULL into the result, to avoid a spurious warning.
3950 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3952 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3954 (Build_From_Any_Function, Build_To_Any_Function,
3955 Build_TypeCode_Function): For a type that has user-specified stream
3956 attributes, use an opaque sequence of octets as the representation.
3958 2008-05-20 Kevin Pouget <pouget@adacore.com>
3960 * exp_smem.ads, exp_smem.adb: Construction of access and assign
3961 routines has been replaced by an instantiation of
3962 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3963 shared variable declaration.
3964 Calls to access and assign routines have been replaced by calls to
3965 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3966 instantiated package.
3968 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3969 It identifies the new generic package added in s-shasto.
3971 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3972 is instantiated for each shared passive variable. It provides
3973 supporting procedures called upon each read or write access by the
3977 For this runtime unit (always compiled in GNAT mode), we allow
3978 stream attributes references for limited types for the case where
3979 shared passive objects are implemented using stream attributes,
3980 which is the default in GNAT's persistent storage implementation.
3982 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3985 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3986 convention from its base type, do not set the type to that of integer,
3987 because it may inherit a size clause.
3988 Warn on a size clause with a size different
3989 from that of Integer, if the type has convention C.
3991 2008-05-20 Vincent Celier <celier@adacore.com>
3994 (Scan_Args): Rewrite to take into account new switch --and to separate
3995 arguments into sections.
3996 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3997 section, then Finalize.
3999 2008-05-20 Tristan Gingold <gingold@adacore.com>
4001 * init.c: Enable stack probing on ppc-linux.
4003 * tracebak.c: Add symbolic traceback for ppc-linux.
4005 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
4007 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4010 (common-tools): New rule, to avoid parallel build failure on gnat tools.
4011 Reenable parallel builds on this Makefile.
4013 * Make-lang.in: Update dependencies.
4015 2008-05-20 Robert Dewar <dewar@adacore.com>
4017 * opt.ads (Treat_Restrictions_As_Warnings): New switch
4019 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
4020 Treat_Restrictions_As_Warnings.
4022 * switch-c.adb: Recognize new switch -gnatr
4024 * usage.adb: Add line for -gnatr
4026 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4029 (P_Access_Definition): Change the error message when parsing "access
4030 all" in Ada 95 mode. The message no longer forces the user to recompile
4031 in 05 mode only to discover that anonymous access types are not allowed
4034 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4037 (P_Protected): Update the error message on missing "-gnat05" switch when
4038 using interfaces in conjunction with protected types. Remove the
4039 incorrect error message associated with the presence of "private" after
4042 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4044 * sem_aggr.adb: Update comments.
4045 Improve previous change for PR ada/17985
4047 2008-05-20 Thomas Quinot <quinot@adacore.com>
4050 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4051 the visible part of the spec of a remote types unit.
4052 (Validate_Remote_Access_Object_Type_Declaration):
4053 New local subprogram Is_Valid_Remote_Object_Type, replaces
4054 Is_Recursively_Limited_Private.
4055 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4056 non-controlling formals (and the return type, even though this is not
4057 explicit in the standard) must support external streaming.
4058 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4059 as above for of RAS types and RCI subprograms. (The return type is not
4061 Update comments related to RACWs designating limited interfaces per
4062 ARG ruling on AI05-060.
4064 * sem_util.ads, sem_util.adb
4065 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4066 Is_Remote_Call_Interface to identify RACW types in a stable and
4067 consistent way. We used to rely in this predicate on the privateness of
4068 the designated type and its ancestors, but depending on the currently
4069 visible private parts, this caused false negatives. We now uniformly
4070 rely on checks made at the point where the RACW type is declared.
4071 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4073 2008-05-20 Javier Miranda <miranda@adacore.com>
4074 Ed Schonberg <schonberg@adacore.com>
4075 Hristian Kirtchev <kirtchev@adacore.com>
4078 (Analyze_Object_Declaration): Fix over-conservative condition
4079 restricting use of predefined assignment with tagged types that have
4081 (Analyze_Object_Declaration): Relax the check regarding deferred
4082 constants declared in scopes other than packages since they can be
4083 completed with pragma Import.
4084 Add missing escaping of all-caps word 'CPP' in error messages.
4085 (Build_Discriminated_Subtype): Do not inherit representation clauses
4086 from parent type if subtype already carries them, because they are
4087 inherited earlier during derivation and already include those that may
4088 come from a partial view.
4090 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4091 Check the declarations of a subprogram body for proper deferred
4092 constant completion.
4094 * sem_ch7.ads, sem_ch7.adb
4095 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4097 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4098 Thomas Quinot <quinot@adacore.com>
4101 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4102 F is a parameterless function that returns an array, and S is a subtype
4104 (Analyze_Call): Insert dereference when the prefix is a parameterless
4105 function that returns an access to subprogram and the call has
4107 Reject a non-overloaded call whose name resolves to denote
4108 a primitive operation of the stub type generated to support a remote
4109 access-to-class-wide type.
4111 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4114 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4115 when there is a use clause for the same entity in the context.
4116 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4117 created for a stream attribute of an abstract type or interface type.
4119 2008-05-20 Thomas Quinot <quinot@adacore.com>
4121 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4125 (Add_One_Interp): Ignore any interpretation that is a primitive
4126 operation of an RACW stub type (these primitives are only executed
4127 through dispatching, never through static calls).
4128 (Collect_Interps): When only one interpretation has been found, set N's
4129 Entity and Etype to that interpretation, otherwise Entity and Etype may
4130 still refer to an interpretation that was ignored by Add_One_Interp,
4131 in which case would end up with being marked as not overloaded but with
4132 an Entity attribute not pointing to its (unique) correct interpretation.
4134 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4137 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4138 denotes the whole array of its prefix.
4140 2008-05-20 Robert Dewar <dewar@adacore.com>
4142 * sem_res.adb (Resolve_Op_Not): Warn on double negation
4144 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4147 (Print_Itype): Do not modify the sloc of the component type of a
4148 (packed) array itype, because it is an unrelated type whose source
4149 location is independent of the point of creation of the itype itself.
4151 2008-05-20 Thomas Quinot <quinot@adacore.com>
4153 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4156 2008-05-20 Robert Dewar <dewar@adacore.com>
4157 Vincent Celier <celier@adacore.com>
4159 * vms_data.ads: Add entry for -gnatr
4160 Put GNAT SYNC section in proper alpha order
4161 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4163 * gnat_ugn.texi: Add documentation for new gnatname switch --and
4164 Update the style checks section
4165 Add documentation of -gnatr
4166 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4167 subsection the explanation how compiler checks should be disabled for
4169 Update the list of Ada 95 reserved words used by in the project language
4170 Add documentation for project qualifiers.
4171 Document that abstract projects may be extended by different projects in
4172 the same project tree.
4173 Add documentation for gnatmake switch -d
4175 * ug_words: Add -gnatyy VMS equivalence string.
4176 Add entry for -gnatr
4178 2008-05-20 Bob Duff <duff@adacore.com>
4181 (Set_Handler): Remove code from both of these that implements
4182 RM-D.15(15/2), because it causes a race condition and potential
4184 (Process_Queued_Events): Add comment explaining "exception when others
4185 => null". Add clarifying ".all", even though implicit .all is legal
4188 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4190 * s-winext.ads: Replace representation clause by pragma Pack. Gives
4191 equivalent representation, but has the advantage of allowing
4192 compilation of this file under 64 bits platforms.
4194 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4196 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4199 Don't define dummy implementation of convert_addresses on ppc-linux.
4201 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4204 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4205 if expression is aggregate component.
4207 2008-05-20 Robert Dewar <dewar@adacore.com>
4209 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4210 sem_ch12.adb: Update comments. Minor reformatting.
4214 * s-unstyp.ads: Fixed some typos in comments.
4216 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4218 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4221 * g-socthi-vxworks.ads: Update to latest socket changes.
4223 * a-caldel-vms.adb: Resync with a-caldel spec.
4225 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4228 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4230 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4231 for dummy types pointed to by the converted pointer types.
4233 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4235 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4236 of records and unions.
4237 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4239 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
4240 Robert Dewar <dewar@adacore.com>
4242 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4243 restrictions to the prefix of 'Old.
4244 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4245 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4248 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4252 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4253 expression to an integral type with lower precision, use NOP_EXPR
4254 directly in a couple of special cases.
4256 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4257 Ed Schonberg <schonberg@adacore.com>
4259 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4260 constraint expressions.
4262 2008-05-12 Tomas Bily <tbily@suse.cz>
4264 * utils2.c (known_alignment, contains_save_expr_p)
4265 (gnat_mark_addressable): Use CASE_CONVERT.
4266 * decl.c (annotate_value): Likewise.
4267 * trans.c (maybe_stabilize_reference): Likewise.
4268 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4269 * utils.c (rest_of_record_type_compilation): Likewise.
4270 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4271 (protect_multiple_eval): Likewise.
4273 2008-05-08 Andreas Schwab <schwab@suse.de>
4275 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4276 DECL_IS_PURE to DECL_PURE_P.
4278 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4280 * decl.c (maybe_pad_type): Add ??? comment.
4282 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4284 * decl.c (components_to_record): Zero the alignment of the qualified
4285 union built for the variant part upon creating it.
4287 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4289 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4290 mode even if the alignment is not a factor of the original size. But
4291 make sure to create the inner field with the original size. Reorder.
4292 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4293 record as always addressable.
4294 * utils.c (convert): Deal specially with conversions between original
4295 and packable versions of a record type.
4296 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4297 recognizing an assignment between padded objects.
4299 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4301 * decl.c (make_packable_type): Resize the last component to its RM size
4302 only if it is of an aggregate type.
4303 * trans.c (call_to_gnu): Fix nit in comment.
4304 (gnat_to_gnu): Likewise.
4306 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
4308 * Makefile.in: Adapt sh4-linux target.
4310 2008-04-29 Ed Schonberg <schonberg@adacore.com>
4313 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4314 tagged type by an untagged protected or task type.
4316 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
4317 Tristan Gingold <gingold@adacore.com>
4320 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4321 of aliased objects with an unconstrained nominal subtype.
4322 Cap the promotion to the effective alignment of the word mode.
4324 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4326 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4327 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4328 Use '&&' instead of ';'.
4330 2008-04-24 Olivier Hainque <hainque@adacore.com>
4332 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4333 doesn't require signed arithmetic anymore.
4335 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4337 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4338 (call_to_gnu): Don't set TREE_INVARIANT.
4339 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4341 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
4343 * s-osinte-rtems.adb: Add sigalstack function.
4344 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4345 function. Add Alternate_Stack and Alternate_Stack_Size.
4346 Add missing process_shared field to pthread_condattr_t
4347 and change ss_low_priority to int from timespec.
4349 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
4351 * i-forbla.adb: Link against -llapack and -lblas by default
4352 instead of the private -lgnalasup.
4354 2008-04-21 Olivier Hainque <hainque@adacore.com>
4356 Access to most C builtins from Ada
4357 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4358 (handle_pure_attribute, handle_novops_attribute,
4359 handle_nonnull_attribute, handle_sentinel_attribute,
4360 handle_noreturn_attribute, handle_malloc_attribute,
4361 handle_type_generic_attribute): New attribute handlers, from C fe.
4362 (gnat_internal_attribute_table): Map the new handlers.
4363 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4364 (init_gigi_decls): ... here.
4365 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4366 Move to a section dedicated to builtins processing.
4367 (build_void_list_node, builtin_type_for_size): New functions.
4368 (def_fn_type, get_nonnull_operand): Likewise.
4369 (install_builtin_elementary_type, install_builtin_function_types,
4370 install_builtin_attributes): Likewise.
4371 (fake_attribute_handler): Fake handler for attributes we don't
4373 (def_builtin_1): New function, worker for DEF_BUILTIN.
4374 (install_builtin_functions): New function.
4375 (gnat_install_builtins): Move to the builtins processing section.
4376 Now calling the newly introduced installers.
4378 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4380 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4381 constant objects, but not exceptions.
4382 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4384 * utils.c (create_var_decl_1): Likewise.
4385 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4386 the type when copying to padded object and the source is a constructor.
4388 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4390 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4391 alignment, reset it to zero if it would end up not being greater
4392 than that of the type.
4394 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4396 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4397 the padded type has a variable size.
4399 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4401 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4402 target pointer mechanism as soon as the size is not constant.
4404 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4406 * gigi.h (create_var_decl_1): Declare.
4407 (create_var_decl): Turn into a macro invoking create_var_decl_1.
4408 (create_true_var_decl): Likewise.
4409 * utils.c (create_var_decl_1): Make global and reorder parameters.
4410 (create_var_decl): Delete.
4411 (create_true_var_decl): Likewise.
4413 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
4415 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4417 * fe.h (Debug_Flag_Dot_A): Delete.
4418 * debug.adb (-gnatd.a): Update documentation.
4420 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4422 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4423 "not null" parameter.
4425 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4427 * g-socket.adb: Add a message "IPv6 not supported" to the
4428 Socket_Error exception.
4430 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
4433 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4434 the type is known instead of the underlying type.
4436 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4439 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4440 procedure for a derived type retrieve the discriminant values from
4441 the parent using the corresponding discriminant.
4443 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
4444 Gary Dismukes <dismukes@adacore.com>
4447 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4448 which is not an entity (and hence not a package).
4449 (End_Use_Package): Ditto.
4451 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4454 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4455 protected operation that matches the signature, not only an entry, a
4456 regular subprogram or a literal.
4458 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4460 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4461 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4462 if a size or alignment is specified. Do not take into account
4463 alignment promotions for the computation of the object's size.
4464 <type>: Call maybe_pad_type only if a size or alignment is specified.
4465 (maybe_pad_type): Really reuse the RM_Size of the original type if
4467 * trans.c (Attribute_to_gnu): Fix a couple of nits.
4468 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4469 statements. Use the padded view of the type when copying between
4470 padded objects of the same underlying type.
4472 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4474 * vms_data.ads: Fix typo in constant.
4475 * gen-soccon.c: Fix typo in error string.
4476 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4478 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4479 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4480 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4481 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4482 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4483 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4484 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4485 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4486 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4487 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4488 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4489 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4490 sinfo.ads: Fix typos in comments.
4492 2008-04-14 Robert Dewar <dewar@adacore.com>
4494 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4495 to every non-object and change error message.
4497 2008-04-14 Robert Dewar <dewar@adacore.com>
4499 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4500 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4503 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4506 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4507 apply pragma Linker_Section on type.
4509 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4512 * sem_prag.adb (Error_Pragma_Ref): New.
4513 (Process_Convention): Specialized message for non-local
4514 subprogram renaming. Detect the problem in homonyms as well.
4516 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4519 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4520 * sem_ch12.adb (Instantiate_Object): Use it.
4521 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4522 storage pool denotes a variable as per RM 13.11(15).
4524 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4526 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4527 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4529 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
4532 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4533 line endings even on non-Unix platforms.
4535 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4538 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4539 renaming information.
4541 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
4544 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4547 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4549 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4550 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4551 snames.ads, sprint.adb, stand.ads, stringt.ads,
4552 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4553 switch.ads, sysdep.c, table.adb, table.ads,
4554 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4555 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4556 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4557 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4558 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4559 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4562 * sem_ch10.adb, sem_ch10.ads,
4563 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4564 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4565 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4566 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4567 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4568 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4569 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4570 sem_warn.ads: Fix comment typos.
4572 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4573 s-soflin.ads, s-stalib.ads, s-stausa.adb,
4574 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4575 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4576 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4577 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4578 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4579 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4580 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4581 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4582 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4583 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4584 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4585 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4586 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4587 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4588 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4589 sem_cat.adb, sem_cat.ads: Fix comment typos.
4591 2008-04-12 Joel Sherrill <joel@oarcorp.com>
4594 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4596 2008-04-12 Arnaud Charlet <charlet@adacore.com>
4598 * s-linux-hppa.ads: Fix syntax errors.
4600 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4602 * gnat_ugn.texi: Fix typos.
4603 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4604 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4605 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4606 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4607 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4608 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4609 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4610 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4611 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4612 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4613 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4614 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4615 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4616 s-osinte-darwin.ads, s-osinte-freebsd.ads,
4617 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4618 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4619 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4620 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4621 s-parame-hpux.ads, s-parame-vms-alpha.ads,
4622 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4623 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4624 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4625 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4626 s-rident.ads: Fix comment typos.
4628 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
4631 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4632 environment if generic instance is a top-level one.
4634 2008-04-09 Doug Rupp <rupp@adacore.com>
4636 * decl.c (validate_size): Set minimum size for fat pointers same as
4637 access types. Code clean ups.
4639 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4640 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4642 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4644 * s-crtl.ads (malloc32) New function, alias for malloc
4645 (realloc32) New function, alias for realloc
4647 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4649 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4650 allocator size is 32 and default pointer size is 64.
4651 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4652 lhs type if smaller, whatever the modes.
4654 * gigi.h (malloc32_decl): New macro definition
4656 * utils.c (init_gigi_decls): New malloc32_decl
4657 Various code clean ups.
4659 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4660 Task_Address vice System.Address.
4662 * s-taspri-vms.ads: Import System.Aux_DEC
4663 (Task_Address): New subtype of System.Aux_DEC.Short_Address
4664 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4666 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4667 Task_Address vice System.Address.
4669 * s-inmaop-vms.adb: Import System.Task_Primitives
4670 (To_Address): Unchecked convert to Task_Address vice System.Address
4672 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4674 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4675 (To_Address) Unchecked convert to Task_Address vice System.Address
4677 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4679 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4681 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4683 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4684 (fdesc_type_node): Define.
4685 (null_fdesc_node): Likewise.
4686 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4687 uses descriptors for vtables and the type comes from a dispatch table,
4688 return the descriptor type.
4689 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4690 uses descriptors for vtables and the type comes from a dispatch table,
4691 build a descriptor in the static case and copy the existing one in the
4693 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4694 the type is a pointer-to-subprogram coming from a dispatch table,
4695 return the null descriptor.
4696 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4697 vtables, the source type is the descriptor type and the target type
4698 is a pointer type, first build the pointer.
4699 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4700 build the descriptor type and the null descriptor.
4702 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4704 * decl.c (prepend_attributes): Fix typo.
4705 * trans.c (Pragma_to_gnu): Likewise.
4706 * utils.c (gnat_genericize): Likewise.
4708 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4709 Richard Kenner <kenner@adacore.com>
4711 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4712 * decl.c (gnat_to_gnu_entity): Adjust for above change.
4713 <E_Record_Type>: Try to get a better form of the component for
4714 packing, even if it has an integral mode.
4715 <E_Record_Subtype>: Likewise.
4716 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4717 exception suppressing the final conversion between record types.
4719 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4721 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4722 alignment for space, promote the alignment of non-scalar variables with
4723 no size and alignment.
4724 * gigi.h (gnat_types_compatible_p): Declare.
4725 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4726 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
4727 * utils.c (gnat_types_compatible_p) : New predicate.
4728 (convert): Use it throughout to test for cases where a mere view
4729 conversion is sufficient.
4730 * utils2.c (build_binary_op): Minor tweaks.
4731 (build_unary_op): Likewise.
4733 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4735 * decl.c (adjust_packed): Expand comment.
4737 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4739 * s-tasuti.ads: Use Task_Address instead of System.Address.
4741 * makeutl.adb (Path_Or_File_Name): New function
4743 * nlists.ads, itypes.ads: Update comments.
4745 * s-crtl.ads (malloc32, realloc32): New functions.
4747 * s-auxdec.ads (Short_Address_Size): New constant.
4749 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4751 * s-ststop.ads, s-ststop.adb: New file.
4753 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4756 2008-04-08 Pascal Obry <obry@adacore.com>
4758 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4759 (Stop_Bits_Number): New type.
4760 (Parity_Check): Likewise.
4761 (Set): Add parameter to set the number of stop bits and
4762 the parity. Parameter timeout is now a duration instead
4765 * g-sercom-linux.adb:
4766 Implement the stop bits and parity support for GNU/Linux.
4767 Fix handling of timeout, it must be given in tenth of seconds.
4769 * g-sercom-mingw.adb:
4770 Implement the stop bits and parity support for Windows.
4771 Use new s-win32.ads unit instead of declaring Win32 services
4772 directly into this body.
4773 Update handling of timeout as now a duration.
4775 * s-win32.ads, s-winext.ads: New files.
4777 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4778 Arnaud Charlet <charlet@adacore.com>
4780 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4782 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4783 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4785 * s-osinte-lynxos-3.ads,
4786 (Alternate_Stack): Remove when not needed. Simplify declaration
4788 (Alternate_Stack_Size): New constant.
4790 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4791 'Unrestricted_Access.
4793 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4794 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4795 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4796 s-osinte-solaris.ads, s-osinte-vms.ads
4797 (SA_ONSTACK): New constant.
4798 (stack_t): New record type.
4799 (sigaltstack): New imported function.
4800 (Alternate_Stack): New imported variable.
4801 (Alternate_Stack_Size): New constant.
4803 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4805 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4806 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4807 s-taspri-vms.ads (Task_Address): New subtype of System.Address
4808 (Task_Address_Size): New constant size of System.Address
4809 (Alternate_Stack_Size): New constant.
4811 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4812 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4813 Establish the alternate stack if the platform makes use of n alternate
4814 signal stack for stack overflows.
4815 (Create_Task): Take into account the alternate stack in the stack size.
4816 (Initialize): Save the address of the alternate stack into the ATCB for
4817 the environment task.
4818 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4820 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4822 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4824 * s-intman-posix.adb:
4825 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4826 alternate signal stack for stack overflows.
4828 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4829 x86-64, adjust the saved value of the stack pointer if the signal was
4830 raised by a stack checking probe.
4831 (HP-UX section): Use global __gnat_alternate_stack as signal handler
4832 stack and only for SIGSEGV.
4833 (Linux section): Likewise on x86 and x86-64.
4835 (__gnat_map_signal): Now static.
4836 (__gnat_error_handler): Not static any more.
4837 (__gnat_adjust_context_for_raise): New function. Signal context
4838 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4839 propagation circuitry.
4840 (__gnat_error_handler): Second argument of a sigaction handler is a
4841 pointer, not an int, and is unused.
4842 Adjust signal context before mapping to exception.
4843 Install signal handlers for LynxOS case.
4845 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4846 (Task_Id): Set size to Task_Address_Size
4847 (To_Task_id): Unchecked convert from Task_Address vice System.Address
4848 (To_Address): Unchecked convert to Task_Address vice System.Address
4850 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4851 address into the ATCB if the platform makes use of an alternate signal
4852 stack for stack overflows.
4853 (Free_Task): Add call to Finalize_Attributes_Link.
4854 Add argument Relative_Deadline to pass the value specified for
4855 the task. This is not yet used for any target.
4857 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4858 the value specified for the task.
4860 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4862 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4863 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4864 s-vxwext-rtp.adb): New files.
4866 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4867 Minor updates to accomodate changes above.
4869 2008-04-08 Pascal Obry <obry@adacore.com>
4871 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4872 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4873 Use new s-win32.ads unit instead of declaration
4874 from s-osinte-mingw.ads.
4876 * s-osinte-mingw.ads:
4877 Move all non tasking based interface to s-win32.ads.
4879 * s-osprim-mingw.adb:
4880 Remove duplicated declarations and use s-win32.ads
4883 2008-04-08 Vincent Celier <celier@adacore.com>
4884 Arnaud Charlet <charlet@adacore.com>
4886 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4887 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4888 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4889 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4890 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4892 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4893 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4894 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4895 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4896 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4897 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4898 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4899 mlib-tgt-specific-mingw.adb: New names.
4902 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4904 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4905 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4906 Minor updates for VMS
4908 * gnatbl.c: Removed.
4910 2008-04-08 Thomas Quinot <quinot@adacore.com>
4912 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4913 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4914 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4915 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4916 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4917 ASCII.NUL throughout.
4919 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4920 Matthew Heaney <heaney@adacore.com>
4922 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4925 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
4926 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4927 to convention for non-RM specs.
4928 Add descriptive header, and documented each operation
4929 document each operation
4931 2008-04-08 Robert Dewar <dewar@adacore.com>
4932 Bob Duff <duff@adacore.com>
4933 Gary Dismukes <dismukes@adacore.com>
4934 Ed Schonberg <schonberg@adacore.com>
4936 * alloc.ads: Add entries for Obsolescent_Warnings table
4938 * einfo.ads, einfo.adb: Minor reformatting.
4939 (Is_Discriminal): New subprogram.
4940 (Is_Prival): New subprogram.
4941 (Is_Protected_Component): New subprogram.
4942 (Is_Protected_Private): Removed.
4943 (Object_Ref, Set_Object_Ref): Removed.
4944 (Prival, Set_Prival): Change assertion.
4945 (Privals_Chain, Set_Privals_Chain): Removed.
4946 (Prival_Link, Set_Prival_Link): New subprogram.
4947 (Protected_Operation, Set_Protected_Operation): Removed.
4948 (Protection_Object, Set_Protection_Object): New subprogram.
4949 (Write_Field17_Name): Remove case for Object_Ref.
4950 (Write_Field20_Name): Add case for Prival_Link.
4951 (Write_Field22_Name): Remove case for Protected_Operation,
4953 Add case for Protection_Object.
4954 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4956 (Overlays_Constant): New flag
4957 (Is_Constant_Object): New predicate
4958 (Is_Standard_Character_Type): New predicate
4959 (Optimize_Alignment_Space): New flag
4960 (Optimize_Alignment_Time): New flag
4961 (Has_Postconditions): New flag
4962 (Obsolescent_Warrning): Field removed
4963 (Spec_PPC_List): New field
4964 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4965 subprograms to get and set the relative deadline associated to a task.
4967 * exp_attr.adb (May_Be_External_Call): Account for the case where the
4968 Access attribute is part of a named parameter association.
4969 (Expand_Access_To_Protected_Op): Test for the attribute occurring
4970 within an init proc and use that directly as the scope rather than
4971 traversing up to the protected operation's enclosing scope. Only apply
4972 assertion on Is_Open_Scopes in the case the scope traversal is done.
4973 For the init proc case use the address of the first formal (_init) as
4974 the protected object reference.
4975 Implement Invalid_Value attribute
4976 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4977 contents of the dispatch table there is no need to duplicate the
4978 itypes associated with record types (i.e. the implicit full view
4980 Implement Enum_Val attribute
4981 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4982 within _Postconditions procedure
4983 (Expand_N_Attribute_Reference, case Result): Implement new attribute
4985 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4986 a return statement calls a function that is not available in
4987 configurable runtime.
4988 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4989 (Expand_Non_Function_Return): Generate call to _Postconditions proc
4990 (Expand_Simple_Function_Return): Ditto
4992 * frontend.adb: Add call to Sem_Aux.Initialize
4994 * sem_aux.ads, sem_aux.adb: New file.
4996 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4997 Add new Pragma_Relative_Deadline.
4998 Add support for pragmas Check and Check_Policy
5000 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
5001 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
5002 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
5003 missing check because they are not allowed in CPP tagged types.
5004 Add Sure parameter to Note_Possible_Modification calls
5005 Add implementation of Invalid_Value attribute
5006 Implement new attribute Has_Tagged_Values
5007 Implement Enum_Val attribute
5008 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
5009 generated attributes.
5010 (Analyze_Attribute, case Result): If prefix of the attribute is
5011 overloaded, it always resolves to the enclosing function.
5012 (Analyze_Attribute, case Result): Properly deal with analysis when
5013 Postconditions are not active.
5014 (Resolve_Attribute, case Result): Properly deal with appearence during
5015 preanalysis in spec.
5016 Add processing for attribute Result
5018 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
5020 (Analyze_Subprogram_Body): Install private_with_clauses when the body
5022 (Check_Inline_Pragma): recognize an inline pragma that appears within
5023 the subprogram body to which it applies.
5024 (Analyze_Function_Return): Check that type of the expression of a return
5025 statement in a function with a class-wide result is not declared at a
5026 deeper level than the function.
5027 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
5028 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
5029 user- defined operators.
5030 (Install_Formals): Moved to spec to allow use from Sem_Prag for
5031 analysis of precondition/postcondition pragmas.
5032 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
5033 Last_Formal, along with lots of comments on what this is about
5034 (Analyze_Subprogram_Body): Fix case where we move entities from the
5035 spec to the body when there are no body entities (now possible with
5036 precondition and postcondition pragmas).
5037 (Process_PPCs): New procedure
5038 (Analyze_Subprogram_Body): Add call to Process_PPCs
5040 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
5042 (Pop_Scope): Restore Check_Policy_List on scope exit
5043 (Push_Scope): Save Check_Policy_List on scope entry
5044 Change name In_Default_Expression => In_Spec_Expression
5045 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5046 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5047 (Analyze_Object_Renaming): Allow 'Reference as object
5048 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5049 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5050 of restriction identifier.
5051 Add Sure parameter to Note_Possible_Modication calls
5053 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5054 Don't check for primitive operations when calling Rep_Item_Too_Late.
5055 (Process_Import_Or_Interface): Do not place flag on formal
5057 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5058 propagate information to full view, which is the one elaborated by the
5060 (Make_Inline): the pragma is effective if it applies to an internally
5061 generated subprogram declaration for a body that carries the pragma.
5062 (Analyze_Pragma, case Optimize_Alignment): Set new flag
5063 Optimize_Alignment_Local.
5064 (Analyze_PPC_In_Decl_Part): New procedure
5065 (Get_Pragma_Arg): Moved to outer level
5066 (Check_Precondition_Postcondition): Change to allow new visibility
5067 rules for package spec
5068 (Analyze_Pragma, case Check_Policy): Change placement rules to be
5069 same as pragma Suppress/Unsuppress.
5070 Change name In_Default_Expression => In_Spec_Expression
5071 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5072 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5073 (Check_Precondition_Postcondition): Do proper visibility preanalysis
5074 for the case of these pragmas appearing in the spec.
5075 (Check_Enabled): New function
5076 (Initialize): New procedure
5077 (Tree_Read): New procedure
5078 (Tree_Write): New procedure
5079 (Check_Precondition_Postcondition): New procedure
5080 Implement pragmas Check and Check_Policy
5081 Merge Assert processing with Check
5083 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5084 New warning flag -gnatw.e
5086 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5087 returning whether a task (or main procedure) has a pragma
5089 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5090 (or main procedure) has a pragma Relative_Deadline.
5091 Add Next_Pragma field to N_Pragma node
5092 (PPC_Enabled): New flag
5093 (Next_Pragma): Now used for Pre/Postcondition processing
5095 * snames.h, snames.ads, snames.adb: New standard name
5097 Add entry for 'Invalid_Value attribute
5098 Add entry for new attribute Has_Tagged_Values
5099 Add entry for Enum_Val attribute
5100 Add new standard names Aggregate, Configuration and Library.
5103 Add Pragma_Precondition
5104 Add Pragma_Postcondition
5105 Add Attribute_Result
5106 New standard name Archive_Builder_Append_Option
5107 (Preset_Names): Add _relative_deadline and relative_deadline definitions
5108 There was also a missing non_preemptive_within_priorities.
5109 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5111 Add support for pragmas Check and Check_Policy
5113 * tree_gen.adb: Call Sem_Aux.Tree_Write
5115 * tree_in.adb: Call Sem_Aux.Tree_Read
5117 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5120 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5123 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5124 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5126 (Expand_Pragma_Check): New procedure
5128 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5131 * sinfo.adb (PPC_Enabled): New flag
5133 2008-04-08 Robert Dewar <dewar@adacore.com>
5134 Gary Dismukes <dismukes@adacore.com>
5135 Javier Miranda <miranda@adacore.com>
5136 Ed Schonberg <schonberg@adacore.com>
5138 * fe.h: Remove global Optimize_Alignment flag, no longer used
5140 * layout.adb: Test Optimize_Alignment flags rather than global switch
5142 * lib.ads, lib.adb: New OA_Setting field in library record
5144 * lib-load.adb: New OA_Setting field in library record
5146 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5147 units mentioned in limited_with_ clauses in the ali file, with an
5149 New Ox fields in U line
5151 * opt.adb: New flag Optimize_Alignment_Local
5152 (Check_Policy_List[_Config]): New flags
5154 * opt.ads (Invalid_Value_Used): New flag
5155 New switch Optimize_Alignment_Local
5156 (Warn_On_Parameter_Order): New flag
5157 (Check_Policy_List[_Config]): New flags
5159 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5160 limited_with clauses.
5161 New data structures for Optimize_Alignment
5163 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5165 (Check_Consistent_Optimize_Alignment): Rework for new structure
5166 (Check_Consistent_Restrictions): Fix incorrect error message
5168 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5169 created class-wide type (to the Parent field of the specific type).
5170 (Install_Siblings): Handle properly private_with_clauses on subprogram
5171 bodies and on generic units.
5172 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5173 illegal limited_with_clause that names a non-existent package.
5174 (Check_Body_Required): Determine whether a unit named a limited_with
5175 clause needs a body.
5176 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5177 Capture Optimize_Alignment settings to set new OA_Setting field in
5179 (Build_Limited_Views): Include task and protected type declarations.
5181 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5182 case of a possible constant redeclaration where the current object is
5183 an entry index constant.
5184 (Analyze_Object_Declaration): Generate an error in case of CPP
5185 class-wide object initialization.
5186 (Analyze_Object_Declaration): Add extra information on warnings for
5187 declaration of unconstrained objects.
5188 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5189 conflicts with the setting of Stored_Constraint in the case where the
5190 access type entity has already been created as an E_Incomplete_Type due
5191 to a limited with clause.
5192 Use new Is_Standard_Character_Type predicate
5193 (Analyze_Object_Declaration): Apply access_constant check only after
5194 expression has been resolved, given that it may be overloaded with
5195 several access types.
5196 (Constant_Redeclaration): Additional legality checks for deferred
5197 constant declarations tha involve anonymous access types and/or null
5198 exclusion indicators.
5199 (Analyze_Type_Declaration): Set Optimize_Alignment flags
5200 (Analyze_Subtype_Declaration): Ditto
5201 (Analyze_Object_Declaration): Ditto
5202 (Analyze_Object_Declaration): Don't count tasks in generics
5203 Change name In_Default_Expression => In_Spec_Expression
5204 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5205 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5206 (Process_Discriminants): Additional check for illegal use of default
5207 expressions in access discriminant specifications in a type that is not
5209 (Check_Abstract_Overriding): If an inherited function dispaches on an
5210 access result, it must be overridden, even if the type is a null
5212 (Derive_Subprogram): The formals of the derived subprogram have the
5213 names and defaults of the parent subprogram, even if the type is
5214 obtained from the actual subprogram.
5215 (Derive_Subprogram): In the presence of interfaces, a formal of an
5216 inherited operation has the derived type not only if it descends from
5217 the type of the formal of the parent operation, but also if it
5218 implements it. This is relevant for the renamings created for the
5219 primitive operations of the actual for a formal derived type.
5220 (Is_Progenitor): New predicate, to determine whether the type of a
5221 formal in the parent operation must be replaced by the derived type.
5223 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5224 predicate recursive to handle components that have a user-defined
5225 Initialize procedure. Handle controlled derived types whose ancestor
5226 has a user-defined Initialize procedured.
5227 (Note_Possible_Modification): Add Sure parameter, generate warning if
5228 sure modification of constant
5229 Use new Is_Standard_Character_Type predicate
5230 (Find_Parameter_Type): when determining whether a protected operation
5231 implements an interface operation, retrieve the type of the formal from
5232 the entity when the formal is an access parameter or an
5233 anonymous-access-to-subprogram.
5234 Move Copy_Parameter_List to sem_util, for use when building stubbed
5236 (Has_Access_Values): Tagged types now return False
5237 (Within_HSS_Or_If): New procedure
5238 (Set_Optimize_Alignment_Flags): New procedure
5239 Change name In_Default_Expression => In_Spec_Expression
5240 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5241 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5243 2008-04-08 Tristan Gingold <gingold@adacore.com>
5245 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5247 2008-04-08 Tristan Gingold <gingold@adacore.com>
5251 * cuintp.c: Fix 16 bits issue for AVR.
5252 On AVR, integer is 16 bits, so it can't be used to do math with
5254 So use long_integer instead.
5256 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5258 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5259 System.OS_Primitives.
5260 Change type of various constants, parameters and local variables from
5261 Time to representation type OS_Time.
5262 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5263 Remove the declaration of constant Mili_F from several routines. New
5264 body for internal package Conversions_Operations.
5265 (Time_Of): Add default parameters for several formals.
5267 * a-caldel.adb: Minor reformatting
5269 * a-calend.ads, a-calend.adb: New body for internal package
5270 Conversions_Operations.
5271 (Time_Of): Add default parameters for several formals.
5273 * Makefile.rtl: Add a-ststop
5274 Add Ada.Calendar.Conversions to the list of runtime files.
5277 * a-calcon.adb, a-calcon.ads: New files.
5279 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5280 Tristan Gingold <gingold@adacore.com>
5282 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5283 (Install_Restricted_Handlers): New procedure
5284 which is a simplified version of Install_Handlers that does not store
5285 previously installed.
5287 * s-interr-vxworks.adb: Fix ACATS cxc3001
5288 On VxWorks interrupts can't be detached.
5289 (Install_Restricted_Handlers): New procedure.
5291 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5294 2008-04-08 Olivier Hainque <hainque@adacore.com>
5296 * s-intman-vxworks.ads, s-intman-vxworks.adb
5297 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5298 required services already implemented elsewhere.
5299 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5300 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5301 argument passed to the handler, which we need for ZCX propagation
5304 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5306 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5308 * g-timsta.adb, g-timsta.ads: New files.
5310 2008-04-08 Robert Dewar <dewar@adacore.com>
5312 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5313 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5314 (Raise_Exception_Always): Fix documentation accordingly
5316 2008-04-08 Robert Dewar <dewar@adacore.com>
5318 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5321 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5324 2008-04-08 Javier Miranda <miranda@adacore.com>
5325 Robert Dewar <dewar@adacore.com>
5326 Ed Schonberg <schonberg@adacore.com>
5328 * a-tags.adb (Register_Interface_Offset): New subprogram.
5329 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5330 (To_Predef_Prims_Table_Ptr): Removed.
5331 (Acc_Size): Removed.
5332 (To_Acc_Size): Removed.
5333 (Parent_Size): Modified to the call the subprogram returning the size of
5334 the parent by means of the new TSD component Size_Func.
5336 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5337 (DT_Offset_To_Top_Offset): New constant value that is used to generate
5338 code referencing the Offset_To_Top component of the dispatch table's
5340 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5341 use of 'address to initialize dispatch table slots.
5342 (Size_Func): New component of the TSD. Used by the run-time to call the
5343 size primitive of the tagged type.
5345 * checks.adb (Apply_Access_Check): Avoid check when accessing the
5346 Offset_To_Top component of a dispatch table.
5347 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5348 deferred constant declaration. do not add a null expression, to prevent
5349 spurious errors when full declaration is analyzed.
5350 (Apply_Discriminant_Check): If both discriminant constraints share a
5351 node which is not static but has no side effects, do not generate a
5352 check for that discriminant.
5353 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5354 subexpr, since the prefix of an attribute is a name.
5356 * checks.ads: Fix nit in comment.
5358 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5359 and body of predefined primitives in case of CPP tagged type
5361 (Freeze_Type): Deal properly with no storage pool case
5362 (Make_Predefined_Primitive_Specs): Generate specification of abstract
5363 primitive Deep_Adjust if a nonlimited interface is derived from a
5365 (Build_Dcheck_Functions): Create discriminant-checking functions only
5366 for variants that have some component(s).
5367 (Build_Slice_Assignment): In expanded code for slice assignment, handle
5368 properly the case where the slice bounds extend to the last value of the
5369 underlying representation.
5370 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5371 (Is_Variable_Size_Record): An array component has a static size if
5372 index bounds are enumeration literals.
5374 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5375 an external tag has been specified for the type.
5376 (Building_Static_DT): Add missing support for private types.
5377 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5378 to the entity associated with the parent of Typ. This is done to
5379 avoid wrong access when the parent is a private type.
5380 (Expand_Interface_Conversion): Improve error message when the
5381 configurable runtime has no support for dynamic interface conversion.
5382 (Expand_Interface_Thunk): Add missing support to interface types in
5383 configurable runtime.
5384 (Expand_Dispatching_Call): remove obsolete code.
5385 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5386 ensure that all subtypes and aggregates associated with dispatch
5387 tables have the attribute Is_Dispatch_Table_Entity set to true.
5388 (Register_Primitive): Rename one variable to improve code reading.
5389 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5390 of the pointer to the 'size primitive in the TSD.
5392 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5393 (RE_Offset_To_Top_Ptr): New entity.
5394 (RE_Register_Interface_Offset): New entity.
5395 (RE_Set_Dynamic_Offset_To_Top): New entity.
5396 (RE_Set_Offset_To_Top): Removed entity.
5397 (RE_Prim_Ptr): New entity
5398 (RE_Size_Func): New entity
5399 (RE_Size_Ptr): New entity
5400 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5401 (Ada_Dispatching_Child): Define this new subrange.
5402 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5403 RE_Time_Span, and RE_Time_Span_Zero).
5404 (RE_Unit_Table): Add new required run-time calls
5406 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5409 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5410 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5411 initializes the Offset_To_Top component of a dispatch table.
5412 (Build_Predef_Prims): Removed.
5413 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5415 (Build_Set_Size_Function): New subprogram.
5417 * exp_ch13.adb: Do not generate storage variable for storage_size zero
5418 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5420 2008-04-08 Robert Dewar <dewar@adacore.com>
5422 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5423 computing Fore when Exp > 0
5425 2008-04-08 Robert Dewar <dewar@adacore.com>
5427 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5429 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5430 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5432 * fmap.adb: Remove Big_String declarations (now in Types)
5433 (No_Mapping_File): New Boolean global variable
5434 (Initialize): When mapping file cannot be read, set No_Mapping_File to
5436 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5437 tables were empty before adding entries, open the mapping file
5438 with Truncate = True, instead of delete/re-create.
5440 * fname-sf.adb: Remove Big_String declarations (now in Types)
5442 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5443 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5446 * table.ads: Add for Table_Ptr'Storage_Size use 0
5448 * types.ads: Add Big_String declarations
5449 Add Size_Clause of zero for big pointer types
5451 2008-04-08 Vincent Celier <celier@adacore.com>
5453 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5454 (Usage): Add line for switch --subdirs=
5455 Add new switch -eL, to follow symbolic links when processing project
5458 * gnatcmd.adb: Process switches -eL and --subdirs=
5459 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5460 Program_Name to get proper tool names when AAMP_On_Target is set.
5461 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5462 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5463 Osint.Program_Name).
5465 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5466 (Usage): Add lines for switches -eL and --subdirs=
5468 * makeusg.adb: Add line for switch --subdirs=
5471 (Source_Data): New Boolean component Compiled, defaulted to True
5472 (Empty_File_Name: New global variable in private part, initialized in
5473 procedure Initialize.
5474 (Subdirs_Option): New constant string
5475 (Subdirs): New String_Ptr global variable
5476 (Language_Config): New component Include_Compatible_Languages
5477 (Project_Qualifier): New type for project qualifiers
5478 (Project_Data): New component Qualifier
5479 (Project_Configuration): New component Archive_Builder_Append_Option
5481 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5482 another imported project indicate the name of this imported project.
5483 (Check_File): When a unit is in two project files, indicate the project
5484 names and the paths of the source files for each project.
5485 (Add_Source): Set Compiled to False if compiler driver is empty. Only
5486 set object, dependency and switches file names if Compiled is True.
5487 (Process_Compiler): Allow the empty string for value of attribute Driver
5488 (Get_Directories): When Subdirs is not null and Object_Dir is not
5489 specified, locate and create if necessary the actual object dir.
5490 (Locate_Directory): When Subdirs is not empty and Create is not the
5491 empty string, locate and create if necessary the actual directory
5492 as a subdirectory of directory Name.
5493 (Check_Library_Attributes.Check_Library): Allow a project where the only
5494 "sources" are header files of file based languages to be imported by
5495 library projects, in multi-language mode (gprbuild).
5496 (Check_Library_Attributes.Check_Library): In multi-language mode
5497 (gprbuild), allow a library project to import a project with no
5498 sources, even when this is not declared explicitly.
5499 (Check_If_Externally_Built): A virtual project extending an externally
5500 built project is also externally built.
5501 (Check_Library_Attributes): For a virtual project extending a library
5502 project, inherit the library directory.
5503 (Process_Project_Level_Array_Attributes): Process new attribute
5504 Inherit_Source_Path.
5505 For projects with specified qualifiers "standard", "library" or
5506 "abstract", check that the project conforms to the qualifier.
5507 (Process_Project_Level_Simple_Attributes): Process new attribute
5508 Archive_Builder_Append_Option.
5510 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5511 (Normalize_Compiler_Switches): Only keep compiler switches that are
5512 passed to gnat1 by the gcc driver and that are stored in the ALI file
5514 Do not take into account switc -save-temps
5516 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5517 gprmake is called with -eL.
5518 (Scan_Arg): Recognize switch -eL
5519 (Usage): Add line for switch -eL
5521 * prj.adb (Initialize): Initialize Empty_File_Name
5522 (Project_Empty): New component Qualifier
5524 * prj-attr.ads, prj-attr.adb: New project level attribute
5525 Inherit_Source_Path.
5526 New project level attribute Archive_Builder_Append_Option
5528 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5530 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5531 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5532 upward compatibility.
5534 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5535 each Trying ..." on different lines.
5536 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5537 is "configuration" when not in configuration. Fail when in configuration
5538 when a specified qualifier is other than "configuration".
5540 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5541 full associative array together.
5542 (Recursive_Process): Put the project qualifier in the project data
5544 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5545 (Set_Project_Qualifier_Of): New procedure
5547 2008-04-08 Robert Dewar <dewar@adacore.com>
5549 * errout.ads: Update comments for new handling of info: messages
5551 * erroutc.adb (Matches): New procedure
5552 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5553 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5554 info messages as well as style messages.
5556 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5558 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5560 (Check_A_Call): Special "info: " warnings now have ? in the text
5561 (Elab_Warning): Use info message in static case
5563 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5565 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5566 whether an array aggregate with static bounds and scalar components
5567 should be expanded into a static constant.
5569 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5570 Ed Schonberg <schonberg@adacore.com>
5571 Robert Dewar <dewar@adacore.com>
5573 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5574 Has_Stream_Attribute_ Definition when checking for available stream
5575 attributes on parameters of a limited type in Ada 2005. Necessary for
5576 proper recognition of visible stream attribute clauses.
5577 (Has_Stream_Attribute_Definition): If the type is derived from a
5578 private type, then use the derived type's underlying type for checking
5579 whether it has stream attributes.
5580 (Validate_Object_Declaration): The check for a user-defined Initialize
5581 procedure applies also to types with controlled components or a
5582 controlled ancestor.
5583 Reject an object declaration in a preelaborated unit if the type is a
5584 controlled type with an overriding Initialize procedure.
5585 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5586 checking when the parent of a dereference is a selected component and
5587 the name has not been analyzed.
5589 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5590 prefixes that are invalid explicit dereferences of remote
5591 access-to-class-wide values, first checking whether the selected
5592 component is a prefixed form of call to a tagged operation.
5593 (Analyze_Call): Remove code that issues an error for limited function
5594 calls in illegal contexts, as we now support all of the contexts that
5595 were forbidden here.
5596 Allow a function call that returns a task.and appears as the
5597 prefix of a selected component.
5598 (Analyze_Reference): Give error message if we try to make a 'Reference
5599 for an object that is atomic/aliased without its type having the
5600 corresponding attribute.
5601 (Analyze_Call): Remove condition checking for attributes to allow
5602 calls to functions with inherently limited results as prefixes of
5603 attributes. Remove related comment about Class attributes.
5604 (Analyze_Selected_Component): If the prefix is a remote type, check
5605 whether this is a prefixed call before reporting an error.
5606 (Complete_Object_Operation): If the controlling formal is an access to
5607 variable reject an actual that is a constant or an access to one.
5608 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5609 primitive operations from base type.
5611 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5613 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5614 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5615 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5616 (Expand_N_Slice): Test for prefix that is a build-in-place function call
5617 and call Make_Build_In_Place_Call_In_Anonymous_Context.
5618 (Analyze_Call): Remove code that issues an error for limited function
5619 calls in illegal contexts, as we now support all of the contexts that
5620 were forbidden here.
5621 New calling sequence for Get_Simple_Init_Val
5622 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5623 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5625 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5626 Ed Schonberg <schonberg@adacore.com>
5627 Robert Dewar <dewar@adacore.com>
5629 * exp_ch2.adb: Minor reformatting.
5630 (Expand_Entry_Index_Parameter): Set the type of the identifier.
5631 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5632 (Expand_Protected_Component): New routine.
5633 (Expand_Protected_Private): Removed.
5634 Add Sure parameter to Note_Possible_Modification calls
5636 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5637 generated subprogram declaration must inherit the overriding indicator
5638 from the instantiation node.
5639 (Validate_Access_Type_Instance): If the designated type of the actual is
5640 a limited view, use the available view in all cases, not only if the
5641 type is an incomplete type.
5642 (Instantiate_Object): Actual is illegal if the formal is null-excluding
5643 and the actual subtype does not exclude null.
5644 (Process_Default): Handle properly abstract formal subprograms.
5645 (Check_Formal_Package_Instance): Handle properly defaulted formal
5646 subprograms in a partially parameterized formal package.
5647 Add Sure parameter to Note_Possible_Modification calls
5648 (Validate_Derived_Type_Instance): if the formal is non-limited, the
5649 actual cannot be limited.
5650 (Collect_Previous_Instances): Generate instance bodies for subprograms
5653 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5655 Add Sure parameter to Note_Possible_Modification calls
5656 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5657 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5658 constant overlaid by variable and issue warning.
5659 Use new Is_Standard_Character_Type predicate
5660 (Analyze_Record_Representation_Clause): Check that the specified
5661 Last_Bit is not less than First_Bit - 1.
5662 (Analyze_Attribute_Definition_Clause, case Address): Check for
5663 self-referential address clause
5665 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5666 detection mechanism when the lhs is a prival.
5667 (Analyze_Assignment): Call Check_Unprotected_Access to detect
5668 assignment of a pointer to protected data, to an object declared
5669 outside of the protected object.
5670 (Analyze_Loop_Statement): Check for unreachable code after loop
5671 Add Sure parameter to Note_Possible_Modication calls
5672 Protect analysis from previous syntax error such as a scope mismatch
5674 (Analyze_Assignment_Statement): The assignment is illegal if the
5675 left-hand is an interface.
5677 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5678 violation of restriction No_Implicit_Conditionals
5679 Add Sure parameter to Note_Possible_Modication calls
5680 Use new Is_Standard_Character_Type predicate
5681 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5682 call as operator. Fixes problems (e.g. validity checking) which
5683 come from the result looking as though it does not come from source).
5684 (Resolve_Call): Check case of name in named parameter if style checks
5686 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5687 from the checking that such calls should not occur from an entry body.
5688 (Resolve_Call): If the return type of an Inline_Always function
5689 requires the secondary stack, create a transient scope for the call
5690 if the body of the function is not available for inlining.
5691 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5692 that are actuals for in-out formals.
5693 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5694 primitive operations from base type.
5695 (Analyze_Selected_Component): If the context is a call to a protected
5696 operation the parent may be an indexed component prior to expansion.
5697 (Resolve_Actuals): If an actual is of a protected subtype, use its
5698 base type to determine whether a conversion to the corresponding record
5700 (Resolve_Short_Circuit): Handle pragma Check
5702 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5703 Use new Is_Standard_Character_Type predicate
5704 (Eval_Relational_Op): Catch more cases of string comparison
5706 2008-04-08 Robert Dewar <dewar@adacore.com>
5707 Gary Dismukes <dismukes@adacore.com>
5709 * s-rident.ads: Add No_Default_Initialization restriction
5712 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5713 (Set_TSS): Handle No_Default_Initialization case
5715 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5716 No_Default_Initialization
5717 (Expand_N_Subprogram_Body): Remove redundant initialization of out
5718 parameters when Normalize_Scalars is active.
5719 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5720 Fix casing error in formal parameter name in call
5721 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5722 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5723 dispatching call on VM targets.
5725 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5726 Thomas Quinot <quinot@adacore.com>
5728 * exp_ch7.adb (Find_Final_List): Change the test for generating a
5729 selected component from an access type's Associated_Final_Chain to
5730 check for the presence of that field, rather than assuming it exists
5731 for all named access types.
5732 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5733 procedure to call at the end of the generated cleanup procedure.
5734 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5735 and an At_End_Proc already exists in the handled sequence of statements
5736 for which cleanup actions are being expanded, the original cleanup
5737 action must be preserved.
5739 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5740 Ed Schonberg <schonberg@adacore.com>
5741 Robert Dewar <dewar@adacore.com>
5742 Gary Dismukes <dismukes@adacore.com>
5744 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5745 Build_Unprotected_Subprogram_Body): Generate debug info for
5746 declarations related to the handling of private data in task and
5748 (Debug_Private_Data_Declarations): New subprogram.
5749 (Install_Private_Data_Declarations): Remove all debug info flagging.
5750 This is now done by Debug_Private_Data_Declarations at the correct
5752 (Build_Simple_Entry_Call): If the task name is a function call, expand
5753 the prefix into an object declaration, and make the surrounding block a
5755 (Build_Master_Entity): An internal block is a master if it wraps a call.
5756 Code reformatting, update comments. Code clean up.
5757 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5758 (Replicate_Entry_Formals): If the formal is an access parameter or
5759 anonymous access to subprogram, copy the original tree to create new
5760 entities for the formals of the subprogram.
5761 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5762 for tasks to store the value passed using pragma Relative_Deadline.
5763 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5764 run-time call to create a task.
5765 (Build_Wrapper_Spec): If the controlling argument of the interface
5766 operation is an access parameter with a non-null indicator, use the
5767 non-null indicator on the wrapper.
5769 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5770 present, which it may not be in the case where the type entity is an
5771 incomplete view brought in by a limited with.
5772 (Analyze_Task_Type): Only retrieve the full view when present, which it
5773 may not be in the case where the type entity is an incomplete view brought
5774 in by a limited with.
5775 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5776 private components of a protected type, to prevent the generation of freeze
5777 nodes for which there is no proper scope of elaboration.
5779 * exp_util.ads, exp_util.adb
5780 (Remove_Side_Effects): If the expression is a function call that returns a
5781 task, expand into a declaration to invoke the build_in_place machinery.
5782 (Find_Protection_Object): New routine.
5783 (Remove_Side_Effects): Also make a copy of the value
5784 for attributes whose result is of an elementary type.
5785 (Silly_Boolean_Array_Not_Test): New procedure
5786 (Silly_Boolean_Array_Xor_Test): New procedure
5787 (Is_Volatile_Reference): New function
5788 (Remove_Side_Effects): Use Is_Volatile_Reference
5789 (Possible_Bit_Aligned_Component): Handle slice case properly
5791 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5792 case test to Exp_Util
5793 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5795 2008-04-08 Thomas Quinot <quinot@adacore.com>
5797 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5799 (Add_RACW_Features): When processing an RACW in another unit than the
5800 main unit, set Body_Decls to No_List to indicate that the bodies of
5801 the type's TSS must not be generated.
5802 (GARLIC_Support.Add_RACW_Read_Attribute,
5803 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5804 Body_Decls is No_List.
5805 (PolyORB_Support.Add_RACW_Read_Attribute,
5806 PolyORB_Support.Add_RACW_Write_Attribute,
5807 PolyORB_Support.Add_RACW_From_Any,
5808 PolyORB_Support.Add_RACW_To_Any,
5809 PolyORB_Support.Add_RACW_TypeCode): Same.
5810 (Transmit_As_Unconstrained): New function.
5811 (Build_Ordered_Parameters_List): Use the above to order parameters.
5812 (GARLIC_Support.Build_General_Calling_Stubs):
5813 Use the above to determine which parameters to unmarshall using 'Input
5814 at the point where their temporary is declared (as opposed to later on
5816 (PolyORB_Support.Build_General_Calling_Stubs):
5817 Use the above to determine which parameters to unmarshall using From_Any
5818 at the point where their temporary is declared (as opposed to later on
5819 with an assignment).
5821 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5823 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5824 an Input function for an access type, do not perform default
5825 initialization on the local variable that receives the value, to
5826 prevent spurious warnings when the type is null-excluding.
5828 2008-04-08 Robert Dewar <dewar@adacore.com>
5829 Ed Schonberg <schonberg@adacore.com>
5831 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5833 (Size_Known): Generic formal scalar types have known at compile
5834 time size, so remove check.
5835 Fix casing error in formal parameter name in call
5836 (Freeze_Subprogram): If the subprogram is a user-defined operator,
5837 recheck its overriding indication.
5839 2008-04-08 Vincent Celier <celier@adacore.com>
5841 * gnat1drv.adb: Send all messages indicating an error to standard error
5843 2008-04-08 Robert Dewar <dewar@adacore.com>
5845 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5846 (List_Applicable_Restrictions): Do not list existing restrictions
5848 2008-04-08 Thomas Quinot <quinot@adacore.com>
5850 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5851 add a pointer to generic sockets literature
5852 do not mention that the given example is "typical" usage.
5853 Remove obsolete comment about multicast not being supported on Windows.
5854 (Connect_Socket): Make Server mode IN rather than IN OUT
5855 since this formal is never modified.
5857 2008-04-08 Robert Dewar <dewar@adacore.com>
5859 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5860 the declaration for some different entity.
5861 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5862 list is precent (following the parent subtype indication), display
5863 appropriate "and" keyword.
5865 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5866 Remove unnecessary calls to Init_Size_Align and Init_Esize.
5867 Add notes on use of Parent field of an Itype
5869 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5870 Robert Dewar <dewar@adacore.com>
5871 Gary Dismukes <dismukes@adacore.com>
5873 * lib-xref.adb (Is_On_LHS): Remove dead code
5874 (Output_Overriden_Op): If the overridden operation is itself inherited,
5875 list the ancestor operation, which is the one whose body or absstract
5876 specification is actually being overridden. For source navigation
5879 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5880 operation is primitive for the type.
5881 (Declare_Inherited_Private_Subprograms): If the new operation overrides
5882 an inherited private subprogram, set properly the Overridden_Operation
5883 attribute, for better cross-reference information.
5884 (Analyze_Package_Specification): Do late analysis of spec PPCs
5885 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5886 properly the full view and underlying full views of a private type in a
5887 child unit, whose full view is derived from a private type in a parent
5888 unit, and whose own full view becomes visible in the child body.
5890 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5891 primitive operation after the type has been frozen, add an explicit
5892 reference to the type and the operation, because other primitive
5893 references have been emitted already.
5894 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5895 dispatching call on VM targets.
5897 2008-04-08 Vincent Celier <celier@adacore.com>
5898 Thomas Quinot <quinot@adacore.com>
5900 * make.adb: (Gnatmake_Called): Remove, no longer necessary
5901 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5902 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5903 (Insert_Project_Sources): Take into account index in multi-unit source
5905 After building a library project, delete all temporary files.
5906 (Initialize): Reset current output after parsing project file.
5907 (Collect_Arguments_And_Compile): Never insert in the queue the sources
5908 of library projects that are externally built.
5909 Put file name in error and inform messages if -df is used
5910 (Display): If invoked with -d7, do not display path names, but only
5913 * makeutl.ads (Path_Or_File_Name): New function
5914 (Path_Or_File_Name): New function
5916 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5918 * Make-lang.in: Disable warnings during first stage of bootstrap
5920 Update dependencies.
5922 2008-04-08 Vincent Celier <celier@adacore.com>
5924 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5925 case to decide if ALI object file is included in library.
5926 (Build_Library): Never attempt to build a library if the project is
5929 2008-04-08 Thomas Quinot <quinot@adacore.com>
5931 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5932 (No_List) is defined to return Empty.
5934 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5936 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5939 (Read_Default_Search_Dirs): Do not consider spaces as path separators
5940 because spaces may be part of legal paths.
5942 2008-04-08 Robert Dewar <dewar@adacore.com>
5944 * par-ch11.adb (P_Exception_Handler): Check indentation level for
5947 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5949 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5950 in a type declaration, if this is not an interface declaration or
5951 private type extension.
5953 2008-04-08 Vincent Celier <celier@adacore.com>
5955 * prj-util.adb (Executable_Of): New String parameter Language. When
5956 Ada_Main is False and Language is not empty, attempt to remove the body
5957 suffix or the spec suffix of the language to get the base of the
5958 executable file name.
5959 (Put): New Boolean parameter Lower_Case, defauilted to False. When
5960 Lower_Case is True, put the value in lower case in the name list.
5961 (Executable_Of): If there is no executable suffix in the configuration,
5962 then do not modify Executable_Extension_On_Target.
5964 * prj-util.ads (Executable_Of): New String parameter Language,
5965 defaulted to the empty string.
5966 (Put): New Boolean parameter Lower_Case, defauilted to False
5968 2008-04-08 Robert Dewar <dewar@adacore.com>
5970 * scng.adb (Scan_Identifier): Handle case of identifier starting with
5971 wide character using UTF-8 encoding.
5973 2008-04-08 Javier Miranda <miranda@adacore.com>
5975 * sem.adb (Analyze): Consider case in which we analyze an empty node
5976 that was generated by a call to a runtime function that is not
5977 available under the configurable runtime.
5979 * sem.ads (Inside_Freezing_Actions): New flag.
5980 (Save_Check_Policy_List): New field in scope stack entry
5982 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5983 Robert Dewar <dewar@adacore.com>
5985 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5986 the ancestor part of an extension aggregate for a limited type.
5987 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5988 enumeration index bounds.
5989 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5990 when array is too short.
5991 (Check_Expr_OK_In_Limited_Aggregate): Move function
5992 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5994 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5995 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5996 component associations.
5997 (Check_Non_Limited_Type): Moved to outer level and renamed.
5998 (Resolve_Record_Aggregate): In an extension aggregate, an association
5999 with a box initialization can only designate a component of the
6000 extension, not a component inherited from the given ancestor
6002 * sem_case.adb: Use new Is_Standard_Character_Type predicate
6004 2008-04-08 Robert Dewar <dewar@adacore.com>
6006 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
6008 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
6009 Properly handle case where Aft > Scale and input number is less than
6012 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6014 * s-stoele.ads, s-soflin.ads: Move the location of
6015 Dummy_Communication_Block from System.Storage_Elements to
6018 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
6019 emulate Communication_Block in certain scenarios.
6021 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6023 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
6025 Add new subtype S_WWC, unchecked conversion routines From_WWC and
6027 (I_WWC, O_WWC): New routines for input and output of
6028 Wide_Wide_Character.
6030 2008-04-08 Robert Dewar <dewar@adacore.com>
6032 * stringt.adb (Write_String_Table_Entry): Handle wide characters
6035 2008-04-08 Robert Dewar <dewar@adacore.com>
6037 * styleg.adb (Check_Comment): Allow special char after -- in
6038 non-end-of-line case
6040 2008-04-08 Robert Dewar <dewar@adacore.com>
6042 * stylesw.adb: Implement -gnaty + - y options
6043 (Set_GNAT_Style_Check_Options): Includ I in style check string
6045 * stylesw.ads: Add comments for new style switch options
6047 2008-04-08 Sergey Rybin <rybin@adacore.com>
6049 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6050 to the set of the GNAT components needed by ASIS.
6052 2008-04-08 Bob Duff <duff@adacore.com>
6054 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6056 2008-04-08 Tristan Gingold <gingold@adacore.com>
6058 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6059 Improve error message generation.
6061 2008-04-08 Vincent Celier <celier@adacore.com>
6063 * a-direct.adb (Start_Search): Check for Name_Error before checking for
6064 Use_Error, as specified in the RM. Check if directory is open and raise
6065 Use_Error if it is not.
6067 2008-04-08 Vincent Celier <celier@adacore.com>
6068 Robert Dewar <dewar@adacore.com>
6070 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6071 AAMP_On_Target is set.
6073 * vms_data.ads: Add NOxxx to style check switch list
6074 Add entry COMPONENTS for -gnatVe
6075 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6077 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6078 Add qualifiers for gnatmetric coupling options
6079 Add note that -gnata enables all checks
6080 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6081 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6082 New warning flag -gnatw.e
6084 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6085 Add entry for -gnatyN (forgotten before)
6086 Line for new warning switch -gnatw.p
6087 New warning flag -gnatw.e
6089 * gnat_ugn.texi: Add documentation fpr project file switch -aP
6090 Document -gnaty - + y
6091 Replace occurences of "package specification" with "package spec"
6092 Define preprocessing symbols in documentation of gnatprep
6093 Clarify reason for distinguishing overflow checking
6094 Add documentation for project-aware tool switches -eL and --subdirs=
6095 Complete list of configuration pragmas
6096 Specify that, even when gnatmake switch -x is used, mains on the command
6097 line need to be sources of project files.
6098 Editing of gnatcheck/gnatmetric doc.
6099 Add documentation for -gnatw.p/-gnatw.P
6100 Add missing documentation for -fno-inline-functions.
6101 Add documentation for -gnatw.e
6103 * gnat_rm.texi: Add documentation for No_Default_Initialization
6104 Replace occurences of "package specification" with "package spec"
6105 Document use of * in Warnings Off string
6106 Update documentation of alignment/component clauses.
6107 Add documentation for Invalid_Value
6108 Document new consistency rule for Optimize_Alignment
6109 Add documentation for Precondition and Postcondition pragmas
6110 Add documentation for Check and Check_Policy pragmas
6111 Document new Enum_Val attribute
6112 Remove requirement for static string in pragma Assert
6113 Add documentation on GNAT.Time_Stamp
6115 * ug_words: add entry for -gnatVe
6116 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6117 Add entry for -gnatw.e
6119 * debug.adb: Add missing documentation for d.a flag
6120 Document new -gnatd.a switch.
6121 Add documentation for new gnatmake debug switch -df
6123 2008-04-08 Thomas Quinot <quinot@adacore.com>
6125 * gen-soccon.c: Bump year in copyright notices.
6127 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6129 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
6131 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6134 2008-04-08 Robert Dewar <dewar@adacore.com>
6135 Bob Duff <duff@adacore.com>
6137 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6138 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6140 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6142 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6144 * g-trasym.ads: Minor comment improvements
6146 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6148 * a-sequio.ads, a-direio.ads: improve message for tagged type
6150 * a-strunb.ads: Minor reformatting
6152 * a-tifiio.adb: Minor reformatting
6154 * atree.adb (Fix_Parents): Use clearer names for formals
6155 Cleanup and simplify code
6156 Use named notation in calls
6158 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6161 * uintp.adb: Used named notation for some confusing calls
6163 * bindusg.adb: Minor change in one line of output
6165 * cstand.adb: Minor reformatting of src representation of Standard
6167 * a-assert.ads: Add comment.
6169 * g-decstr.adb: Fix bad indentation
6171 * expander.ads, expander.adb: Code clean up.
6173 * sem_dist.ads: Minor comment improvement
6175 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6176 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6178 * i-cstrin.adb: Fix casing error in formal parameter name in call
6180 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6182 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6183 mentioned in limited_with_clauses to do create semantic dependencies
6184 even though they appear in the ali file.
6186 2008-04-08 Emmanuel Briot <briot@adacore.com>
6188 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6190 (Get_Configuration): New subprogram.
6192 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6193 These optional parameters help preserve the casing of the project's name
6194 when pretty-printing.
6196 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
6197 Arnaud Charlet <charlet@adacore.com>
6199 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6200 then use __gnat_set_exit_status to report the returned status code.
6202 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6203 messages on .NET, since some constructs of the language are not
6206 * gnatlink.adb (Gnatlink): In case the command line is too long for the
6207 .NET linker, gnatlink now concatenate all .il files and pass this to
6210 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6211 Xavier Grave <grave@ipno.in2p3.fr>
6213 * Makefile.in: Add make ifeq define for mips/mipsel support.
6214 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6215 system-linux-mips.ads: New files.
6217 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6219 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6220 detect systems using GNU libc.
6226 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6228 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6229 constant constant for sysconf call.
6230 (bit_field): New packed boolean type used by cpu_set_t.
6231 (cpu_set_t): New type corresponding to the C type with
6232 the same name. Note that on the Ada side we use a bit
6233 field array for the affinity mask. There is not need
6234 for the C macro for setting individual bit.
6235 (pthread_setaffinity_np): New imported routine.
6236 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6239 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6241 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6243 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6245 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6246 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6247 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6248 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6249 Return by Depressed Stack Pointer.
6251 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6253 * decl.c (is_variable_size): Do not unconditionally return false
6254 on non-strict alignment platforms.
6256 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6258 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6259 used to process all the variants of the specified type.
6260 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6261 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6262 (rest_of_type_decl_compilation): Likewise.
6263 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6265 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6267 * gigi.h (insert_block): Kill.
6268 * utils.c (insert_block): Kill.
6270 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6272 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6273 type has self-referential size, get the size from the initializing
6274 expression directly if it is also a constant whose nominal type
6275 has self-referential size.
6277 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6280 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6283 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6284 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6286 2008-04-01 Andreas Jaeger <aj@suse.de>
6288 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6291 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6293 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6294 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6295 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6296 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6297 gnatlink.adb, gnatmem.adb, gprep.adb,
6298 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6299 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6300 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6301 lib-xref.ads, lib.adb, link.c, live.ads,
6302 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6303 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6304 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6305 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6306 namet.adb, namet.h, nlists.adb, nlists.ads,
6307 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6308 osint-c.ads, osint.adb, osint.ads, output.ads,
6309 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6310 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6311 par-endh.adb, par-labl.adb, par-prag.adb,
6312 par-sync.adb, par-tchk.adb, par-util.adb,
6313 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6314 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6315 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6316 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6318 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6320 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6321 size if it has overflowed.
6323 2008-03-31 Olivier Hainque <hainque@adacore.com>
6324 Eric Botcazou <ebotcazou@adacore.com>
6326 * utils2.c (find_common_type): Document assumption on t1/t2 vs
6327 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6329 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6331 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6332 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6333 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6334 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6335 exp_tss.ads, exp_util.adb, exp_util.ads,
6336 exp_vfpt.adb, freeze.adb, freeze.ads,
6337 frontend.adb, g-alleve.adb, g-altcon.adb,
6338 g-altive.ads, g-alveop.ads, g-alvevi.ads,
6339 g-arrspl.adb, g-busorg.ads, g-calend.adb,
6340 g-calend.ads, g-casuti.ads, g-cgideb.adb,
6341 g-comlin.adb, g-comlin.ads, g-curexc.ads,
6342 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6343 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6344 g-dyntab.adb, g-encstr.ads, g-excact.ads,
6345 g-except.ads, g-expect.ads, g-heasor.adb,
6346 g-hesora.adb, g-hesorg.adb, g-htable.ads,
6347 g-locfil.ads, g-md5.adb, g-md5.ads,
6348 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6349 g-pehage.adb, g-pehage.ads, g-regexp.adb,
6350 g-regexp.ads, g-regpat.adb, g-regpat.ads,
6351 g-soccon-aix.ads, g-soccon-darwin.ads,
6352 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6353 g-soccon-hpux.ads, g-soccon-irix.ads,
6354 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6355 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6356 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6357 g-soccon-solaris.ads, g-soccon-tru64.ads,
6358 g-soccon-vms.ads, g-soccon-vxworks.ads,
6359 g-soccon.ads, g-socket.adb, g-socket.ads,
6360 g-socthi-mingw.adb, g-socthi-vms.adb,
6361 g-socthi-vxworks.adb, g-soliop-mingw.ads,
6362 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6363 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6366 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
6368 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6369 if the procedure is imported.
6371 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6373 * adaint.c: Fix warnings.
6375 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6377 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6379 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6381 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6382 Fix problem of status check for null file
6384 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6386 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6387 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6388 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6389 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6390 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6393 2008-03-26 Thomas Quinot <quinot@adacore.com>
6396 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6397 Get_Socket_Option): Add support for Receive_Packet_Info.
6399 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6400 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6401 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6402 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6403 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6404 new constants SO_REUSEPORT and IP_PKTINFO
6406 2008-03-26 Robert Dewar <dewar@adacore.com>
6408 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6409 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6410 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6411 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6412 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6413 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6414 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6415 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6416 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6417 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6418 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6419 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6420 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6421 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6422 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6423 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6424 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6425 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6426 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6427 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6428 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6429 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6430 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6431 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6432 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6433 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6434 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6435 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6436 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6437 s-tasloc.adb: Minor reformatting.
6439 Remove "used for" sections from comments.
6441 2008-03-26 Robert Dewar <dewar@adacore.com>
6443 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6444 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6445 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6446 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6447 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6448 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6449 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6450 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6451 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6452 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6453 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6454 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6455 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6456 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6457 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6458 double spaced if it fits on one line and otherwise single spaced.
6460 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6462 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6463 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6464 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6465 or task info if the thread could not be created.
6467 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6469 * gnatvsn.ads (Library_Version): Bump to 4.4.
6470 (Current_Year): Bump to 2008.
6472 2008-03-26 Robert Dewar <dewar@adacore.com>
6474 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6476 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6478 * debug.adb: Add debug flags d.r and d.v
6479 Add debug flag .T (Optimize_Alignment (Time))
6480 Add debug flag .S (Optimize_Alignment (Space))
6482 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6483 depending on setting of relevant debug flags.
6484 Replace use of Warnings_Off by Has_Warnings_Off
6485 (Freeze_Entity): In circuit for warning on suspicious convention
6486 actuals, do not give warning if subprogram has same entity as formal
6487 type, or if subprogram does not come from source.
6488 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6489 if Optimize_Alignment set to Space.
6491 * frontend.adb: Add call to Sem_Warn.Initialize
6492 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6493 Reset Optimize_Alignment mode from debug switches .S and .T
6495 * layout.adb (Layout_Composite_Object): Rewritten for
6496 Optimize_Aligment pragma.
6498 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6501 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6503 * par-prag.adb (N_Pragma): Chars field removed, use Chars
6504 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6505 this change. Add entry for pragma Optimize_Alignment
6507 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6508 (Pragma_Identifier (..
6509 instead, adjustments throughout to accomodate this change.
6510 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6511 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6512 Add implementation of pragma Optimize_Alignment
6514 2008-03-26 Vincent Celier <celier@adacore.com>
6516 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6517 Improve memory usage to avoid use of stack.
6519 2008-03-26 Robert Dewar <dewar@adacore.com>
6521 * a-teioed.ads: Correct value of Default_Fill
6523 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6525 2008-03-26 Robert Dewar <dewar@adacore.com>
6527 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6528 with Current_Output (introduce Self).
6530 2008-03-26 Robert Dewar <dewar@adacore.com>
6532 * checks.adb (Ensure_Valid): Capture valid status if possible
6535 2008-03-26 Robert Dewar <dewar@adacore.com>
6537 * stand.ads: Deal with reordering of package standard declarations
6539 * cstand.adb: Put package Standard declarations in proper order
6541 2008-03-26 Robert Dewar <dewar@adacore.com>
6543 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6544 (Pragma_Identifier (.. instead.
6545 (OK_To_Reorder_Components): New flag
6546 (Has_Entries): Code cleanup.
6547 (Warnings_Off_Used): New flag
6548 (Warnings_Off_Used_Unmodified): New flag
6549 (Warnings_Off_Used_Unreferenced): New flag
6550 (Has_Warnings_Off): New function
6551 (Has_Unmodified): New function
6552 (Has_Unreferenced): New function
6553 (Is_Trivial_Subprogram): New flag
6554 (Is_Static_Dispatch_Table_Entity): New attribute.
6555 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6556 (more consistent with other similar names)
6557 (Access_Subprogram_Type): New classification function
6559 2008-03-26 Robert Dewar <dewar@adacore.com>
6561 * errout.ads: Document new !! insertion sequence
6563 * errout.adb (N_Pragma): Chars field removed, use Chars
6564 (Pragma_Identifier (.. instead.
6565 Replace use of Warnings_Off by Has_Warnings_Off
6566 (Error_Msg_Internal): Don't delete warning ending in !!
6568 2008-03-26 Robert Dewar <dewar@adacore.com>
6570 * par.adb (Check_No_Right_Paren): Removed no longer used
6572 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6573 (Pragma_Identifier (.. instead.
6575 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6577 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6578 par-ch4.adb: Minor improvements in error recovery and messages.
6580 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6583 * par-ch9.adb: Minor improvements in error recovery and messages
6584 (P_Protected): Better error recovery for "protected type x;"
6586 * par-util.adb: Minor improvements in error recovery and messages
6587 (Check_No_Right_Paren): Removed no longer used
6589 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6591 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6592 that the prefix of an attribute is the type of the aggregate being
6595 2008-03-26 Javier Miranda <miranda@adacore.com>
6596 Robert Dewar <dewar@adacore.com>
6598 * exp_attr.adb (N_Pragma): Chars field removed.
6599 (Expand_N_Attribute_Reference): If the designated type associated with
6600 attribute 'Unrestricted_Access is a subprogram entity then replace it
6601 by an E_Subprogram_Type itype.
6602 Implement attribute Old
6604 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6606 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6608 New_Internal_Entity by call to Create_Itype to centralize calls
6609 building itypes, ad propagate the convention of the designated
6610 subprogram. In addition, disable the machinery cleaning constant
6611 indications from all entities in current scope when 'Unrestricted_Access
6612 corresponds with a node initializing a dispatch table slot.
6613 (Analyze_Attribute): Parameterless attributes returning a string or a
6614 type will not be called with improper arguments, so we can remove junk
6615 code that was dealing with this case.
6616 Implement attribute Old
6618 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6619 Add entry for pragma Optimize_Alignment
6620 New standard names Sync and Synchronize
6622 2008-03-26 Robert Dewar <dewar@adacore.com>
6623 Arnaud Charlet <charlet@adacore.com>
6625 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6627 (No_Exception_Propagation_Active): New function.
6628 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6629 Update comments, and review all uses of No_Exception_Propagation, which
6630 are now correct and in sync with what gigi expects.
6632 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6634 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6635 Update comments, and review all uses of No_Exception_Propagation, which
6636 are now correct and in sync with what gigi expects.
6638 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6640 * sem_ch3.adb (Access_Definition): If the access type is the return
6641 result of a protected function, create an itype reference for it
6642 because usage will be in an inner scope from the point of declaration.
6643 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6644 OK_To_Reorder_Components.
6645 (Make_Index): If an overloaded range includes a universal integer
6646 interpretation, resolve to Standard.Integer.
6647 (Analyze_Subtype_Indication): Copy Convention to subtype
6648 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6649 limited an synchronized progenitors in type declaration and private
6650 extension declarations.
6652 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6653 protected subprogram body, determine proper scope from subprogram
6656 2008-03-26 Robert Dewar <dewar@adacore.com>
6658 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6661 2008-03-26 Gary Dismukes <dismukes@adacore.com>
6663 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6664 of a heap allocator for a limited unconstrained function return when
6665 resstriction No_Allocators is active.
6666 (Analyze_Allocator): The restriction No_Allocators is now only checked
6667 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6669 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6670 of a heap allocator for a limited unconstrained function return when
6671 resstriction No_Allocators is active.
6672 (Analyze_Allocator): The restriction No_Allocators is now only checked
6673 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6674 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
6675 operands are fixed-point types, the universal_fixed predefined operation
6676 is used, regardless of whether the operand type (s) have a primitive
6677 operation of the same name.
6679 2008-03-26 Javier Miranda <miranda@adacore.com>
6681 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6682 Is_Static_Dispatch_Table
6683 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6684 to Exchange_Declarations to exchange the private and full-view. Bug
6685 found working in this issue.
6686 (Expand_Dispatching_Call): Propagate the convention of the subprogram
6687 to the subprogram pointer type.
6688 (Make_Secondary_DT): Replace generation of Prim'Address by
6689 Address (Prim'Unrestricted_Access)
6690 (Make_DT): Replace generation of Prim'Address by
6691 Address (Prim'Unrestricted_Access)
6692 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6693 simple call form for single entry.
6694 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6695 tables of predefined primitives).
6696 (Make_Secondary_DT): Add support to handle access to dispatch tables of
6697 predefined primitives.
6698 (Make_Tags): Add entities to Access_Dispatch_Table associated with
6699 access to dispatch tables containing predefined primitives.
6701 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6702 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6704 (Register_Predefined_DT_Entry): Updated to handle the new contents
6705 of attribute Access_Disp_Table (pointers to dispatch tables containing
6706 predefined primitives).
6708 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6710 (Find_Interface_ADT): Updated to skip the new contents of attribute
6711 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6714 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6716 (Set_Convention): Use new function Is_Access_Subprogram_Type
6717 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6718 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6721 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6722 expanded code avoiding calls to Build_Predef_Prims.
6723 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6724 call to Build_Get_Predefined_Prim_Op_Address.
6726 2008-03-26 Javier Miranda <miranda@adacore.com>
6728 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6729 subprogram Corresponding_Runtime_Package to know the runtime package
6730 that will provide support to a given protected type.
6732 * exp_ch9.adb (Add_Private_Declarations,
6733 Build_Protected_Subprogram_Call,
6734 Build_Protected_Entry, Build_Simple_Entry_Call,
6735 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6736 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6737 cleanup using the new centralized subprogram Corresponding_Runtime
6738 Package to know the runtime package that provides support to
6739 a given protected type.
6741 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6743 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6744 assignment is within the initialization procedure for a packed array,
6745 and Initialize_Scalars is enabled, compile right-hand side with checks
6746 off, because the value is purposely out of range.
6748 2008-03-26 Vincent Celier <celier@adacore.com>
6750 * gnatcmd.adb: Add processing for GNAT SYNC
6752 * vms_conv.ads: (Command_Type): Add command Sync
6754 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6756 * vms_data.ads: Add entries for -gnatw.w
6757 Add qualifier for gnatstub --header-file option
6758 Add switches for GNAT SYNC
6760 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6761 (Add_Package_Name): New procedure
6762 (Package_Name_List): New function
6763 (Initialize): Add known package names to the list
6764 (Register_New_Package): Add the new package name to the list
6766 2008-03-26 Robert Dewar <dewar@adacore.com>
6768 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6769 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6770 Raise_Exception by "raise with" construct.
6772 2008-03-26 Pascal Obry <obry@adacore.com>
6774 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6775 supported platforms.
6777 * Makefile.rtl: Add g-sercom.o.
6779 * impunit.adb: Add g-sercom.adb.
6781 * s-crtl.ads (open): New routine.
6785 * s-osinte-mingw.ads (BYTE): New type.
6787 (OVERLAPPED): Likewise.
6788 (GENERIC_READ): New constant.
6789 (GENERIC_WRITE): Likewise.
6790 (OPEN_EXISTING): Likewise.
6791 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6793 (CreateFile): New routine.
6794 (WriteFile): Likewise.
6795 (ReadFile): Likewise.
6796 (CloseHandle): Move next to the other file oriented routines.
6798 * g-sercom.ads: New unit.
6800 * g-sercom.adb: Default implementation, calls to this unit will raise
6801 a program error exception.
6803 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6804 GNU/Linux implementations.
6806 2008-03-26 Robert Dewar <dewar@adacore.com>
6808 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6810 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6811 unchecked conversion for different conventions only for subprogram
6814 2008-03-26 Vincent Celier <celier@adacore.com>
6816 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6817 to check if the specified object file is correct.
6819 2008-03-26 Thomas Quinot <quinot@adacore.com>
6821 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6822 Comes_From_Source to exclude primitives from being checked. We want to
6823 exclude predefined primitives only, so use the appropriate specific
6824 predicate. Also, flag a formal parameter of an anonymous
6825 access-to-subprogram type as illegal for a primitive operation of a
6826 remote access to class-wide type.
6828 2008-03-26 Vincent Celier <celier@adacore.com>
6830 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6831 known, check if it may be a missspelling of a known package name. In
6832 not verbose, not mode, issue warnings only if the package name is a
6833 possible misspelling.
6834 In verbose mode, always issue a warning for a not known package name,
6835 plus a warning if the name is a misspelling of a known package name.
6837 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6838 limited withs or limited withs are parse during one call.
6839 (Parse_Single_Project): Post parse context clause in two passes: non
6840 limited withs before current project and limited withs after current
6843 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6844 project with the name With_Name, even if it is only extended indirectly.
6845 (Recursive_Process): Process projects in order: first single withs, then
6846 current project, then limited withs.
6848 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6849 project with the name With_Name, even if it is only extended indirectly.
6851 2008-03-26 Robert Dewar <dewar@adacore.com>
6853 * scn.adb (Initialize_Scanner): Format messages belong on standard error
6855 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6857 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6858 a generic subprogram that is imported, do not attempt to compile
6861 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6862 imported, do not generate a raise_program_error for the non-existent
6864 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6865 perform minimal name resolution on the generic to avoid spurious
6867 (Find_Actual_Type): the designated type of the actual in a child unit
6868 may be declared in a parent unit without being an actual.
6870 2008-03-26 Robert Dewar <dewar@adacore.com>
6872 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6873 * sinfo.ads, sinfo.adb (From_At_End): New flag
6875 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6877 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6878 operations that have an interface parameter.
6879 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6880 Don't treat No_Return call as raise.
6882 * sem_disp.adb (Check_Dispatching_Operations): apply check for
6883 non-primitive interface primitives to access parameters, not to all
6884 parameters of an access type.
6886 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6888 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6889 declarations of a parent unit are made visible when compiling a child
6890 instance, the parent is not a hidden open scope, even though it may
6891 contain other pending instance.
6893 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6894 hidden open scope for some child instance, it does affect the
6895 visibility status of other stach entries.
6896 (Analyze_Object_Renaming): Check that a class-wide object cannot be
6897 renamed as an object of a specific type.
6899 2008-03-26 Robert Dewar <dewar@adacore.com>
6901 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6902 recursion and raise SE directly.
6903 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6904 set for formal type for IN mode parameter.
6906 2008-03-26 Robert Dewar <dewar@adacore.com>
6908 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6909 (Initialize): New procedure
6910 (Output_Warnings_Off_Warnings): New procedure
6911 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6912 (Output_Non_Modifed_In_Out_Warnings): Ditto
6913 (Warn_On_Unreferenced_Entity): Ditto
6915 2008-03-26 Vincent Celier <celier@adacore.com>
6917 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6920 2008-03-26 Matthew Heaney <heaney@adacore.com>
6922 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
6923 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6924 Marked with clauses as private, and controlled operations as overriding
6926 2008-03-26 Robert Dewar <dewar@adacore.com>
6928 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6930 2008-03-26 Robert Dewar <dewar@adacore.com>
6932 * back_end.adb, back_end.ads: Minor reformatting
6934 * bindgen.adb: Minor clarification of comments
6936 * fname.ads: Minor comment fixes
6938 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6939 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6941 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6942 xsnames.adb: Remove warnings off pragma no longer needed
6944 * a-catizo.ads, a-calari.ads, a-calfor.adb,
6945 a-calfor.ads: Fix header.
6947 2008-03-26 Tristan Gingold <gingold@adacore.com>
6949 * init.c: Do not adjust pc for HPARITH on alpha/vms.
6951 2008-03-26 Robert Dewar <dewar@adacore.com>
6953 * lib-xref.adb: (OK_To_Set_Reference): New function
6954 (Generate_Reference): Don't set referenced from occurrence in Warnings,
6955 Unmodified, or Unreferenced pragma
6957 2008-03-26 Robert Dewar <dewar@adacore.com>
6959 * alloc.ads: Add entries for Warnings_Off_Pragmas table
6961 2008-03-26 GNAT Script <nobody@adacore.com>
6963 * Make-lang.in: Makefile automatically updated
6965 2008-03-26 Robert Dewar <dewar@adacore.com>
6967 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6968 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6969 removed, use Chars (Pragma_Identifier (.. instead, adjustments
6970 throughout to accomodate this change.
6972 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6974 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6975 Einfo.Set_Needs_Debug_Info)
6977 2008-03-26 Robert Dewar <dewar@adacore.com>
6979 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6980 Add description for the new gnatstub option '--header-file'
6981 clarification of -gnatwz/-gnatwZ
6982 Add a "Irix-Specific Considerations" section to document the need to
6983 set LD_LIBRARY_PATH when using the default shared runtime library.
6984 Added documentation for both gcov and gprof.
6986 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6987 messages that are not suppressed when clients are compiled.
6988 Add documentation of s-pooglo s-pooloc
6989 Document the new GNAT.Serial_Communications API.
6990 Add documentation for 'Old attribute
6991 Add description of pragma Optimize_Alignment
6993 * ug_words: Add entries for -gnatw.w -gnatw.W
6995 * usage.adb: Add line for -gnatw.w (warn on warnings off)
6997 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
7000 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7002 * decl.c (maybe_pad_type): Avoid padding an integral type when
7003 bumping its alignment is sufficient.
7005 2008-03-25 Arnaud Charlet <charlet@adacore.com>
7007 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
7008 Fix wrong formatting (lines too long)
7010 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7012 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
7013 a-calend-vms.adb, a-calend.adb, a-calend.ads,
7014 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
7015 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
7016 a-cohama.ads, a-comlin.ads, a-coorse.adb,
7017 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
7018 a-except-2005.ads, a-except.adb, a-except.ads,
7019 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
7020 a-exextr.adb, a-filico.ads, a-finali.ads,
7021 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
7022 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
7023 a-sequio.ads, a-strbou.ads, a-strfix.adb,
7024 checks.adb, exp_ch3.adb, exp_ch4.adb,
7025 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
7026 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
7027 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
7028 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
7029 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
7031 2008-03-24 Robert Dewar <dewar@adacore.com>
7033 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7034 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7035 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7036 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7037 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7038 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7039 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7040 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7041 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7042 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7043 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7044 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7045 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7046 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7047 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7048 double spaced if it fits on one line and otherwise single spaced.
7050 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7052 PR documentation/15479
7053 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7054 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7055 (doc/gnat_ugn.info): Renamed from ...
7056 (doc/gnat_ugn_unw.info): ... this.
7057 (doc/gnat_ugn.dvi): Renamed from ...
7058 (doc/gnat_ugn_unw.dvi): ... this.
7059 (doc/gnat_ugn.pdf): Renamed from ...
7060 (doc/gnat_ugn_unw.pdf): ... this.
7061 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7063 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7064 unconditionally to gnat_ugn.info. Fix cross references to the
7065 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
7066 and GNU make manuals to be proper texinfo links.
7067 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7069 2008-03-21 Olivier Hainque <hainque@adacore.com>
7071 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7072 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7074 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
7076 * trans.c (addressable_p): Add notes on addressability issues.
7078 2008-03-21 Olivier Hainque <hainque@adacore.com>
7079 Ed Schonberg <schonberg@adacore.com>
7081 * trans.c (addressable_p): Accept COND_EXPR when both arms
7083 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7084 (call_to_gnu): Do not use name reference in the error message
7085 for a misaligned by_reference_parameter. The actual may be a
7088 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7090 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7092 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7094 * gnat_rm.texi (Implementation Defined Characteristics)
7095 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7097 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7098 (Switches for gnatchop, Installing a library): Likewise.
7100 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
7102 * trans.c (emit_range_check): Do not emit the check if the base type
7103 of the expression is the type against which its range must be checked.
7105 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7107 * decl.c (maybe_pad_type): Use value_factor_p.
7109 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7111 * lang.opt (nostdlib): Move around.
7112 * misc.c (gnat_handle_option): Fix formatting.
7113 (gnat_dwarf_name): Move around.
7114 * trans.c (Case_Statement_to_gnu): Fix formatting.
7115 (gnat_to_gnu): Likewise.
7116 * utils.c (aggregate_type_contains_array_p): Likewise.
7117 (create_subprog_decl): Likewise.
7119 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7121 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7122 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7124 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7126 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7127 BIGGEST_ALIGNMENT when capping the alignment of records with
7128 strict alignment and size clause.
7130 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7132 * lang-specs.h: Pass -gnatwa if -Wall is passed.
7133 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7134 and -Wuninitialized.
7135 (gnat_post_options): Clear warn_unused_parameter.
7137 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7139 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7140 aligned bit-fields, bumping the alignment of the record type if deemed
7142 (value_factor_p): Return false instead of 0.
7144 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7146 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7147 for scalar types with small alignment.
7149 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7151 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7152 from that of the front-end's end label.
7153 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7154 from that of the loop label.
7156 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7158 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7159 comment for the packed array type case.
7160 * utils.c (build_template): Use a loop to strip padding or
7161 containing records for justified modular types.
7163 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7165 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7166 large alignments specified for types.
7167 (validate_alignment): Minor cleanup.
7169 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7171 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7172 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7173 the component for packing, if possible, as well as if a component
7174 size clause is specified.
7175 <E_Record_Subtype>: For an array type used to implement a packed
7176 array, get the component type from the original array type.
7177 Try to get a smaller form of the component for packing, if possible,
7178 as well as if a component size clause is specified.
7179 (round_up_to_align): New function.
7180 (make_packable_type): Add in_record parameter.
7181 For a padding record, preserve the size. If not in_record and the
7182 size is too large for an integral mode, attempt to shrink the size
7183 by lowering the alignment.
7184 Ditch the padding bits of the last component.
7185 Compute sizes and mode manually, and propagate the RM size.
7186 Return a BLKmode record type if its size has shrunk.
7187 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7188 Use Original_Array_Type to retrieve the type in case of an error.
7189 Adjust call to make_packable_type.
7190 (gnat_to_gnu_field): Likewise.
7191 (concat_id_with_name): Minor tweak.
7192 * trans.c (larger_record_type_p): New predicate.
7193 (call_to_gnu): Compute the nominal type of the object only if the
7194 parameter is by-reference. Do the conversion actual type -> nominal
7195 type if the nominal type is a larger record.
7196 (gnat_to_gnu): Do not require integral modes on the source type to
7197 avoid the conversion for types with identical names.
7198 (addressable_p): Add gnu_type parameter. If it is specified, do not
7199 return true if the expression is not addressable in gnu_type.
7200 Adjust recursive calls.
7201 * utils.c (finish_record_type): Remove dead code.
7203 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7206 * decl.c (maybe_pad_type): Avoid padding an integral type when
7207 bumping its alignment is sufficient.
7209 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7211 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7212 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7214 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7215 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7216 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7217 code output strings.
7218 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7219 system-vms_64.ads: Fix typos in ada source code comments.
7220 * sinfo-cn.adb: Remove incomplete sentence.
7222 PR documentation/15479
7223 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7225 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7228 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7230 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7233 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7234 that underlying type is present.
7236 2008-02-26 Tom Tromey <tromey@redhat.com>
7238 * misc.c (internal_error_function): Remove test of
7239 USE_MAPPED_LOCATION.
7240 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7241 (Sloc_to_locus): Remove old location code.
7243 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7245 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7246 `i.e.' by adding comma or `@:' as appropriate.
7247 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7248 plain characters `C', use `@samp{C}'.
7249 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7250 (Krunching Method): Likewise.
7252 * gnat_ugn.texi (Conventions): List environment variables and
7253 metasyntactic variables.
7254 (Compiling Programs): Fix notation of metasyntactic variables.
7255 Add @file where appropriate. Use @file for file extensions,
7257 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7258 instead of @file, @env instead of @code.
7260 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7262 PR documentation/15479
7263 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7264 and `...' with `@dots{}' or `@enddots{}'.
7266 PR documentation/15479
7267 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7268 use @command instead of @code, @option instead of @samp or @code,
7269 @code instead of @var, @samp instead of @file.
7271 PR documentation/15479
7272 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7273 in Makefile rules, by using `&&' rather than `;'.
7275 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7277 PR documentation/15479
7278 * gnat_ugn.texi: In non-code, avoid space before colon.
7279 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7280 (Examples of gnatxref Usage): Use @command{vi} instead of
7282 (Character Set Control): Do not use @code for UTF-8.
7283 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7285 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7287 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7289 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
7292 * env.c: Add __rtems__ to if defined.
7293 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7294 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7295 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7296 pragma Convention as required.
7297 * gsocket.h: Make compile in and out of RTS.
7298 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7299 Use g-soccon-rtems.ads.
7300 * g-soccon-rtems.ads, system-rtems.ads: New files.
7302 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7305 * Make-lang.in (gnat1): Add $(GMPLIBS).
7307 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7309 * decl.c (components_to_record): Improve comment.
7311 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7313 * decl.c (components_to_record): Do not reuse the empty union type
7314 if there is a representation clause on the record.
7315 * trans.c (addressable_p): Return true for INTEGER_CST.
7317 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7319 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7320 in pointer arithmetics.
7321 * utils2.c (build_allocator): Likewise.
7323 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7325 * utils.c (build_function_stub): Properly build the call expression.
7327 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7329 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7330 before converting the expression to the type of the object.
7331 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7332 Stabilize constructors for special wrapping types.
7334 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
7336 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7337 when necessary. Merge some conditional statements. Update comments.
7338 Rename unchecked_convert_p local variable to suppress_type_conversion.
7339 Do not suppress conversions in the In case.
7340 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7341 into account on non strict-alignment platforms.
7343 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7345 * utils.c (aggregate_type_contains_array_p): New predicate.
7346 (create_field_decl): In a packed record, force byte alignment
7347 for fields without specified position that contain an array.
7349 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7351 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7353 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
7356 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7358 (bit_field): New packed boolean type used by cpu_set_t.
7359 (cpu_set_t): New type corresponding to the C type with
7360 the same name. Note that on the Ada side we use a bit
7361 field array for the affinity mask. There is not need
7362 for the C macro for setting individual bit.
7363 (pthread_setaffinity_np): New imported routine.
7365 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
7368 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7369 on OpenBSD as is done on other BSD systems.
7372 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7373 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7377 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7381 * init.c (__gnat_error_handler, __gnat_install_handler,
7382 __gnat_init_float): Define for OpenBSD.
7384 * initialize.c (__gnat_initialize): Define for OpenBSD.
7386 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
7389 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7390 instead of mktemp() or tmpnam() on NetBSD.
7392 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
7394 * trans.c (call_to_gnu): Make the temporary for non-addressable
7395 In parameters passed by reference.
7396 (addressable_p): Return true for STRING_CST and CALL_EXPR.
7398 2007-12-19 Robert Dewar <dewar@adacore.com>
7400 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7401 Add pragma Warnings (Off) for unassigned IN OUT arguments
7403 * sem_warn.adb (Output_Reference): Suppress messages for internal names
7404 (Check_References): Extensive changes to tune up warnings
7405 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7406 (Has_Pragma_Unmodifed_Check_Spec): New function
7407 (Check_References): Implement pragma Unmodified
7408 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7410 * par-prag.adb: Dummy entry for pragma Unmodified
7412 * sem_prag.adb: Implement pragma Unmodified
7414 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7415 (Proc_Next_Component_Or_Discriminant): Fix typo.
7418 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7420 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7421 because the former already takes care of discarding the result.
7422 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7425 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7427 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
7429 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7430 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7431 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7432 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7433 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7434 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7435 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7436 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7437 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7438 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7439 (Dynamic_Trampolines_Used): Delete.
7441 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7442 Turn on stack probing mechanism on LynxOS.
7444 2007-12-19 Bob Duff <duff@adacore.com>
7446 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7447 the resulting tail recursion by hand. This prevents running out of
7448 memory on deeply nested concatenations, since Field2 is where the left
7449 operand of concatenations is stored.
7450 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7451 clarify that it can only return OK or Abandon.
7453 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7454 operand by iteration, in order to avoid running out of memory on
7455 deeply-nested concatenations. Use the Parent pointer to get back up the
7457 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7458 Resolve_Op_Concat_Rest): New procedures split out of
7459 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7462 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7463 Traverse_Func, because the former already takes care of discarding the
7466 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7467 because the former already takes care of discarding the result.
7468 (Remove_Warning_Messages): Use appropriate subtype for Status and
7471 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7473 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7474 discriminants forces expansion of the aggregate into assignments.
7475 (Init_Record_Controller): If the type of the aggregate is untagged and
7476 is not inherently limited, the record controller is not limited either.
7478 2007-12-19 Robert Dewar <dewar@adacore.com>
7480 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7481 handling compile time known size of record or array (case of front end
7482 layout active, e.g. in GNAAMP).
7484 2007-12-19 Javier Miranda <miranda@adacore.com>
7486 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7487 that forces the construction of static dispatch tables in case of
7490 2007-12-19 Robert Dewar <dewar@adacore.com>
7492 * exp_ch9.adb (Null_Statements): Moved to library level
7493 (Trivial_Accept_OK): New function
7494 (Expand_Accept_Declaration): Use Trivial_Accept_OK
7495 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7497 2007-12-19 Robert Dewar <dewar@adacore.com>
7499 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7500 in complex case where array is Volatile.
7502 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7504 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7505 properly the Ada2005 rules concerning when the current instance of a
7506 record type is aliased.
7508 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7510 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7512 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7514 (P_Variant_Part): Cleaner patch for parenthesized discriminant
7516 2007-12-19 Vincent Celier <celier@adacore.com>
7518 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7519 package is not known
7521 * prj-attr.ads (Unknown_Package): New constant
7522 Do not crash when an unknown package is in several projects
7524 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7527 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7528 existing package Language_Processing.
7530 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7531 Gary Dismukes <dismukes@adacore.com>
7532 Samuel Tardieu <sam@rfc1149.net>
7534 PR ada/15803, ada/15805
7535 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7536 illegal access subtypes when there is a constrained partial view.
7537 (Check_For_Premature_Usage): New procedure inside
7538 Access_Subprogram_Declaration for checking that an access-to-subprogram
7539 type doesn't reference its own name within any formal parameters or
7540 result type (including within nested anonymous access types).
7541 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7542 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7543 context is an access_to_variable, the expression cannot be an
7546 2007-12-19 Bob Duff <duff@adacore.com>
7548 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7549 (Analyze_Concatenation): Use iteration instead of recursion in order
7550 to avoid running out of stack space for deeply nested concatenations.
7552 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7553 Gary Dismukes <dismukes@adacore.com>
7555 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7556 whose renamed entity is a subprogram that requires overriding.
7557 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7558 issuing an error for premature usage and issue a message that says
7559 'type' rather than 'object'.
7561 2007-12-19 Gary Dismukes <dismukes@adacore.com>
7564 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7565 presence of a statically tagged operand (Present (Static_Tag)) with
7566 test for Indeterm_Ancestor_Call when determining whether to propagate
7567 the static tag to tag-indeterminate operands (which forces dispatching
7569 (Check_Controlling_Formals): Ada2005, access parameters can have
7571 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7572 not insert subprogram in list of primitive operations if already there.
7574 2007-12-19 Tristan Gingold <gingold@adacore.com>
7576 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7579 2007-12-19 Thomas Quinot <quinot@adacore.com>
7581 Part of PR ada/33688
7582 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7583 datagram info on Linux.
7585 2007-12-19 Vincent Celier <celier@adacore.com>
7587 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7588 that the source path name is always found in the dependencies.
7590 2007-12-19 Robert Dewar <dewar@adacore.com>
7592 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7593 Fix name of Wide_Wide_Latin_1/9 file names
7594 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7595 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7596 Add missing documentation for Ada.Command_Line.Response_File
7597 Update list of warning letters for Warnings pragma
7598 Add documentation for pragma Unmodified
7600 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
7602 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7604 2007-12-17 Arnaud Charlet <charlet@adacore.com>
7606 * s-vxwork-alpha.ads: Removed, no longer used.
7608 2007-12-15 Jakub Jelinek <jakub@redhat.com>
7610 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7612 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
7615 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7616 mlib-tgt-specific.adb.
7618 2007-12-13 Bob Duff <duff@adacore.com>
7620 * trans.c (Attribute_to_gnu): Check for violations of the
7621 No_Implicit_Dynamic_Code restriction. This checking used to be done in
7622 the front end, but is moved here so we can make it more accurate.
7624 2007-12-13 Pascal Obry <obry@adacore.com>
7626 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7627 version is provided for older GNU/Linux distribution not
7628 supporting thread affinity sets.
7630 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7632 (bit_field): New packed boolean type used by cpu_set_t.
7633 (cpu_set_t): New type corresponding to the C type with
7634 the same name. Note that on the Ada side we use a bit
7635 field array for the affinity mask. There is not need
7636 for the C macro for setting individual bit.
7637 (pthread_setaffinity_np): New imported routine.
7639 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7641 (Create_Task): Set the processor affinity mask if information
7644 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7646 2007-12-13 Robert Dewar <dewar@adacore.com>
7648 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7649 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7650 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7651 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7652 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7653 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7654 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7655 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7656 for subprogram pointers.
7658 * g-ctrl_c.adb: New file.
7660 * g-ctrl_c.ads (Install_Handler): New body.
7662 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7663 instead of obsolete function Is_Always_Inlined.
7664 (Freeze_Entity): check for tagged type in imported C subprogram
7665 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7666 (Freeze_Entity): check for convention Ada subprogram pointer in
7667 imported C subprogram.
7668 (Freeze_Fixed_Point_Type): In the case of a base type where the low
7669 bound would be chopped off and go from negative to zero, force
7670 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7671 bound) so that the size computation for the base type will take
7672 negative values into account.
7674 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
7675 Bob Duff <duff@adacore.com>
7676 Tristan Gingold <gingold@adacore.com>
7678 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7679 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7680 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7681 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7682 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7683 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7684 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7685 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7686 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7687 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7688 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7689 (Always_Compatible_Rep): New flag to control trampolines globally.
7690 (Dynamic_Trampolines_Used): New flag for implementing the
7691 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7692 and not yet set correctly for some targets).
7694 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7695 Simply indirectly call s-stchop when a task is created.
7698 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7699 appears as an argument (entries A) in an ALI file.
7701 * fe.h (Stack_Check_Limits): Declare new target parameter.
7702 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7704 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7705 This variable is declared in C to be sure not subject to elaboration
7707 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7710 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7711 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7713 * s-stchop.ads: Add comments.
7715 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7716 limit method of stack checking.
7718 * s-stchop-limit.ads: New file.
7720 2007-12-13 Robert Dewar <dewar@adacore.com>
7722 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7723 a-cihama.adb, g-awk.adb,
7724 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7727 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7729 * sem.adb: Update handling of assigned value/unreferenced warnings
7731 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7733 * lib-xref.ads: Improve documentation for k xref type
7736 Update handling of assigned value/unreferenced warnings
7737 (Generate_Reference): Warning for reference to entity for which a
7738 pragma Unreferenced has been given should be unconditional.
7739 If the entity is a discriminal, mark the original
7740 discriminant as referenced.
7742 * sem_warn.ads, sem_warn.adb
7743 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7744 no entities referenced in package
7745 (Check_One_Unit): Don't give message about no entities referenced in
7746 a package if a pragma Unreferenced has appeared.
7747 Handle new warning flag -gnatw.a/-gnatw.A
7748 Update handling of assigned value/unreferenced warnings
7750 * atree.h: Add flags up to Flag247
7751 (Flag231): New macro.
7753 2007-12-13 Jose Ruiz <ruiz@adacore.com>
7755 * adaint.h: (__gnat_plist_init): Not defined for RTX.
7757 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7760 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7761 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7762 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7763 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7766 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7768 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7769 since we only have problems with Windows 95/98, which are not
7771 (__gnat_ttyname): Return the empty string on Nucleus, just as
7774 2007-12-13 Robert Dewar <dewar@adacore.com>
7776 * a-textio.adb, a-textio.ads:
7777 Extensive changes to private part for wide character encoding
7779 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7780 (Look_Ahead): Fix mishandling of encoded sequences
7781 Move declaration of Wch_Con to private part (should not be visible)
7783 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7784 UTF-8. Probably this is never used, but if it is, brackets is
7787 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7788 setting wide character encoding for no main program case and when
7789 encoding is specified using -W?
7790 Initialize stack limit of environment task if stack limit method of
7791 stack checking is enabled.
7792 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7793 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7794 (Get_Main_Unit_Name): New function.
7795 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7796 (Gen_Output_File): Set Bind_Main_Program to True for .NET
7798 * bindusg.adb: Add line for -Wx switch
7800 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7802 Add new useful constant WC_Longest_Sequences
7804 * switch-b.adb: Clean up handling of -Wx switch
7805 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7807 * switch-c.adb: -gnatg activates warning on assertion errors
7808 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7810 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7812 2007-12-13 Robert Dewar <dewar@adacore.com>
7813 Ed Schonberg <schonberg@adacore.com>
7815 * a-ngcoty.adb: New pragma Fast_Math
7817 * opt.adb: New pragma Fast_Math
7820 Add Implemented_By_Entry to the list of pragmas which do not require any
7822 (Favor_Top_Level): New pragma.
7823 New pragma Fast_Math
7825 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7826 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7827 Expand_Allocator_Expression): Take into account VM_Target
7828 (Expand_Attribute, case 'Identity): Handle properly the case where
7829 the prefix is a task interface.
7830 New pragma Fast_Math
7832 * par.adb (Next_Token_Is): New function
7833 (P_Pragma): Add Skipping parameter
7834 (U_Left_Paren): New procedure
7835 (U_Right_Paren): New procedure
7836 New pragma Fast_Math
7838 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7840 New pragma Fast_Math
7842 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7843 Implemented_By_Entry.
7844 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7845 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7846 items, since it can apply to more than one overloadable entity. Set
7847 new flag Has_Pragma_Inline_Always for Inline_Always case.
7848 (Analyze_Pragma, case Complex_Representation): Improve error message.
7849 (Analyze_Pragma, case Assert): When assertions are disabled build the
7850 rewritten code with Sloc of expression rather than pragma, so new
7851 warning about failing is not deleted.
7852 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7853 protected types and update error message to reflect that. Test whether
7854 the protected type is allowed for the pragma (an error is issued if the
7855 type has any entries, or components that do not have preelaborable
7857 New pragma Fast_Math
7858 (Analyze_Pragma, case No_Return): Handle generic instance
7860 * snames.h, snames.ads, snames.adb:
7861 Add new predefined name for interface primitive _Disp_Requeue.
7862 New pragma Fast_Math
7864 * a-tags.ads, a-tags.adb: New calling sequence for
7865 String_To_Wide_[Wide_]String
7866 (Secondary_Tag): New subprogram.
7868 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7870 New calling sequence for String_To_Wide_[Wide_]String
7871 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7872 the use of the secondary stack for image routines.
7874 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7875 calling sequence for String_To_Wide_[Wide_]String
7877 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7879 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7880 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7882 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7883 (P_Formal_Part): Use Skipping parameter in P_Pragma call
7884 to improve error recovery
7886 * par-util.adb (Next_Token_Is): New function
7887 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7889 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7890 semicolon if missing
7891 (P_Pragma): Implement new Skipping parameter
7892 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7893 Fix location of flag for unrecognized pragma message
7895 * par-tchk.adb (U_Left_Paren): New procedure
7896 (U_Right_Paren): New procedure
7898 2007-12-13 Geert Bosch <bosch@adacore.com>
7901 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7902 the second or later Scaled_Divide would omit leading zeroes,
7903 resulting in too few digits produced and a Layout_Error as result.
7904 (Put): Initialize Pos.
7906 2007-12-13 Robert Dewar <dewar@adacore.com>
7908 atree.ads, atree.adb (Flag231..Flag247): New functions
7909 (Set_Flag231..Set_Flag247): New procedures
7910 (Basic_Set_Convention): Rename Set_Convention to be
7911 Basic_Set_Convention
7912 (Nkind_In): New functions
7913 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7915 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7917 of obsolete function Is_Always_Inlined
7918 (Register_Predefined_DT_Entry): Initialize slots of the second
7919 secondary dispatch table.
7920 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7921 (Expand_N_Function_Call): Remove special provision for stack checking.
7923 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7924 Include _Disp_Requeue in the list of predefined operations.
7925 (Find_Interface_ADT): Modified to fulfill the new specification.
7926 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7928 * par-ch4.adb, nlists.ads, nlists.adb:
7929 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7931 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7932 Fix location of flag for unrecognized pragma message
7934 * sem_ch7.adb: Use Nkind_In
7936 2007-12-13 Vincent Celier <celier@adacore.com>
7939 Indicate what flags are used by the Project Manager, gprbuild and
7941 (Opt.Follow_Links_For_Dirs): New flag
7942 (Warn_On_Assertion_Failure): New flag
7943 (Wide_Character_Encoding_Method_Specified): New flag
7944 (Suppress_All_Inlining): New switch set by -fno-inline
7945 (Real_VMS_Target): New flag
7946 New pragma Fast_Math
7948 2007-12-13 Robert Dewar <dewar@adacore.com>
7950 * back_end.adb: Recognize -fno-inline
7952 2007-12-13 Robert Dewar <dewar@adacore.com>
7954 * checks.adb: Fix optimization problem with short-circuited form
7956 2007-12-13 Bob Duff <duff@adacore.com>
7958 * clean.adb (Usage): Add line for -aP
7959 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7960 with a parameter "procedure Usage", instead of passing a pointer to a
7961 procedure. This is to eliminate trampolines (since the Usage procedure
7962 is often nested in a main procedure, and it would be inconvenient to
7965 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7966 to be generic, with a parameter "procedure Callback (...)", instead of
7967 passing a pointer to a procedure. This is to eliminate trampolines
7968 (since the Callback procedure is usually nested).
7970 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
7971 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7972 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7974 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7975 Use the generic Heap_Sort_G instead of Heap_Sort_A.
7977 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7979 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7980 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7981 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7982 (Renamed_In_Spec): New flag
7983 (Has_Pragma_Inline_Always): New flag
7984 Add missing doc for pragma Obsolescent_Warning
7985 Add missing doc for 17 additional unused flags (230-247)
7986 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7987 Alphabetize with clauses.
7988 Separate Is_Thunk and Has_Thunks flags
7989 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7990 (Related_Interface): Renamed to Related_Type.
7991 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7992 (Set_Is_Flag): Restrict the assertion.
7994 2007-12-13 Vincent Celier <celier@adacore.com>
7996 * errout.adb (Output_Source_Line): Do not keep a trailing space after
7997 the source line number if the source line is empty.
7999 2007-12-13 Geert Bosch <bosch@adacore.com>
8001 * eval_fat.adb (Decompose_Int): Handle argument of zero.
8002 (Compose): Remove special casing of zero.
8003 (Exponent): Likewise.
8004 (Fraction): Likewise.
8005 (Machine): Likewise.
8006 (Decompose): Update comment.
8008 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8010 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
8011 limited ancestor part, initialize controllers of enclosing record
8012 before expanding ancestor aggregate.
8013 (Gen_Assign): If a component of the aggregate is box-initialized, add
8014 code to call Initialize if the component is controlled, and explicit
8015 assignment of null if the component is an access type.
8017 Handle properly aggregates for limited types that appear in object
8018 declarations when the aggregate contains controlled values such as
8020 When expanding limited aggregates into individual components, do not
8021 call Adjust on controlled components that are limited.
8023 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8025 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
8027 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8029 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
8030 predefined primitive _Disp_Requeue.
8031 (Make_Predefined_Primitive_Specs): Create the spec for predefined
8032 primitive _Disp_Requeue.
8033 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
8034 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
8035 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
8036 an interface type. In case of limited interfaces we now declare all the
8037 predefined primitives associated with synchronized interfaces as
8039 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
8041 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8042 tagged type is an interface type and there is no user-defined equality
8044 Add also bodies of predefined primitives associated with synchronized
8046 (Freeze_Record_Type): Do not build bodies of predefined primitives of
8047 interface types because they are now defined abstract.
8048 Add missing documentation.
8049 (Expand_Record_Controller): Update occurrence of Related_Interface
8051 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8052 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8053 class wide interface object declaration.
8054 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8055 if the access type already has one.
8056 (Expand_N_Object_Declaration): Defend against attempt to validity check
8057 generic types. Noticed for -gnatVcf specified with previous errors.
8059 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8061 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8062 Expand_Allocator_Expression): Take into account VM_Target
8064 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8065 secondary stack when VM_Target /= No_VM
8067 2007-12-13 Javier Miranda <miranda@adacore.com>
8068 Ed Schonberg <schonberg@adacore.com>
8070 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8071 Is_Complation_Unit by Is_Library_Level_Entity in the code
8072 that decides if the static dispatch tables need to be built.
8073 (Wrap_Transient_Declaration): Do not generate a finalization call if
8074 this is a renaming declaration and the renamed object is a component
8075 of a controlled type.
8077 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8079 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8080 In the case where the renamed subprogram is a dereference, call
8081 Force_Evaluation on the prefix.
8083 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8084 Ed Schonberg <schonberg@adacore.com>
8086 * exp_ch9.adb (Expand_N_Asynchronous_Select,
8087 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8088 comment reformatting.
8089 (Set_Privals): Inherit aliased flag from formal. From code reading.
8090 (Build_Simple_Entry_Call): Out parameters of an access type are passed
8091 by copy and initialized from the actual. This includes entry parameters.
8092 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8093 and Ada 2005 models of requeue.
8094 (Null_Statements): Still connsider do-end block null if it contains
8095 Unreferenced and Warnings pragmas.
8096 (Expand_N_Accept_Statement): Do not optimize away null do end if
8097 dispatching policy is other than defaulted.
8098 (Expand_N_Timed_Entry_Call): When the triggering statement is a
8099 dispatching call, manually analyze the delay statement.
8100 (Find_Parameter_Type): Move subprogram to Sem_Util.
8102 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8103 Javier Miranda <miranda@adacore.com>
8105 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8106 _Disp_Requeue occupies dispatch table slot number 15. Move
8107 _Disp_Timed_Select to slot 16.
8108 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8109 generate the spec and body of _Disp_Reqeueue.
8110 (Make_DT): Build and initialize the second dispatch table.
8111 Handle initialization of RC_Offset when the parent
8112 is a private type with variable size components.
8113 (Make_Secondary_DT): Complete documentation. Add support to
8114 initialize the second dispatch table.
8115 (Make_Tags): Generate the tag of the second dispatch table.
8116 (Register_Primitive): Add support to register primitives in the
8117 second dispatch table.
8119 2007-12-13 Pascal Obry <obry@adacore.com>
8121 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8122 Windows. This signal is used by gnatmake to kill child processes for
8125 2007-12-13 Javier Miranda <miranda@adacore.com>
8127 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8128 support for generic dispatching constructor calls in which we need to
8129 locate the tag of a secondary dispatch table associated with an
8130 interface type to properly dispatch the call.
8131 (Expand_N_Attribute_Reference [case Address],
8132 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8133 handling of VM targets.
8135 2007-12-13 Robert Dewar <dewar@adacore.com>
8136 Ed Schonberg <schonberg@adacore.com>
8138 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8141 * ug_words: Add entries for -gnatw.a -gnatw.A
8143 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8144 literal is a subtype with non-static constraints, use the base type of
8145 the context as the base of the string subtype, to prevent type
8147 (Resolve_Actuals): If the actual is an entity name, generate a
8148 reference before the actual is resolved and expanded, to prevent
8149 spurious warnings on formals of enclosing protected operations.
8150 (Analyze_Overloaded_Selected_Component): If type of prefix if
8151 class-wide, use visible components of base type.
8152 (Resolve_Selected_Component): Ditto.
8153 (Resolve_Short_Circuit): Detect case of pragma Assert argument
8154 evaluating to False, and issue warning message.
8156 * usage.adb: Add lines for -gnatw.a and -gnatw.A
8158 2007-12-13 Emmanuel Briot <briot@adacore.com>
8160 * g-calend.ads (No_Time): New constant, to represent an uninitialized
8163 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8165 (Month_Name_To_Number): New subprogram
8167 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8168 letter to upper-case.
8170 2007-12-13 Robert Dewar <dewar@adacore.com>
8171 Ed Schonberg <schonberg@adacore.com>
8173 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8175 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8176 context is a limited view, use non-limited view when available. If the
8177 non-limited view is an unconstrained array, this enforces consistency
8178 requirements in 3.10.2 (27).
8179 (Layout_Type): For an access type whose designated type is a limited
8180 view, examine its declaration to determine if it is an unconstrained
8181 array, and size the access type accordingly.
8182 (Layout_Type): Do not force 32-bits for convention c subprogram
8183 pointers in -gnatdm mode, only if real vms target.
8185 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8186 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8187 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8188 violations of the No_Implicit_Dynamic_Code restriction.
8189 (Resolve_Attribute, case 'Access): If designated type of context is a
8190 limited view, use non-limited view when available. If the non-limited
8191 view is an unconstrained array, this enforces consistency requirements
8193 (Layout_Type): For an access type whose designated type is a limited
8194 view, examine its declaration to determine if it is an unconstrained
8195 array, and size the access type accordingly.
8197 2007-12-13 Vincent Celier <celier@adacore.com>
8199 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8200 object directory of main project does not exist.
8201 On VMS, correctly set then environment variable for the source
8204 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8206 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8207 set to True this procedure will create the value of type REG_EXPAND_SZ.
8208 It was only possible to create REG_SZ values before.
8210 2007-12-13 Robert Dewar <dewar@adacore.com>
8212 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8213 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8214 namet-sp.adb, namet-sp.ads: New files.
8216 * g-speche.adb: Use generic routine in g-spchge
8218 * s-wchcnv.ads, s-wchcnv.adb:
8219 Minor code cleanup (make formal type consistent with spec)
8221 * namet.adb: Update comments.
8223 * par-endh.adb (Evaluate_End_Entry): Use new
8224 Namet.Sp.Is_Bad_Spelling_Of function
8226 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8228 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8229 ancestor is an access type initialized with a box, set its type
8230 explicitly, for use in subsequent expansion.
8231 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8234 2007-12-13 Robert Dewar <dewar@adacore.com>
8236 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8239 2007-12-13 Robert Dewar <dewar@adacore.com>
8241 * inline.adb (Back_End_Cannot_Inline): Use new flag
8242 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8244 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8245 Has_Pragma_Inline_Always instead.
8246 of obsolete function Is_Always_Inlined
8247 (Build_Body_To_Inline): Same change
8248 (Cannot_Inline): Same change
8249 Do not give warning on exception raise in No_Return function
8251 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8252 component has two inconsistent component clauses in the same record
8253 representation clause, favor the message that complains about
8254 duplication rather than inconsistency.
8256 (Record_Representation_Clause): Do not warn on missing component
8257 clauses for inherited components of a type extension.
8258 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8259 an overloadable item if it is a pragma that can apply to multiple
8260 overloadable entities (e.g. Inline) because a pragma cannot be on
8261 more than one chain at a time.
8262 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8263 conversion where one of the operands is Ada.Calendar.Time.
8264 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8265 For now, ignore Component_Size clause on VM targets, as done for
8268 2007-12-13 Emmanuel Briot <briot@adacore.com>
8269 Vincent Celier <celier@adacore.com>
8271 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8273 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8275 (Hash): Move instantiation of System.HTable.Hash from spec to body
8276 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8277 systems, since we do not need to recompute the Name_Id for the canonical
8279 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8280 as a parameter. This parameter is in fact always "ada" in all calls, and
8281 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8282 while loading a project with 40000 files
8284 * prj-attr.adb: Fix name of attribute Dependency_Driver
8285 Change the kind of indexing for attribute Root
8287 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8288 variables already declared, in case constructions.
8290 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8291 Current_Object_Path_File to No_Path.
8293 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8294 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8296 * prj-makr.adb: new parameter Current_Dir
8298 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8299 Ada sources when language is not Ada.
8300 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8301 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8302 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8303 (Locate_Directory): Always resolve links when computing Canonical_Path
8304 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8305 in Source_Files before checking for the presence of a directory
8307 Optimize calls to Name_Find when on case sensitive systems.
8308 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8310 (Prj.Nmsc.Check): new parameter Current_Dir
8311 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8312 cannot be empty and the spec suffix cannot be the same as the body or
8314 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8315 subunit), always consider the longest suffix.
8316 (Check_Configuration): Do not issue an error if there is no compiler
8317 for a language. Just issue a warning and ignore the sources for the
8319 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8321 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8322 (Unit_Exceptions): New hash table
8323 (Check_Naming_Schemes): Check if a file that could be a unit because of
8324 the naming scheme is not in fact a source because there is an exception
8326 (Look_For_Sources): Put the unit exceptions in hash table
8328 (Get_Unit_Exceptions): Give initial value No_Source to local variable
8329 Other_Part to avoid exception when code is compiled with validity
8331 (Get_Sources_From_File): Check that there is no directory information
8333 (Look_For_Sources): Check that there is no directory information in the
8334 list of file names in Source_Files.
8335 (Look_For_Sources): In multi-language mode, do not allow exception file
8336 names that are excluded.
8337 (Excluded_Sources_Htable): New hash table
8338 (Search_Directories.Check_File): New procedure to simplify
8340 (Search_Directories): Do not consider excluded sources
8341 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8343 (Get_Exceptions): Set component Lang_Kind of Source_Data
8344 (Get_Unit_Exceptions): Ditto
8345 (Search_Directories): Ditto
8347 * prj-pars.adb: new parameter Current_Dir
8349 * prj-part.ads, prj-part.adb:
8350 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8351 (Opt.Follow_Links_For_Dirs): New flag
8352 (Project_Path_Name_Of): Cache information returned by this routine as
8353 Locate_Regular_File is a costly routine. The code to output a log
8354 information and the effective call to Locate_Regular_File is now
8355 factorized into a routine (code clean-up).
8356 (Parse, Parse_Single_Project): new parameter Current_Dir
8357 When main project file cannot be found, indicate in the error
8358 message the project path that was used to do the search.
8360 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8361 (Prj.Proc.Process*): new parameter Current_Dir
8363 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8365 2007-12-13 Bob Duff <duff@adacore.com>
8367 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8368 procedure to be called from the back end to check the
8369 No_Implicit_Dynamic_Code restriction.
8371 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8373 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8374 Fixes another case where RTE_Available_Call was ignored instead of being
8378 * rtsfind.ads: Add new entries.
8380 2007-12-13 Robert Dewar <dewar@adacore.com>
8382 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8383 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8385 * scn.adb: Implement BOM recognition
8387 2007-12-13 Thomas Quinot <quinot@adacore.com>
8388 Ed Schonberg <schonberg@adacore.com>
8390 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8391 subprogram body that acts as its own spec may not have a non-private
8392 WITH clause on a private sibling.
8393 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8394 child unit is a renaming, create an implicit with_clause on that
8395 parent, and not on the unit it renames, to prevent visibility errors
8396 in the current unit.
8398 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8400 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8401 renaming declaration, use the Slocs of the formal parameters from the
8402 declaration of the formal subprogram when creating the formal parameter
8403 entities in the renaming declaration.
8404 (Analyze_Formal_Type_Declaration): Change the placement of the error
8405 message concerning illegal known discriminants. It is now posted on the
8406 type rather than on the first discriminant. This change ensures early
8408 (Freeze_Subprogram_Body): If the generic subprogram is nested within
8409 the package body that contains the instance, do not generate an
8410 out-of-place freeze node for the enclosing package.
8411 (Collect_Previous_Instantiations): Ignore internal instantiations
8412 generated for formal packages.
8413 (Validate_Derived_Type_Instance): Add a check that when a formal
8414 derived type is Known_To_Have_Preelab_Init then the actual type must
8415 have preelaborable initialization, and issue an error when this
8416 condition is violated.
8418 2007-12-13 Robert Dewar <dewar@adacore.com>
8420 * s-imenne.adb, s-imenne.ads: New files.
8422 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8423 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8424 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8425 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8426 s-imgwch.ads: New calling sequence for Image routines to avoid sec
8429 2007-12-13 Javier Miranda <miranda@adacore.com>
8430 Ed Schonberg <schonberg@adacore.com>
8432 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8433 generation of spurious error if parent is an interface type; caused
8434 because predefined primitive bodies will be generated later by
8436 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8438 (Derive_Subprograms): Handle derivations of predefined primitives
8439 after all the user-defined primitives to ensure that they are
8440 found in proper order in instantiations.
8441 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8442 of Related_Interface to Related_Type.
8443 (Record_Type_Declaration): Minor reordering of calls to decorate the
8444 Tag component because the entity must have set its Ekind attribute
8445 before setting its Is_Tag attribute.
8446 (Analyze_Subtype_Declaration): In the case of subtypes with
8447 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8449 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8450 Ed Schonberg <schonberg@adacore.com>
8452 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8453 statement to the list of contexts where a selected component with a
8454 concurrent tagged type prefix should yield a primitive operation.
8455 (Find_Primitive_Operation): Handle case of class-wide types.
8456 (Analyze_Overloaded_Selected_Component): If type of prefix is
8457 class-wide, use visible components of base type.
8458 (Resolve_Selected_Component): Ditto.
8459 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8460 formal of a generic subprogram. find candidate interpretations by
8461 scanning the list of generic formal declarations.:
8462 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8463 type from a limited_with_clause, and the full view is available, use it
8464 for subsequent semantic checks.
8465 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8466 (Find_Primitive_Operation): New function.
8467 (Analyze_Overloaded_Selected_Component): insert explicit dereference
8468 only once if several interpretations of the prefix yield an access type.
8469 (Try_Object_Operation): Code and comment cleanup.
8470 (Analyze_Selected_Component): Reorder local variables. Minot comment and
8471 code reformatting. When the type of the prefix is tagged concurrent, a
8472 correct interpretation might be available in the primitive and
8473 class-wide operations of the type.
8475 2007-12-13 Robert Dewar <dewar@adacore.com>
8476 Ed Schonberg <schonberg@adacore.com>
8478 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8479 renaming entry as subprogram using rename-as-body if subprogram spec
8481 (Use_One_Type): The clause is legal on an access type whose designated
8482 type has a limited view.
8483 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8484 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8485 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8486 operation denoted by a selected component.
8487 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8488 it can be an expression, possibly overloaded, that returns a task or
8491 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8492 Gary Dismukes <dismukes@adacore.com>
8494 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8495 requeue statement is dispatching. Do not emit an error when the name is
8496 not an entry and the context is a dispatching select. Add code to
8497 perform subtype conformance between the formals of the current entry
8498 and those of the target interface primitive.
8499 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8500 Timed_Entry_Call): Analyze the triggering statement as the first step of
8501 the processing. If this is a dispatching select, postpone the analysis
8502 of all select statements until the Expander transforms the select. This
8503 approach avoids generating duplicate identifiers after the Expander has
8504 replicated some of the select statements. In case the Expander is
8505 disabled, perform regular analysis.
8506 (Check_Triggering_Statement): New routine.
8507 (Analyze_Requeue): Exclude any interpretations that are not entries when
8508 checking overloaded names in a requeue. Also test type conformance for
8509 matching interpretations rather than requiring subtype conformance at
8510 that point to conform with the RM's resolution rule for requeues.
8512 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8514 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8515 inherited operation is a defaulted tag-indeterminate call, and there is
8516 a statically tagged actual, use the static tag as a controlling actual
8517 for the defaulted actual.
8519 2007-12-13 Geert Bosch <bosch@adacore.com>
8521 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8522 context, so do not call Check_Non_Static_Context.
8524 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8526 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8527 whether formal E is an entity which may have parameters.
8529 2007-12-13 Bob Duff <duff@adacore.com>
8530 Javier Miranda <miranda@adacore.com>
8531 Robert Dewar <dewar@adacore.com>
8533 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8534 (Set_Convention): New procedure to set the Convention flag, and in
8535 addition make sure the Favor_Top_Level flag is kept in sync (all
8536 foreign-language conventions require Favor_Top_Level = True).
8537 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8539 (Collect_Interfaces_Info): Minor update to handle the two secondary
8540 dispatch tables. Update occurrence of Related_Interface to Related_Type.
8541 (Generate_Parent_Ref): Add parameter to specify entity to check
8542 (Is_Preelaborable_Expression): Allow the name of a discriminant to
8543 initialize a component of a type with preelaborable initialization.
8544 This includes the case of a discriminal used in such a context.
8545 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8546 latest Ada 2005 rules about renaming and 'Access of
8547 discriminant-dependent components.
8548 (Check_Nested_Access): Add handling when there are no enclosing
8549 subprograms (e.g. case of a package body).
8550 (Find_Parameter_Type): Factor routine from several other compiler files.
8551 Remove routine from Find_Overridden_Synchronized_Primitive.
8553 2007-12-13 Thomas Quinot <quinot@adacore.com>
8555 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8556 an invalid access to an uninitialized slot in the
8557 Source_File_Index_Table.
8559 2007-12-13 Thomas Quinot <quinot@adacore.com>
8561 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8563 2007-12-13 Bob Duff <duff@adacore.com>
8565 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8566 access-to-subprogram types in this package.
8568 2007-12-13 Olivier Hainque <hainque@adacore.com>
8570 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8571 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8572 Stack_Overlay_Address and document that we are using an internal
8574 (Byte_Size, Unsigned_32_Size): Remove, now useless.
8575 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8576 consistently throughout the various implementation pieces.
8578 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8579 overlay we are using to fill the stack area with patterns.
8580 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8581 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8582 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8584 2007-12-13 Robert Dewar <dewar@adacore.com>
8586 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8588 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8591 (Create_Task): Take into account tasks created by foreign threads.
8592 Code clean up: use constants instead of hard coded values.
8594 2007-12-13 Robert Dewar <dewar@adacore.com>
8596 * styleg.adb (Check_Comment): More liberal rules for comment placement
8598 2007-12-13 Olivier Hainque <hainque@adacore.com>
8600 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8601 of Procedure Value instead of Frame Pointer as the invocation
8602 identifier associated with the instruction pointer in each traceback
8605 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8606 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8607 Pointer as the invocation identifier passed to tbk$symbolize.
8609 * s-traent-vms.ads, s-traent-vms.adb
8610 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8611 Procedure Value instead of Frame Pointer as the invocation identifier
8612 passed to tbk$symbolize.
8614 2007-12-13 Robert Dewar <dewar@adacore.com>
8616 * tbuild.ads, tbuild.adb:
8617 Fix location of flag for unrecognized pragma message
8619 2007-12-13 Robert Dewar <dewar@adacore.com>
8621 * treepr.ads, treepr.adb: (pl): implement use of positive value
8624 2007-12-13 Robert Dewar <dewar@adacore.com>
8626 * xeinfo.adb: Remove warnings
8627 * xnmake.adb: Remove warnings
8628 * xsinfo.adb: Remove warnings
8629 * xtreeprs.adb: Remove warnings
8630 * xsnames.adb: Remove warnings
8632 * a-ngcoar.adb: Fix typo.
8633 * s-interr.adb: Minor reformatting
8634 * env.c: Minor reformatting.
8635 * g-bytswa.adb: Minor reformatting.
8636 * g-rannum.ads: Minor documentation improvements
8637 * s-tasinf-mingw.adb: Minor header fix
8638 * a-clrefi.adb: Minor reformatting
8639 * g-sttsne.ads: Minor documentation improvement
8640 * g-sttsne-locking.ads: Minor documentation improvement
8641 * g-soliop-solaris.ads: Minor documentation improvement
8642 * g-soliop-mingw.ads: Minor documentation improvement
8643 * g-soliop.ads: Minor documentation improvement
8644 * exp_aggr.ads: Minor reformatting
8645 * debug.adb: Add documentation for the gprbuild debug flags
8646 * exp_ch2.adb: Use Nkind_In to simplify code throughout
8647 * exp_pakd.adb: Minor reformatting
8649 * g-altive.ads, g-alleve.adb: Remove assertions.
8650 Add comment about minor differences between targets regarding
8651 floating-point operations.
8653 * g-thread.adb: Remove pragma unreferenced.
8654 * lib.ads: Minor reformatting
8655 * par-ch9.adb: Minor reformatting of error messages
8656 * sem_case.adb: Minor reformatting
8657 * s-fileio.adb: Minor reformattinng
8658 * s-vmexta.ads: Minor typo
8660 Take into account 'Success' value as per new GNAT warning.
8662 2007-12-13 Vincent Celier <celier@adacore.com>
8664 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8667 2007-12-13 Robert Dewar <dewar@adacore.com>
8668 Bob Duff <duff@adacore.com>
8670 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8671 Document that suffixes may be terminations of each others
8672 Add doc for -gnatw.a and -gnatw.A
8673 Document gnatbind -Wx switch
8674 Document BOM recognition
8675 Document pragma Implemented_By_Entry.
8678 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8679 Add doc for pragma Unreferenced suppressing no entities referenced msg
8680 Add documentation of GNAT.Directory_Operations.Iteration
8681 Add documentation of GNAT.Random_Numbers
8682 Add documentation for pragma Shared.
8683 Correct documentation for Bit_Order
8684 Add documentation for the Pool_Address attribute.
8685 Fix and improve documentation of pragma machine_attribute.
8686 New pragma Fast_Math
8687 Document BOM recognition
8689 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8690 Add /Wide_Character_Encoding for binder
8691 Add qualifier for the new gnatpp option --no-separate-loop-then
8693 2007-12-13 Matthew Heaney <heaney@adacore.com>
8695 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8696 which generic formal operations are called for each operation.
8698 2007-12-13 Olivier Hainque <hainque@adacore.com>
8700 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8701 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8703 2007-12-13 Emmanuel Briot <briot@adacore.com>
8705 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8706 Reference_Dir unless we actually need it.
8708 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8709 Tristan Gingold <gingold@adacore.com>
8711 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8714 a-calend-vms.adb: Remove pragma warning off and add pragma
8717 2007-12-13 Robert Dewar <dewar@adacore.com>
8719 * impunit.adb: Add entries for missing units
8721 * Makefile.rtl: Add new run-time units.
8723 * Make-lang.in: Update dependencies.
8725 2007-12-13 Bob Duff <duff@adacore.com>
8727 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8728 types, set Can_Use_Internal_Rep appropriately, based on
8729 Always_Compatible_Rep_On_Target.
8731 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8732 Arnaud Charlet <charlet@adacore.com>
8734 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8735 it to the front end and setting the aamp_target environment variable
8736 to the switch's argument to ensure that gnaampbind and gnaamplink will
8737 take the specified library into account.
8738 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8739 target, since the CIL compiler supports an "object" file (.il files).
8741 2007-12-13 Vincent Celier <celier@adacore.com>
8743 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8744 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8746 2007-12-13 Geert Bosch <bosch@adacore.com>
8748 * s-parame-vxworks.adb:
8749 Update comments to reflect usage of this package by Nucleus.
8751 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8753 * i-vxwork.ads: Kill new warning on Convention C, since changing the
8754 spec would break code.
8756 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8758 * system-vxworks-alpha.ads: Removed.
8760 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
8762 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8764 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
8767 * sem_ch3.adb (Designates_T): New function.
8768 (Mentions_T): Factor reusable part of the logic into Designates_T.
8769 Consider non-access parameters and access and non-access result.
8770 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8771 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8773 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8775 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8778 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8779 the new implementation of target-specific calls.
8781 2007-12-07 Olivier Hainque <hainque@adacore.com>
8783 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8784 the designated full view, only follow a second level Full_View link
8785 for Non_Limited_Views of from_limited_with references.
8787 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
8790 * sem_ch6.adb (Process_Formals): Prevent an access type formal
8791 to be initialized with an access to constant object.
8793 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8794 when an access to constant is used to initialize an access
8798 * a-direct.adb (Compose): Containing_Directory can be an empty string.
8800 2007-12-07 Olivier Hainque <hainque@adacore.com>
8803 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8804 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8805 this is from an alignment clause on the GNAT entity.
8806 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8807 to distinguish the case where we set it from the type's alignment.
8808 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8809 whether this alignment was set from an explicit alignment clause.
8811 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
8813 * decl.c (make_packable_type): Revert last change.
8814 (gnat_to_gnu_field): Avoid setting size and position multiple times.
8815 * utils.c (finish_record_type): Retrieve the real name of the type.
8817 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
8819 * trans.c (lvalue_required_p): Take base node directly instead
8820 of its parent. Rename second parameter to 'gnu_type'.
8821 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8822 <N_Slice>: Likewise.
8823 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8824 Adjust calls to lvalue_required_p.
8826 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
8829 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8830 parameters of an entry call.
8832 2007-12-03 Robert Dewar <dewar@adacore.com>
8833 Samuel Tardieu <sam@rfc1149.net>
8836 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8837 of variables declared in a library-level package.
8839 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
8841 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8842 of Empty_String'Unchecked_Access.
8844 * Makefile.in: Add support for sh4-linux.
8846 * system-linux-sh4.ads: New file.
8848 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
8851 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8852 and its argument must not be free()ed.
8854 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
8856 * decl.c (make_packable_type): Retrieve the real name of the type.
8857 (maybe_pad_type): Simplify similar code.
8859 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
8862 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8863 than an identifier is used after "case" in a variant_part.
8866 * par-ch4.adb (Is_Parameterless_Attribute): New map.
8867 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8868 attribute name or not depending on the new map.
8870 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8871 returning a string or a type will not be called with improper
8874 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8876 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8879 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8880 Signal an error when attribute argument is a fixed-point value of
8884 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8885 a derived ordinary fixed point type.
8887 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8888 RM_Size when a Small clause is found.
8890 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
8893 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8894 Pass 'false' for the new allocate_struct_function parameter.
8895 * utils.c (build_function_stub): Likewise.
8897 2007-11-25 Richard Guenther <rguenther@suse.de>
8899 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8900 (gnat_poplevel): Likewise.
8902 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
8904 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8905 strict alignment, no alignment clause and a known static size, cap
8906 the type alignment to the greatest power of 2 factor of the size.
8907 (gnat_to_gnu_field): If the field has a component clause, is aliased
8908 or of a type with strict alignment, require that its size be equal to
8910 (validate_size): Use the type size as the minimum size for a type with
8913 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
8915 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8916 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8917 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8918 Use 'Access instead of 'Unchecked_Access in second and third
8919 arguments of pthread_sigmask.
8921 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
8923 * decl.c (ceil_alignment): New function.
8924 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8925 (make_packable_type): Likewise.
8927 2007-11-22 Olivier Hainque <hainque@adacore.com>
8929 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8930 to fit in 80 columns.
8932 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
8934 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8935 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8937 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
8940 * misc.c (gnat_adjust_rli): Delete.
8941 (gnat_init): Do not initialize the translation code here.
8942 Do not call set_lang_adjust_rli.
8943 * trans.c (init_code_table): Make static.
8944 (gnat_init_stmt_group): Delete.
8945 (gigi): Initialize the translation code entirely here.
8946 Emit debug info for the common types here instead of...
8947 * utils.c (gnat_init_decl_processing): ...here.
8948 * gigi.h (init_code_table): Delete.
8949 (gnat_init_stmt_group): Likewise.
8951 2007-11-16 Olivier Hainque <hainque@adacore.com>
8953 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8954 retrieving an allocator return value from a super-aligned address from
8956 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8957 expect a super-aligned address for a fat or thin pointer.
8959 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
8961 * trans.c (call_to_gnu): Always set the source location on the call
8962 expression. If the function returns-by-target, also set it on the
8965 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
8967 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8968 sections of non-supported Interix target.
8970 * s-osinte-interix.ads: Removed.
8972 * i-cstrin.ads (chars_ptr): Make it a C convention type.
8974 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
8976 * a-tasatt.adb: Add a comment at the beginning of the package
8977 explaining why in general 'Unchecked_Access must be used instead
8980 * sem_prag.adb (Process_Convention): Move the test for the
8981 entity on which the Convention pragma applies down to also
8982 forbid pragma Convention on enumeration literals reached
8985 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
8987 * a-tasatt.adb: Revert previous change for this file as it will
8988 generate an error when this package is instantiated from a
8991 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
8993 * a-tasatt.adb: Type Wrapper should be declared in comment instead
8994 of already declared type Node_Access.
8995 Use 'Access instead of 'Unchecked_Access when applicable. Local
8996 lifetime is the one of the package.
8997 (Set_Value): W is allocated on the heap.
8999 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9001 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
9003 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
9006 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
9008 (elaboration code): Timer_Queue lifetime is the one of the
9011 * tracebak.c (i386 alternative): Remove useless comparaison
9012 which is always false; LOWEST_ADDRESS is 0 and is never greater
9013 than an unsigned integer.
9015 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
9016 embedded check for "Ada_Version >= Ada_05".
9018 2007-11-07 Olivier Hainque <hainque@adacore.com>
9020 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
9021 craft and expand comment.
9023 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
9025 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
9027 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
9029 * misc.c (gnat_handle_option): Replace call to abort with
9030 call to gcc_unreachable.
9031 (gnat_init): Likewise.
9032 (gnat_expand_expr): Likewise.
9033 (fp_prec_to_size): Likewise.
9034 (fp_size_to_prec): Likewise.
9036 2007-10-23 Richard Guenther <rguenther@suse.de>
9039 * tracebak.c: #undef abort after including system.h.
9041 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
9043 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9044 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9046 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9048 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
9050 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9051 Set the protection status of the guard page based on the value of On.
9053 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9055 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9056 (Exit_Task): Pass False to Hide_Yellow_Zone.
9058 2007-10-15 Robert Dewar <dewar@adacore.com>
9060 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9061 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9062 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9063 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9064 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9065 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9066 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9067 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9068 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9069 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9070 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9071 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9072 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9073 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9074 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9075 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9077 Add Unreferenced and Warnings (Off) pragmas for cases of
9078 variables modified calls where they are IN OUT or OUT parameters and
9079 the resulting values are not subsequently referenced. In a few cases,
9080 we also remove redundant code found by the new warnings.
9082 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9083 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9084 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9085 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9086 warning controlled by -gnatw.o that warns on cases of out parameter
9087 values being ignored.
9089 2007-10-15 Geert Bosch <bosch@adacore.com>
9091 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9093 * expect.c: Initial port to arm-mentor-nucleus.
9094 Use kill for __gnat_kill() on VMS.
9096 2007-10-15 Emmanuel Briot <briot@adacore.com>
9098 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9100 (Xref_Record): Change type for Line, since in the case of a reference to
9101 a predefined entity (as happens for array index types), the line is set
9103 Add support for parsing multiple array index types info, or
9104 multiple inherited interfaces info. This information cannot be stored
9105 in Xref_Entity_Record, which only supports a single instance of Tref_*,
9106 and is therefore stored in the list of references instead. It has a
9107 special treatement later on in tools that use this information.
9109 2007-10-15 Tristan Gingold <gingold@adacore.com>
9111 * debug.adb: Document use of -gnatd.a and -gnatd.I
9113 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9115 2007-10-15 Javier Miranda <miranda@adacore.com>
9117 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9118 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9119 care of access to class-wide interface types plus removal of bizarre
9120 conversion of tagged object to access type (reported by Gary
9121 Dismukes). After this patch there is no need to perform any
9122 additional management on these nodes in Expand_Interface_Actuals.
9124 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9125 that handles use of 'Access and 'Unchecked_Access applied to
9126 actuals covering interface types. Such code is now
9127 centralized in Expand_N_Attribute_Reference.
9129 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9131 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9132 of tagged types whose ultimate ancestor is a CPP type.
9133 (Freeze_Array_Type): For a packed array type, generate an initialization
9134 procedure if the type is public, to handle properly a client that
9135 specifies Normalize_Scalars.
9137 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9139 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9140 inside a generic body, retrieve the full view of the entry family
9141 discrete subtype if available.
9143 2007-10-15 Thomas Quinot <quinot@adacore.com>
9145 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9146 attempt to generate stubs for hidden primitive operations.
9148 2007-10-15 Vincent Celier <celier@adacore.com>
9150 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9151 returning None, used when there is no platform specific body for
9154 2007-10-15 Bob Duff <duff@adacore.com>
9156 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9157 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9158 the generic Heap_Sort_G, in order to avoid trampolines.
9160 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
9161 Jose Ruiz <ruiz@adacore.com>
9163 * vx_stack_info.c: New file.
9165 * i-forbla-unimplemented.ads: New file.
9167 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9168 for unsupported configurations; use it on VMS targets instead of the
9170 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9171 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9172 used by VxWorks targets to have access to task-specific data and be
9173 able to extract the stack boundaries for stack checking.
9174 Use system-vms-ia64.ads on ivms.
9176 * Make-lang.in: Update dependencies.
9178 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9181 2007-10-15 Vincent Celier <celier@adacore.com>
9183 * snames.adb, snames.ads: Add new standard name runtime_library_dir
9185 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9187 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9189 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9190 the source is unknown.
9192 * prj-ext.adb: Spelling error fix
9194 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9195 95 reserved word in its name.
9196 (Process_Project_Level_Array_Attributes): Process new attribute
9197 Runtime_Library_Dir.
9199 * prj-part.adb (Parse_Single_Project): Do not check the name of the
9200 config project against the user project names.
9202 * prj-proc.adb (Expression): In multi-language mode, indexes that do
9203 not include a dot are always case insensitive.
9204 (Process_Declarative_Items): Ditto
9205 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9208 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9209 True, compare both indexes in lower case.
9211 2007-10-15 Robert Dewar <dewar@adacore.com>
9213 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9215 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9217 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9218 association for an access component, add an association with null as
9219 the expression. Remove testing for array subtypes and the setting in
9220 that case of Ctyp to the array component type, which prevented proper
9221 inclusion of an association for null-initialized arrays. Collapse
9222 condition that tests for array subtypes into just a test of
9223 Is_Partially_Initialized_Type (which already covers arrays anyway).
9225 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9227 * sem_ch12.adb: Minor code reformatting.
9228 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9229 find the parent package which may have been hidden by local
9232 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9234 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9235 flag of derived concurrent types, taking into account the flag setting
9236 on the parent subtype and any new set of discriminants.
9238 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9240 * sem_ch4.adb: Minor code and comment reformatting.
9241 (Analyze_Allocator): When the designated type of an unconstrained
9242 allocator is a record with unknown discriminants or an array with
9243 unknown range bounds, emit a detailed error message depending on the
9244 compilation mode and whether the designated type is limited.
9246 2007-10-15 Tristan Gingold <gingold@adacore.com>
9248 * system-vms-ia64.ads: New file.
9250 * system-vms_64.ads: Minor comment fix.
9252 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9254 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9255 body generated for a function with a controlling result that is a null
9256 extension, discard the generated body in favor of the current explicit
9259 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9261 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9262 examining its original form, to handle properly operator calls that
9263 have been rewritten.
9265 2007-10-15 Olivier Hainque <hainque@adacore.com>
9267 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9268 instead of a procedure value in each traceback entry.
9270 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9271 instead of procedure value to TBK$SYMBOLIZE.
9273 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9275 (TB_Entry_For): Account for the PV/FP renaming.
9277 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9279 (Null_TB_Entry): Account for change of component name.
9280 (PV_For): Rename as FP_For.
9282 2007-10-15 Tristan Gingold <gingold@adacore.com>
9284 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9285 This optimize assignment to over-aligned record.
9287 2007-10-15 Emmanuel Briot <briot@adacore.com>
9289 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9292 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9293 type, for dispatching calls.
9295 2007-10-15 Vincent Celier <celier@adacore.com>
9296 Robert Dewar <dewar@adacore.com>
9298 * gnat_ugn.texi: Add documentation for switches --version and --help
9299 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9300 gnatxref, gnatfind, gnatls, and gnatclean.
9302 Mention attribute Excluded_Source_Dirs
9303 Replace obsolescent attribute Locally_Removed_Files with attribute
9304 Excluded_Source_Files.
9305 Improve documentation of -u (gnatbind)
9306 Document how to do reliable stack checking for the environmental task
9309 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9310 Document attribute Excluded_Source_Files and indicate that attribute
9311 Locally_Removed_Files is obsolescent.
9313 2007-10-15 Thomas Quinot <quinot@adacore.com>
9315 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9318 Update documentation to note that OpenVMS 8.3 or later must be used
9319 to generate g-soccon-vms.ads.
9321 * atree.adb: Add ??? comment
9323 * exp_util.adb: Minor reformatting.
9324 Add ??? comment in Kill_Dead_Code.
9326 2007-10-15 Robert Dewar <dewar@adacore.com>
9328 * errout.ads: Comment clarification
9330 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9331 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9333 * lib.ads: Comment update
9335 * init.c: Minor reformatting.
9337 * sem_attr.adb: Minor formatting
9339 * osint-b.ads: Minor reformatting
9341 * sem_ch9.adb: Implement -gnatd.I switch
9343 * g-comlin.adb: (Start): Fix handling of empty command line.
9345 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9346 even when -rules follows the -cargs section.
9348 2007-10-08 Ollie Wild <aaw@google.com>
9350 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9352 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9354 (gnat_eh_runtime_type): Removed.
9355 (gnat_return_tree): New function.
9357 2007-10-08 Ben Elliston <bje@au.ibm.com>
9361 2007-08-31 Ben Elliston <bje@au.ibm.com>
9363 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9364 when compiling for powerpc64-*-linux.
9365 * system-linux-ppc64.ads: New file.
9367 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
9369 Mapped location support
9370 * back_end.adb (Call_Back_End): Pass information about source
9371 files instead of units to gigi.
9372 * gigi.h (struct File_Info_Type): New.
9373 (gigi): Rename and change type of number_units parameter, change
9374 type of file_info_ptr parameter.
9375 * trans.c (number_files): New global variable.
9376 (gigi): Rename and change type of number_units parameter, change
9377 type of file_info_ptr parameter.
9378 If mapped location support is enabled, create the isomorphic mapping
9379 between source files and line maps.
9380 (Sloc_to_locus): If mapped location support is enabled, translate
9381 source location into mapped location.
9382 (annotate_with_node): Rename into set_expr_location_from_node.
9383 Call set_expr_location instead of annotate_with_locus.
9384 (Pragma_to_gnu): Adjust for above change.
9385 (Loop_Statement_to_gnu): Likewise.
9386 (call_to_gnu): Likewise.
9387 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9388 (gnat_to_gnu): Likewise.
9389 (add_stmt_with_node): Likewise.
9390 (add_cleanup): Likewise.
9391 * utils.c (gnat_init_decl_processing): Do not set input_line.
9393 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9395 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9396 (Applicable_Use): Emit a warning when a package tries to use itself.
9397 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9398 is already in use or the package where it is declared is in use or is
9399 declared in the current package.
9400 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9402 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9403 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9404 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9406 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9408 * a-calend-vms.adb, a-calend.adb:
9409 Add a section on leap seconds control along with two entities used to
9410 enable and disable leap seconds support. The array Leap_Second_Times is
9411 now constant and contains hard time values pre-generated. Remove
9412 all elaboration code used to populate the table of leap seconds.
9415 Add entity Leap_Seconds_Support to the list of global run-time variables
9416 along with a comment on its usage and values.
9417 (Gen_Adainit_Ada): Add code to generate the declaration and import of
9418 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9419 or one (enabled) depending on the presence of binder switch "-y".
9420 (Gen_Adainit_C): Add code to generate the declaration of external int
9421 __gl_leap_seconds_support. Set is value to zero (disabled) or one
9422 (enabled) depending on the presence of binder switch "-y".
9424 * init.c: Add __gl_leap_seconds_support to the list of global values
9425 computed by the binder.
9427 2007-09-26 Jerome Guitton <guitton@adacore.com>
9429 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9430 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9431 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9432 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9434 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9436 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9437 function which can be called by the debugger to interrupt the tasks of
9438 an Ada application asynchronously, as needed on VxWorks.
9439 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9441 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9442 renamed from Stop_All_Tasks. Update comments.
9443 (Stop_All_tasks): New function declaration.
9445 2007-09-26 Olivier Hainque <hainque@adacore.com>
9447 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9448 #include <utime.h> and #define GCC_RESOURCE_H before
9449 #include <sys/wait.h>.
9450 Add more protections in __gnat_translate_vms.
9452 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9453 #include <sys/wait.h>.
9455 2007-09-26 Thomas Quinot <quinot@adacore.com>
9456 Sergey Rybin <rybin@adacore.com>
9458 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9460 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9463 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9465 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9468 * sem_dist.ads: Minor comment fix
9470 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9472 2007-09-26 Javier Miranda <miranda@adacore.com>
9473 Eric Botcazou <ebotcazou@adacore.com>
9476 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9477 indirection added to the HT_Link component of the TSD. This is required
9478 to statically allocate the TSD.
9481 Minor reordering of the declarations in the private part. Required to
9482 add a level of indirection to the contents of the TSD component HT_Link.
9483 This is required to statically allocate the TSD.
9485 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9486 Is_Statically_Allocated set from constant objects.
9487 Do not make exported constants created by the compiler volatile.
9488 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9491 * trans.c (Identifier_to_gnu): For constants, unshare initializers
9492 before returning them.
9494 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9495 public part of the package.
9496 (Make_DT): Move HT_Link component out of the TSD record. For this
9497 purpose Make_DT now declares a separate object that stores the
9498 HT_Link value, and initializes the TSD component with the address
9499 of this new object. The addition of this level of indirection is
9500 required to statically allocate the TSD because the TSD cannot
9501 have variable components.
9502 (Expand_Interface_Conversion): Improve the expanded code.
9503 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9505 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9506 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9507 if we are building static dispatch tables then we must not generate
9508 extra code to register the primitive because the dispatch table will
9509 be built at the end of the library package; otherwise we notify that
9510 we cannot build the static dispatch table.
9512 2007-09-26 Robert Dewar <dewar@adacore.com>
9514 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9517 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9518 (Analyze_Record_Representation_Clause): Suppress junk warning for
9519 missing component clause.
9520 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9521 tests for controlled type overlay to composites with controlled
9523 (Analyze_Record_Representation_Clause): Add reference for component name
9525 2007-09-26 Javier Miranda <miranda@adacore.com>
9526 Gary Dismukes <dismukes@adacore.com>
9528 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9529 for thunks associated with interface types.
9531 * einfo.ads: Improve documentatation of Is_Internal
9532 (Is_Thunk): New attribute applicable to subprograms. True for thunks
9533 associated with interface types.
9534 Extensive comment fixes regarding flags that appear in all entities. The
9535 documentation is now consistent for all such flags (there were a number
9536 of errors in the documentation in this regard).
9538 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9540 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9541 of these procedures are passed a function call that already has
9542 build-in-place actuals (testing new flag
9543 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9544 the case where processing continues.
9545 (Expand_Call): If the call is generated from a thunk body then we
9546 propagate the extra actuals associated with the accessibility
9547 level of the access type actuals.
9549 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9550 of each extra formal of a protected operation to reference the
9551 corresponding extra formal of the subprogram denoted by the
9552 operation's Protected_Body_Subprogram.
9554 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9555 N_Function_Call nodes.
9557 2007-09-26 Robert Dewar <dewar@adacore.com>
9559 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9561 * debug.adb: Add d.s flag.
9563 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9565 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9566 debug variable so that it won't be initialized when pragma
9567 Initialize_Scalars is in effect.
9569 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9571 * freeze.adb (Freeze_Entity): Remove check for preelaborable
9572 initialization of a full view. This is moved to
9573 Analyze_Package_Specification.
9575 * sem_ch7.adb (Analyze_Package_Specification): Add check for
9576 preelaborable initialization of a full view in entity loop.
9577 (Uninstall_Declarations): If entity is a use-visible compilation unit,
9578 its child units are use-visible only if they are visible child units.
9580 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9581 whether an expression can be used within a type declaration that
9582 requires preelaborable init.
9583 (Check_Components): Replace inline code that does partial checking for
9584 preelaborable default expressions with call to
9585 Is_Preelaborable_Expression.
9586 (Has_Preelaborable_Initialization): In the case of a generic actual
9587 subtype, (that is, Is_Generic_Actual is True), return the result of
9588 applying Has_Preelaborable_Initialization to the generic actual's base
9591 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9593 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9594 call to Jan_1_Day _Of_Week to optimize its performance.
9595 (Is_Leap): Move the routine to the scope of Week_In_Year.
9596 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9597 weekday on which January 1 falls of Year - 1 and Year + 1. This function
9598 avoids calling Time_Of and Split, thus making it more efficent.
9599 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9601 * g-calend.ads (Week_In_Year): Change comment to reflect new
9604 2007-09-26 Emmanuel Briot <briot@adacore.com>
9606 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9607 Command_Line): New types
9608 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9609 support for defining how switches can be grouped on a command line (as
9610 is the case for -gnatw... for GNAT), and how simple switches can be
9611 used as aliases for more complex switches (-gnatwa is same as
9613 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9614 (Start, Current_*): New subprograms
9615 Added support for parsing an array of strings in addition to the real
9617 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9618 be moved from the body to the private part of the spec.
9619 (*): All subprograms now have an extra parameter with default value to
9620 specify which parser should be used. For backward compatibility, it
9621 defaults to parsing the command line of the application. They were also
9622 modified to properly handle cases where each of the argument does not
9623 start at index 1 (which is always true for Ada.Command_Line, but not
9624 when processing any Argument_List).
9625 (Free): New subprogram
9626 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9627 Argument): New subprograms
9628 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9629 special characters like ':', '=',... are now handled in a single place,
9630 which makes the code more extensible eventually.
9631 (Getopt, Full_Switch): When the switch was returned as part of the
9632 special character '*', make sure it is prepended by the switch character
9633 ('-' in general), so that the application knows whether "foo" or "-foo"
9634 was specified on the command line.
9636 2007-09-26 Florian Villoing <villoing@adacore.com>
9638 * g-dirope.adb (Remove_Dir): In case we are removing directories
9639 recursively, make sure that if an exception is raised during the
9640 processing, the current working directory is reset to its initial
9641 value before propagating the exception.
9643 2007-09-26 Vincent Celier <celier@adacore.com>
9645 * gnatbind.adb: If there are several ALI files specified and there is
9646 a main program to bind, the first ALI is expected to contain the main
9647 subprogram and the names of the binder generated files will be derived
9648 from the first ALI file name.
9649 (Gnatbind): Fix insertion character in invocation of Error_Msg
9651 2007-09-26 Vincent Celier <celier@adacore.com>
9653 * gnatcmd.adb (Check_Files): Do not include sources that have been
9654 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9656 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9658 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9659 information about each of its index types, following the type
9660 reference for its component type.
9662 2007-09-26 Vincent Celier <celier@adacore.com>
9664 * make.adb: (Kill): New procedure (__gnat_kill imported)
9665 (Running_Compile, Outstanding_Compiles): Global variables that
9666 were previously local to procedure Compile_Sources.
9667 (Sigint_Intercepted): Send signal SIGINT to all outstanding
9668 compilation processes.
9670 (Gnatmake): If project files are used, create the mapping of all the
9671 sources, so that the correct paths will be found.
9673 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9675 2007-09-26 Vincent Celier <celier@adacore.com>
9677 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9679 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9680 Replace components Compiler_Min_Options and Binder_Min_Options with
9681 Compiler_Required_Switches and Binder_Required_Switches in record
9683 Remove components Default_Language and Config in Project_Tree_Data,
9686 * prj-attr.adb: New attributes Required_Switches (<language>) in
9687 packages Compiler and Binder.
9689 * prj-nmsc.adb: Major rewrite of the processing of configuration
9690 attributes for gprbuild. No impact on GNAT tools.
9692 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9693 process configuration attributes: this is done in Prj.Nmsc.Check.
9694 (Recursive_Process): Make a full copy of packages inherited from project
9695 being extended, instead of a shallow copy.
9696 (Process_Project_Tree_Phase_1): New procedure
9697 (Process_Project_Tree_Phase_1): New procedure
9698 (Process): Implementation now uses the two new procedures
9700 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9701 from the project config, not the tree config that no longer exists.
9703 2007-09-26 Vincent Celier <celier@adacore.com>
9705 * Make-lang.in: Update dependencies..
9707 2007-09-26 Vincent Celier <celier@adacore.com>
9709 * osint.adb, osint.ads: Minor reformatting
9711 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9713 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9715 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9716 message to cite use of <> in aggregate component associations rather
9717 than wrongly indicating use of limited aggregates.
9719 2007-09-26 Robert Dewar <dewar@adacore.com>
9721 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9724 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9726 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9727 ancestor of the derived type, the operations are inherited from the
9728 primary dispatch table of the parent.
9729 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9730 when the context is an explicit type conversion.
9732 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9734 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9735 rule for qualified expressions properly, to detect improper conversions
9736 and resolve some cases of overloading.
9738 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9740 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9741 proper kind of reference to the primitive operation, for better source
9743 (Valid_Conversion): A tagged conversion is legal if both operands are
9746 2007-09-26 Robert Dewar <dewar@adacore.com>
9748 * sem_warn.adb (Check_References): Catch more cases of unreferenced
9751 2007-09-26 Vincent Celier <celier@adacore.com>
9753 * snames.adb, snames.ads: Change Include_Option to Include_Switches
9755 2007-09-26 Robert Dewar <dewar@adacore.com>
9757 * s-wchstw.adb: provide messages for run time unit exceptions
9759 * a-witeio.adb: Minor reformatting
9761 * exp_ch13.adb: Minor reformatting
9763 2007-09-26 Sergey Rybin <rybin@adacore.com>
9765 * vms_data.ads: Revise gnatmetric qualifiers.
9766 Add qualified for the new gnatbind option '-y'
9768 * gnat_ugn.texi: Revise the gnatmetric section.
9769 Add entry for new gnatbind option '-y'.
9771 * gnat_rm.texi: Minor spelling correction.
9772 Document restriction on overlaying controlled types
9774 2007-09-26 Vincent Celier <celier@adacore.com>
9776 * makegpr.adb (Link_Executables): Do not fail when the root project has
9777 no sources, but is an extending project.
9779 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9781 * trans.c: Fix misplaced #define.
9783 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9785 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9786 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9788 2007-09-21 Olivier Hainque <hainque@adacore.com>
9790 * utils.c (type_for_nonaliased_component_p): Return false for
9791 all AGGREGATE_TYPEs.
9793 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
9795 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9796 object covered by 13.3(19) volatile.
9798 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
9802 * utils.c (unchecked_convert): Use a subtype as the intermediate type
9803 in the special VIEW_CONVERT_EXPR case.
9805 2007-09-12 Robert Dewar <dewar@adacore.com>
9807 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9809 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9810 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9811 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9812 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9813 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9814 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9815 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9816 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9817 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9818 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9819 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9820 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9821 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9822 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9823 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9824 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9825 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9826 pragma Compiler_Unit and adds it to relevant library units.
9828 2007-09-12 Ed Schonberg <schonberg@adacore.com>
9830 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9831 a box need not correspond to any component.
9833 2007-09-12 Robert Dewar <dewar@adacore.com>
9835 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9836 the tasking version of the Ada run time when foreign threads are
9837 present and there are no explicit Ada tasks or tasking constructs.
9839 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9841 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
9843 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9844 the usage of switch -y.
9846 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9847 when switch -y is present.
9849 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9850 leap seconds in Ada.Calendar and its children.
9852 2007-09-12 Jose Ruiz <ruiz@adacore.com>
9854 * a-extiti.ads (Timer): The discriminant is a "not null access
9855 constant" in the Reference Manual.
9856 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9858 2007-09-12 Robert Dewar <dewar@adacore.com>
9860 * a-swuwha.adb: Remove junk RM header
9862 2007-09-12 Vincent Celier <celier@adacore.com>
9864 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9867 * g-bytswa.ads: Minor reformatting
9869 2007-09-12 Thomas Quinot <quinot@adacore.com>
9871 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
9872 Add new constant Thread_Blocking_IO, always True by default, set False
9873 on a per-runtime basis.
9874 (Need_Netdb_Buffer): New constant.
9876 2007-09-12 Arnaud Charlet <charlet@adacore.com>
9878 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9879 Added renames for corresponding functions in System.Partition_Interface.
9881 2007-09-12 Doug Rupp <rupp@adacore.com>
9883 * Makefile.in: Remove VMS specific System.CRTL packages which are no
9886 * s-crtl-vms64.ads: Removed.
9888 2007-09-12 Olivier Hainque <hainque@adacore.com>
9890 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9891 with discriminant constraints, generalize the code for BIT_FIELDs
9892 to PACKED fields of constant size and propagate DECL_PACKED.
9894 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
9896 * decl.c (array_type_has_nonaliased_component): New predicate.
9897 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9898 set the TYPE_NONALIASED_COMPONENT flag on the type.
9899 <E_Array_Subtype>: Likewise.
9900 * gigi.h (type_for_nonaliased_component_p): Declare.
9901 * utils.c (type_for_nonaliased_component_p): New predicate.
9902 (create_field_decl): Invoke the above predicate to set the
9903 DECL_NONADDRESSABLE_P flag on the field.
9905 2007-09-11 Javier Miranda <miranda@adacore.com>
9907 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9908 in library level record type entities if we are generating statically
9909 allocated dispatch tables.
9911 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9912 importing/exporting the _tag declaration by new code
9913 importing/exporting the dispatch table wrapper. This change allows us
9914 to statically allocate of the TSD.
9915 (Make_DT.Export_DT): New procedure.
9916 (Build_Static_DT): New function.
9917 (Has_DT): New function.
9919 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9920 True_Constant and Current_Value. Required to statically
9921 allocate the dispatch tables.
9922 (Check_Allocator): Make function iterative instead of recursive.
9923 Also return inner allocator node, when present, so that we do not have
9924 to look for that node again in the caller.
9926 2007-09-11 Jan Hubicka <jh@suse.cz>
9928 * misc.c (gnat_expand_body): Kill.
9929 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9931 2007-09-10 Robert Dewar <dewar@adacore.com>
9933 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9934 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9935 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9936 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9937 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9938 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9939 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9940 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9941 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9942 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9943 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9944 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9945 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9946 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9947 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9948 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9949 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9950 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9951 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9952 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9953 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9954 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9955 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9956 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9957 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9958 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9959 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9960 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9961 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9962 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9963 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9964 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9965 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9966 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9967 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9968 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9969 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9970 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9971 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9972 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9973 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9974 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9975 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9976 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9977 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9978 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9979 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9980 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9981 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9982 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9983 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9984 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9985 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9986 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9987 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9988 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9989 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9990 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9991 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9992 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9993 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9994 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9995 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9996 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9997 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9998 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9999 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10000 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
10001 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
10002 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
10003 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10004 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
10005 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
10006 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
10007 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
10008 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
10009 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
10010 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
10011 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
10012 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
10013 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
10014 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
10015 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
10017 2007-09-10 Emmanuel Briot <briot@adacore.com>
10019 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
10022 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
10024 * adaint.c (__gnat_translate_vms): new function.
10026 2007-09-10 Gary Dismukes <dismukes@adacore.com>
10027 Thomas Quinot <quinot@adacore.com>
10029 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
10030 create an abstract subprogram in the case of 'Input. For 'Output we now
10031 create a real spec/body when the type is abstract, since it can
10032 potentially be called.
10033 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
10034 body for 'Output when the type is abstract (only the creation of the
10035 body for 'Input is excluded when the type is abstract).
10036 (Stream_Operation_OK): Add an additional condition in the return
10037 statement, so that False will be returned for TTS_Stream_Input if the
10038 associated tagged type is an abstract extension. Add comments for
10040 (Expand_N_Object_Declaration): For the case of a shared passive
10041 variable, insert init proc call only after the shared variable
10042 procedures have been processed, because the IP call needs to undergo
10043 shared passive variable reference expansion, which requires these
10044 procedures to be available (and elaborated).
10046 2007-09-10 Vincent Celier <celier@adacore.com>
10048 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10049 parameter Runtime_Project.
10051 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10053 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10054 given a box association, the type of the component is discriminated,
10055 and the value of the discriminant is the discriminant of the enclosing
10056 type, retrieve its value from the aggregate itself, where it must have
10059 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10060 to remove other spurious ambiguities on arithmetic operations involving
10061 literals and addresses, on systems where Address is a visible integer
10062 type, when the operator is called in functional notation.
10063 (Try_Primitive_Operation): Within an instance, a call in prefixed form
10064 is legal when the types match, even if the operation is currently
10067 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10069 * sem_ch12.adb (Build_Local_Package): A formal package with no
10070 associations is legal if all formals have defaults. It is not
10071 equivalent to a formal declared with a box.
10073 2007-09-10 Sergey Rybin <rybin@adacore.com>
10075 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10077 2007-09-10 Sergey Rybin <rybin@adacore.com>
10079 * gnat_ugn.texi: Add description of the new '-lratio' option
10080 Update 7.3.1 section about availability of the feature.
10082 2007-09-10 Thomas Quinot <quinot@adacore.com>
10084 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10087 2007-09-10 Olivier Hainque <hainque@adacore.com>
10089 * Makefile.in: (mips-irix section): Activate build of libgmem.
10091 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10093 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10096 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10098 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10099 a debug renaming declaration specially.
10101 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10103 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10104 which a constant renaming is treated as a normal object declaration.
10105 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10106 the N_Indexed_Component case.
10107 <N_Indexed_Component>: Fall through to above case.
10108 <N_Object_Renaming_Declaration>: Return true for all composite types.
10110 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10112 * decl.c (make_packable_type): If the new type has been given BLKmode,
10113 try again to get an integral mode for it.
10115 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
10117 Re-apply accidentally reverted change:
10119 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10121 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10122 get_action_description_for): Replace _Unwind_Word with _uleb128_t
10123 and _Unwind_SWord with _sleb128_t.
10125 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
10127 * trans.c (convert_with_check): Update call to real_2expN.
10129 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
10131 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10132 * utils.c (end_subprog_body): Likewise.
10134 2007-09-03 Nick Clifton <nickc@redhat.com>
10136 * Make-lang.in: Change copyright header to refer to version 3 of
10137 the GNU General Public License and to point readers at the
10138 COPYING3 file and the FSF's license web page.
10139 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10140 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10141 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10142 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10145 2007-08-31 Vincent Celier <celier@adacore.com>
10149 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10150 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10151 (Check_Version_And_Help): New procedure in package Switch to process
10152 switches --version and --help.
10153 Use Check_Version_And_Help in GNAT tools
10156 (Compile_Sources): Make sure that sources that are "excluded" are not
10158 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10159 project file is used.
10160 (Version_Switch): Remove, moved to Switch
10161 (Help_Switch): Remove, moved to Switch
10162 (Display_Version): Remove, moved to Switch
10164 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10165 package Switch to process switches --version and --help.
10166 (Display_Version): New procedure
10168 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10170 2007-08-31 Javier Miranda <miranda@adacore.com>
10172 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10175 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10177 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10178 (Mark_Non_Null): If the node for which we just generated an access check
10179 is a reference to an *in* parameter and the reference appears in the
10180 declarative part of a subprogram body, mark the node as known non null.
10182 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10184 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10185 structure of E_Exception to reflect the new flag.
10186 (Is_Raised, Set_Is_Raised): New inlined routines.
10187 Update the usage of available flag to reflect the addition of Is_Raised.
10188 (Is_Raised, Set_Is_Raised): Bodies of new routines.
10189 (Write_Entity_Flags): Write the status of flag Is_Raised.
10190 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10191 spurious ambiguities when integer literals appear in the context of an
10192 address type that is a visible integer type.
10194 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10195 exceptions never being raised.
10196 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10199 2007-08-31 Javier Miranda <miranda@adacore.com>
10201 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10202 statement when compiling under restriction No_Exceptions_Proparation.
10204 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10206 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10207 initialization aggregate for the type, generate itype references for
10208 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10210 2007-08-31 Gary Dismukes <dismukes@adacore.com>
10212 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10213 library-level package renaming, pass the declaration associated with
10214 the renaming's special debug variable to Qualify_Entity_Names to ensure
10215 that its encoded name is properly qualified.
10217 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10218 occurring in the list of entities to qualify, and do not attempt to
10219 traverse an entity list in that case. Variables associated with
10220 ` library-level package renamings can now occur in the table.
10222 * exp_dbug.ads: Revise documentation of the encoding for renaming
10225 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10227 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10228 access type points to an unconstrained array.
10230 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10232 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10235 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10236 simple redundant qualifications. The check is performed whenever the
10237 expression is a non-overloaded identifier.
10238 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10239 to include loop parameters.
10240 (Valid_Conversion): Avoid generation of spurious error message.
10242 2007-08-31 Bob Duff <duff@adacore.com>
10244 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10245 concatenations of string literals into a single literal, in order to
10246 avoid very deep recursion in the front end, which was causing stack
10249 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10250 string, and the right operand is a string literal (the case of "" &
10251 "..."), optimize by avoiding copying the right operand -- just use the
10252 value of the right operand directly.
10254 * stringt.adb (Store_String_Chars): Optimize by growing the
10255 String_Chars table all at once, rather than appending characters one by
10257 (Write_String_Table_Entry): If the string to be printed is very long,
10258 just print the first few characters, followed by the length. Otherwise,
10259 doing "pn(n)" in the debugger can take an extremely long time.
10261 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10262 Store_String_Char with Store_String_Chars.
10264 2007-08-31 Vincent Celier <celier@adacore.com>
10266 * prj-attr.adb: Add new attribute Excluded_Source_Files
10268 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10269 Locally_Removed_Files.
10271 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10273 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10275 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10276 clauses of subunits, ignore limited_with_clauses that are illegal and
10277 have not been fully analyzed.
10279 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10281 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10282 flag, for effiency. It is called when analyzing arithmetic operators
10283 and also for actuals in calls that are universal_integers. The flag is
10284 set for the predefined type address, and for any type or subtype
10287 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10288 Universal_Integer, when the formal is a descendent of address and the
10289 call appears in user code.
10290 (Analyze_Selected_Component): if the prefix is a private extension, the
10291 tag component is visible.
10293 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10296 2007-08-31 Robert Dewar <dewar@adacore.com>
10298 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10299 sensitive file name systems to avoid unexpected mismatch in Vista.
10301 2007-08-31 Vincent Celier <celier@adacore.com>
10303 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10305 2007-08-31 Vincent Celier <celier@adacore.com>
10307 * symbols-vms.adb (Initialize): Read symbol files with continuation
10309 (Finalize): If symbol is long, split the line
10311 2007-08-31 Vincent Celier <celier@adacore.com>
10313 * fmap.ads: Minor comment updates
10315 2007-08-31 GNAT Script <nobody@adacore.com>
10317 * Make-lang.in: Makefile automatically updated
10319 2007-08-31 Bob Duff <duff@adacore.com>
10321 * sinfo.ads: Minor comment fix.
10323 2007-08-31 Thomas Quinot <quinot@adacore.com>
10325 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10326 with implementation.
10327 Documentation cleanup only.
10329 2007-08-31 Sergey Rybin <rybin@adacore.com>
10331 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10332 gnatpp '--separate-stmt-name' option.
10333 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10336 * gnat_ugn.texi: Add description for the new gnatpp
10337 '--separate-stmt-name' and '--use-on-new-line' options.
10339 2007-08-31 Ben Elliston <bje@au.ibm.com>
10341 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10342 when compiling for powerpc64-*-linux.
10343 * system-linux-ppc64.ads: New file.
10345 2007-08-22 Krister Walfridsson <cato@df.lth.se>
10347 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10350 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10352 * misc.c (gnat_type_max_size): Constify.
10354 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10356 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10357 associated with Standard_Debug_Renaming_Type, to be used as the type of
10358 the special variables whose names provide debugger encodings for
10359 renaming declarations.
10361 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10362 (Set_Debug_Renaming_Link): Change to set Node25.
10363 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10364 (Write_Field25_Name): Add case for E_Variable to output
10365 "Debug_Renaming_Link".
10366 (Write_Field23_Name): Correct the output string for "Limited_View".
10368 * exp_dbug.adb: Add with and use of Tbuild.
10369 (Debug_Renaming_Declaration): Replace creation of an enumeration type
10370 and literal with creation of a variable of type
10371 Standard_Debug_Renaming_Type whose name encodes both the renamed object
10372 and the entity of the renaming declaration.
10373 (Qualify_Entity_Name): Add the delayed qualification of the entity name
10374 part of the name of a variable that has a Debug_Renaming_Link.
10376 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10377 special type to be associated with variables that provide debugger
10378 encodings for renaming declarations.
10380 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10381 Ed Schonberg <schonberg@adacore.com>
10382 Javier Miranda <miranda@adacore.com>
10384 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10385 ancestor part given by an aggregate to test for an unchecked conversion,
10386 since this can occur in some cases when the ancestor part is a function
10387 call, and we don't want to fall into the recursive call to this
10388 procedure in that case.
10390 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10391 stream attributes on limited types to account for user-specified
10392 attributes as well as whether Input (resp. Output) becomes available
10393 due to Read (resp. Write) being available for the type. Change Boolean
10394 variable to the more accurate name
10395 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10396 double-"not" predicate at beginning of return statement to more
10397 understandable form.
10399 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10400 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10401 in a block statement and use that as the first statement of the
10402 expanded return rather than incorrectly using the handled sequence as
10403 the first statement.
10405 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10406 operation, generate an explicit freeze node for it rather than
10407 generating extra formals, to ensure that gigi has the proper order of
10408 elaboration for anonymous subtypes in the signature of the subprograms.
10409 (Build_In_Place_Formal): Move assertion to beginning of loop.
10410 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10411 applied to a function call (occurs for some cases of 'Input).
10412 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10413 applied to a function call (occurs for some cases of 'Input).
10415 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10416 2005, generate an extended return statement enclosing the result object
10419 * freeze.adb (Freeze_Record_Type): Extend the current management of
10420 components that are access type with an allocator as default value: add
10421 missing support to the use of qualified expressions of the
10422 allocator (which also cause freezing of the designated type!)
10423 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10424 dispatching operation, since extra formals may be needed by calls to
10425 build-in-place functions (such as stream 'Input).
10427 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10428 formals for 'Constrained and accessibility level in the case of a
10429 predefined dispatching operation.
10431 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10432 point, no need to find the parent node.
10434 2007-08-16 Javier Miranda <miranda@adacore.com>
10436 * exp_attr.adb (Attribute_Priority): Add missing support for entries
10437 and entry barriers.
10439 2007-08-16 Javier Miranda <miranda@adacore.com>
10441 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10442 is not really required and can introduce regression with the debugger.
10443 The original problem is fixed with the patch written for checks.adb.
10445 2007-08-16 Thomas Quinot <quinot@adacore.com>
10447 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10448 Range_Check on Allocated_Table.
10450 2007-08-16 Vincent Celier <celier@adacore.com>
10452 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10453 Including_Non_Switch set to False.
10454 (Gnatmake): For the compiler, call Test_If_Relative_Path with
10455 Including_Non_Switch set to False.
10457 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10458 parameter Including_Non_Switch, defaulted to True. When
10459 Including_Non_Switch is False, options that are not switches and
10460 appear as relative path are not converted to absolute paths.
10462 2007-08-16 Nicolas Roche <roche@adacore.com>
10464 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10467 * Make-lang.in: Update dependencies
10469 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10471 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10472 currently inspected is a selected component, retrieve the entity of
10474 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10475 from the immediate ancestor of Main_Unit_Entity.
10476 (Install_Limited_Withed_Unit): Do not install the limited view of
10477 package P if P is reachable through an ancestor chain from package C
10478 and C also has a with clause for P in its body.
10479 (Has_Limited_With_Clause): New routine.
10480 (Has_With_Clause): New routine.
10482 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10484 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10485 generic for an enclosing instance is a global reference, even though
10486 its scope is the enclosing instance.
10488 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10489 Javier Miranda <miranda@adacore.com>
10491 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10492 initialize a limited object.
10493 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10495 Make sure Has_Complex_Representation is inherited by derived type.
10497 2007-08-16 Robert Dewar <dewar@adacore.com>
10499 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10502 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10504 * sem_disp.adb (Check_Dispatching_Operation): If the operation
10505 implements an operation inherited from a progenitor interface, verify
10506 that they are subtype-conformant.
10508 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10509 Bob Duff <duff@adacore.com>
10510 Nicolas Setton <setton@adacore.com>
10512 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10513 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10514 the statement which is being resolved comes from a predefined library
10515 unit, all non-predefined library interpretations are skipped.
10516 (Resolve_Op_Concat): If string concatenation was folded in the parser,
10517 but the "&" is user defined, give an error, because the folding would
10520 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10521 the parser has folded a long sequence of concatenations of string
10524 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10525 and "JMP_BUF" variables as artificial.
10526 (N_String_Literal): Do not use alloca for very long string literals. Use
10527 xmalloc/free instead. Otherwise the stack might overflow.
10529 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10532 2007-08-16 Vincent Celier <celier@adacore.com>
10534 * vms_conv.adb (Process_Argument): Ensure that project related options
10535 are not put in the -cargs section when using GNAT COMPILE.
10537 2007-08-16 Robert Dewar <dewar@adacore.com>
10539 * gnat_ugn.texi: Add note on preprocessing (output file not written)
10541 2007-08-16 Thomas Quinot <quinot@adacore.com>
10543 * a-tags.adb: Minor reformatting.
10545 2007-08-16 Bob Duff <duff@adacore.com>
10547 * sem_type.ads, sem_ch4.adb: Minor reformatting.
10549 2007-08-14 Thomas Quinot <quinot@adacore.com>
10551 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10552 s-osinte-interix.ads, system-interix.ads: Removed.
10554 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10556 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10557 calls to Check_Within_Time_Bounds.
10558 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10559 (Difference): Account for possible rounding of the resulting difference
10561 2007-08-14 Robert Dewar <dewar@adacore.com>
10563 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10564 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10565 s-osinte-solaris.adb, s-osinte-solaris.ads,
10566 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10568 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10569 switch -gnatyS. Enable -gnatyS in GNAT style check mode
10571 2007-08-14 Robert Dewar <dewar@adacore.com>
10572 Ed Schonberg <schonberg@adacore.com>
10574 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10575 Suppress unmodified in-out parameter warning in some cases
10576 This patch is a also fairly significant change to the way suppressible
10577 checks are handled.
10579 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10580 needed for access to concurrent record types generated by the expander.
10581 (Generate_Range_Check): When generating a temporary to capture the
10582 value of a conversion that requires a range check, set the type of the
10583 temporary before rewriting the node, so that the type is always
10584 properly placed for back-end use.
10585 (Apply_Float_Conversion_Check): Handle case where the conversion is
10587 (Get_Discriminal): Code reformatting. Climb the scope stack looking
10588 for a protected type in order to examine its discriminants.
10590 2007-08-14 Robert Dewar <dewar@adacore.com>
10591 Gary Dismukes <dismukes@adacore.com>
10592 Ed Schonberg <schonberg@adacore.com>
10593 Thomas Quinot <quinot@adacore.com>
10595 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10596 a-stwisu.adb, a-strsup.adb: Fix warnings for range
10597 tests optimized out.
10599 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10600 (Get_Allocator_Final_List): For the case of an anonymous access type
10601 that has a specified Associated_Final_Chain, do not go up to the
10603 (Expand_N_Type_Conversion): Test for the case of renamings of access
10604 parameters when deciding whether to apply a run-time accessibility
10606 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10607 aggregate code before allocator, and ahead of declaration for
10608 temporary, to prevent access before elaboration when the allocator is
10609 an actual for an access parameter.
10610 (Expand_N_Type_Conversion): On an access type conversion involving an
10611 access parameter, do not apply an accessibility check when the
10612 operand's original node was an attribute other than 'Access. We now
10613 create access conversions for the expansion of 'Unchecked_Access and
10614 'Unrestricted_Access in certain cases and clearly accessibility should
10615 not be checked for those.
10617 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10618 includes a type conversion of a packed component that has been expanded,
10619 recover the original expression for the object, and use this expression
10620 in the post-call assignment statement, so that the assignment is made
10621 to the object and not to a back-end temporary.
10622 (Freeze_Subprogram): In case of primitives of tagged types not defined
10623 at the library level force generation of code to register the primitive
10624 in the dispatch table. In addition some code reorganization has been
10625 done to leave the implementation clear.
10626 (Expand_Call): When expanding an inherited implicit conversion,
10627 preserve the type of the inherited function after the intrinsic
10628 operation has been expanded.
10630 * exp_ch2.ads, exp_ch2.adb
10631 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10632 of an entry formal appearing in an assignment statement does not assign
10634 (Expand_Current_Value): Instead of calling a routine to determine
10635 whether the prefix of an attribute reference should be optimized or
10636 not, prevent the optimization of such prefixes all together.
10638 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10639 component whose prefix is known to be of an access type is an implicit
10640 dereference and does not assign to the prefix.
10642 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10643 Robert Dewar <dewar@adacore.com>
10645 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10646 itype is visited, make an entry into table to link associated node and
10648 Add comments and correct harmless error in Build_NCT_Hash_Tables
10649 (Array_Aggr_Subtype): Associate each itype created for an index type to
10650 the corresponding range construct, and not to the aggregate itself. to
10651 maintain a one-to-one correspondence between itype and its associated
10652 node, to prevent errors when complex expression is copied.
10653 Fix mishandling of multiple levels of parens
10655 * sem_aggr.adb: Create a limited view of an incomplete type, to make
10656 treatment of limited views uniform for all visible declarations in a
10657 limited_withed package.
10658 (New_Copy_Tree): If hash table is being used and itype is visited,
10659 make an entry into table to link associated node and new itype.
10660 (Resolve_Record_Aggregate): Do not add an others box association for a
10661 discriminated record component that has only discriminants, when there
10662 is a box association for the component itself.
10664 * par-ch4.adb: Fix mishandling of multiple levels of parens
10666 2007-08-14 Robert Dewar <dewar@adacore.com>
10668 * comperr.adb: Fix problem with suppressing warning messages from gigi
10670 * erroutc.ads, erroutc.adb, errout.ads,
10671 errout.adb (Write_Eol): Remove trailing spaces before writing the line
10672 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10673 possible trailing spaces.
10674 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10675 Fix problem with suppressing warning messages from back end
10676 Improve handling of deleted warnings
10679 Fix problem with suppressing warning messages from back end
10680 Handle setting of Static_Dispatch_Tables flag.
10683 Fix problem with suppressing warning messages from back end
10685 * exp_intr.adb: Improve handling of deleted warnings
10687 2007-08-14 Robert Dewar <dewar@adacore.com>
10689 * debug.adb: Improve -gnatdI to cover all cases of serialization
10690 Add documentation of dZ, d.t
10692 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10694 (Sprint_Node_Actual): Generate new output associated with implicit
10695 importation and implicit exportation of object declarations.
10697 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10698 Robert Dewar <dewar@adacore.com>
10699 Javier Miranda <miranda@adacore.com>
10700 Gary Dismukes <dismukes@adacore.com>
10702 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10703 to make treatment of limited views uniform for all visible declarations
10704 in a limited_withed package.
10705 Improve warnings for in out parameters
10706 (Set_Related_Interaface/Related_Interface): Allow the use of this
10707 attribute with constants.
10708 (Write_Field26_Name): Handle attribute Related_Interface in constants.
10709 Warn on duplicate pragma Preelaborable_Initialialization
10711 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10712 generation of a freezing node to ensure proper management of null
10713 excluding access types in the backend.
10714 (Create_Extra_Formals): Test base type of the formal when checking for
10715 the need to add an extra accessibility-level formal. Pass the entity E
10716 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10717 originally being done in a couple of cases), to ensure that the
10718 Extra_Formals list gets set on the entity E when the first entity is
10720 (Conforming_Types): Add missing calls to Base_Type to the code that
10721 handles anonymous access types. This is required to handle the
10722 general case because Process_Formals builds internal subtype entities
10723 to handle null-excluding access types.
10724 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10725 functions that need it, even when not marked Requires_Overriding.
10726 Improve warnings for in out parameters
10727 (Analyze_Function_Return): Warn for disallowed null return
10728 Warn on return from procedure with unset out parameter
10729 Ensure consistent use of # in error messages
10730 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10731 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10732 the implicit conversion of the expression done for anonymous access
10733 types. This is required to generate the code of the null excluding
10734 check (if required).
10736 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10737 A formal parameter is never publicly referenceable outside of its body.
10738 (Check_References): For an unreferenced formal parameter in an accept
10739 statement, use the same warning circuitry as for subprogram formal
10741 (Warn_On_Unreferenced_Entity): New subprogram, taken from
10742 Output_Unreferenced_Messages, containing the part of that routine that
10743 is now reused for entry formals as described above.
10744 (Goto_Spec_Entity): New function
10745 (Check_References): Do not give IN OUT warning for dispatching operation
10746 Improve warnings for in out parameters
10747 (Test_Ref): Check that the entity is not undefinite before calling
10748 Scope_Within, in order to avoid infinite loops.
10749 Warn on return from procedure with unset out parameter
10750 Improved warnings for unused variables
10752 2007-08-14 Robert Dewar <dewar@adacore.com>
10753 Javier Miranda <miranda@adacore.com>
10754 Gary Dismukes <dismukes@adacore.com>
10756 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10757 (Expand_N_Attribute_Reference): Further unify the handling of the
10758 three forms of access attributes, using common code now for all three
10759 cases. Add a test for the case of applying an access attribute to
10760 an explicit dereference when the context is an access-to-interface
10761 type. In that case we need to apply the conversion to the prefix
10762 of the explicit dereference rather than the prefix of the attribute.
10763 (Attribute_Version, UET_Address): Set entity as internal to ensure
10764 proper dg output of implicit importation.
10765 (Expand_Access_To_Type): Removed.
10766 (Expand_N_Attribute_Reference): Merge the code from the three cases
10767 of access attributes, since the processing is largely identical for
10768 these cases. The substantive fix here is to process the case of a
10769 type name prefix (current instance case) before handling the case
10770 of interface prefixes.
10772 2007-08-14 Thomas Quinot <quinot@adacore.com>
10773 Ed Schonberg <schonberg@adacore.com>
10774 Javier Miranda <miranda@adacore.com>
10775 Robert Dewar <dewar@adacore.com>
10777 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10778 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10779 type that is an anonymous access to controlled object, establish
10780 an associated finalization chain to avoid corrupting the global
10781 finalization list when a dynamically allocated object designated
10782 by such a component is deallocated.
10783 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10784 functions that need it, even when not marked Requires_Overriding.
10785 (Initialize_Tag): Replace call to has_discriminants by call to
10786 Is_Variable_Size_Record in the circuitry that handles the
10787 initialization of secondary tags.
10788 (Is_Variable_Size_Record): New implementation.
10789 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10790 Suppress_Initialization pragma for a derived type.
10791 (Is_Variable_Size_Record): New subprogram.
10792 (Build_Offset_To_Top_Functions): New implementation that simplifies the
10793 initial version of this routine and also fixes problems causing
10794 incomplete initialization of the table of interfaces.
10795 (Build_Init_Procedure): Improve the generation of code to initialize the
10796 the tag components of secondary dispatch tables.
10797 (Init_Secondary_Tags): New implementation that simplifies the previous
10798 version of this routine.
10799 (Make_DT): Add parameter to indicate when type has been frozen by an
10800 object declaration, for diagnostic purposes.
10801 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10802 diagnose attemps to freeze a subprogram when some untagged type of its
10803 profile is a private type whose full view has not been analyzed yet.
10804 (Freeze_Array_Type): Generate init proc for packed array if either
10805 Initialize or Normalize_Scalars is set.
10806 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10807 constructing the new profile, copy the null_exclusion indicator for each
10808 parameter, to ensure full conformance of the new body with the spec.
10810 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10811 Create wrappers for constructor functions that need it, even when not
10812 marked Requires_Overriding.
10813 (Covers): Handle properly designated types of anonymous access types,
10814 whose non-limited views are themselves incomplete types.
10815 (Add_Entry): Use an entity to store the abstract operation which hides
10817 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10818 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10819 initialization aggregate.
10820 (Function_Interp_May_Be_Hidden): Rename to
10821 Function_Interp_Has_Abstract_Op.
10822 (Has_Compatible_Type): Remove machinery that skips interpretations if
10823 they are labeled as potentially hidden by an abstract operator.
10824 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10825 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10826 (Write_Overloads): Output the abstract operator if present.
10827 (Add_Entry): Before inserting a new entry into the interpretation table
10828 for a node, determine whether the entry will be disabled by an abstract
10830 (Binary_Op_Interp_May_Be_Hidden): New routine.
10831 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10833 (Function_Interp_May_Be_Hidden): New routine.
10834 (Has_Compatible_Type): Do not consider interpretations hidden by
10835 abstract operators when trying to determine whether two types are
10837 (Has_Hidden_Interp): New routine.
10838 (Set_May_Be_Hidden_Interp): New routine.
10839 (Write_Overloads): Write the status of flag May_Be_Hidden.
10841 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10842 Javier Miranda <miranda@adacore.com>
10844 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10845 types declared in the declarative part of a nested package body or in
10846 the proper body of a stub.
10847 (Set_All_DT_Position): Add missing check to avoid wrong assignation
10848 of the same dispatch table slot to renamed primitives.
10849 (Make_Select_Specific_Data_Table): Handle private types.
10850 (Tagged_Kind): Handle private types.
10851 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10852 output of implicit importation and exportation.
10853 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10854 first formal of the thunk is always associated with the controlling
10855 type. In addition perform the following code cleanup: remove formal
10856 Thunk_Alias which is no longer required, cleanup evaluation of the
10857 the controlling type, and update the documentation.
10858 Replace occurrence of Default_Prim_Op_Count by
10859 Max_Predef_Prims. Addition of compile-time check to verify
10860 that the value of Max_Predef_Prims is correct.
10861 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10862 (Make_DT): Add parameter to indicate when type has been frozen by an
10863 object declaration, for diagnostic purposes.
10864 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10865 construction of statically allocated dispatch tables.
10866 (Make_DT): In case of library-level tagged types export the declaration
10867 of the primary tag. Remove generation of tags (now done by Make_Tags).
10868 Additional modifications to handle non-static generation of dispatch
10869 tables. Take care of building tables for asynchronous interface types
10870 (Make_Tags): New subprogram that generates the entities associated with
10871 the primary and secondary tags of Typ and fills the contents of Access_
10872 Disp_Table. In case of library-level tagged types imports the forward
10873 declaration of the primary tag that will be declared later by Make_DT.
10874 (Expand_Interface_Conversion): In case of access types to interfaces
10875 replace an itype declaration by an explicit type declaration to avoid
10876 problems associated with the scope of such itype in transient blocks.
10878 2007-08-14 Robert Dewar <dewar@adacore.com>
10879 Ed Schonberg <schonberg@adacore.com>
10880 Javier Miranda <miranda@adacore.com>
10882 * exp_util.ads, exp_util.adb:
10883 This patch replaces a number of occurrences of explicit tests for N_Null
10884 with calls to Known_Null. This improves tracking of null values, since
10885 Known_Null also catches null constants, and variables currently known to
10886 be null, so we get better tracking.
10887 (Ensure_Defined): create an itype reference only in the scope of the
10889 (Side_Effect_Free): A selected component of an access type that
10890 denotes a component with a rep clause must be treated as not
10891 side-effect free, because if it is part of a linked structure its
10892 value may be affected by a renaming.
10893 (Expand_Subtype_From_Expr): For limited objects initialized with build
10894 in place function calls, do nothing; otherwise we prematurely introduce
10895 an N_Reference node in the expression initializing the object, which
10896 breaks the circuitry that detects and adds the additional arguments to
10897 the called function. Bug found working in the new patch for statically
10898 allocated dispatch tables.
10899 (Is_Library_Level_Tagged_Type): New subprogram.
10900 (Remove_Side_Effects): If the expression of an elementary type is an
10901 operator treat as a function call.
10902 (Make_Literal_Range): If the index type of the array is not integer, use
10903 attributes properly to compute the constraint on the resulting aggregate
10906 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10907 class-wide type whose base type is an incomplete private type, leave
10908 class-wide type unfrozen so that freeze nodes can be generated
10909 properly at a later point.
10910 (Freeze_Entity, array case): Handle case of pragma Pack and component
10911 size attributre clause for same array.
10913 2007-08-14 Vincent Celier <celier@adacore.com>
10915 * prj.ads, prj.adb: Update Project Manager to new attribute names for
10917 Allow all valid declarations in configuration project files
10918 (Reset): Initialize all tables and hash tables in the project tree data
10919 Major update of the Project Manager and of the project aware tools,
10920 including gprmake, so that the same sources in the GNAT repository
10921 can be used by gprbuild.
10922 (Slash_Id): Change type to be Path_Name_Type
10923 (Slash): Return a Path_Name_Type instead of a File_Name_Type
10925 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10927 Update Project Manager to new attribute names for ghprbuild
10928 Allow all valid declarations in configuration project files
10929 Major update of the Project Manager and of the project aware tools,
10930 including gprmake, so that the same sources in the GNAT repository
10931 can be used by gprbuild.
10934 Major update of the Project Manager and of the project aware tools,
10935 including gprmake, so that the same sources in the GNAT repository
10936 can be used by gprbuild.
10938 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10939 insensitive flag for attributes with optional index.
10940 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10941 array attribute, put the index in lower case.
10942 Update Project Manager to new attribute names for ghprbuild
10943 Allow all valid declarations in configuration project files
10944 Major update of the Project Manager and of the project aware tools,
10945 including gprmake, so that the same sources in the GNAT repository
10946 can be used by gprbuild.
10948 * prj-env.ads, prj-env.adb:
10949 Major update of the Project Manager and of the project aware tools,
10950 including gprmake, so that the same sources in the GNAT repository
10951 can be used by gprbuild.
10952 (Get_Reference): Change type of parameter Path to Path_Name_Type
10954 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10955 removing '-' from the path to start with the first character of the
10957 Major update of the Project Manager and of the project aware tools,
10958 including gprmake, so that the same sources in the GNAT repository
10959 can be used by gprbuild.
10960 Major update of the Project Manager and of the project aware tools,
10961 including gprmake, so that the same sources in the GNAT repository
10962 can be used by gprbuild.
10964 * prj-nmsc.ads, prj-nmsc.adb:
10965 Update Project Manager to new attribute names for ghprbuild
10966 Allow all valid declarations in configuration project files
10967 (Search_Directories): Detect subunits that are specified with an
10968 attribute Body in package Naming. Do not replace a source/unit in the
10969 same project when the order of the source dirs are known. Detect
10970 duplicate sources/units in the same project when the order of the
10971 source dirs are not known.
10972 (Check_Ada_Name): Allow all identifiers that are not reserved words
10974 Major update of the Project Manager and of the project aware tools,
10975 including gprmake, so that the same sources in the GNAT repository
10976 can be used by gprbuild.
10977 (Look_For_Sources): If the list of sources is empty, set the object
10978 directory of non extending project to nil.
10979 Change type of path name variables to be Path_Name_Type
10980 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10981 otherwise creating missing directories will fail.
10983 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
10984 prj-part.ads, prj-part.adb:
10985 Major update of the Project Manager and of the project aware tools,
10986 including gprmake, so that the same sources in the GNAT repository
10987 can be used by gprbuild.
10989 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10990 insensitive flag for attributes with optional index.
10991 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10992 array attribute, put the index in lower case.
10993 (Parse_Variable_Reference): Allow the current project name to be used in
10994 the prefix of an attribute reference.
10996 * prj-util.ads, prj-util.adb
10997 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10998 defaulted to False. When True, always check against indexes in lower
11001 * snames.ads, snames.h, snames.adb:
11002 Update Project Manager to new attribute names for gprbuild
11003 Allow all valid declarations in configuration project files
11005 2007-08-14 Robert Dewar <dewar@adacore.com>
11006 Ed Schonberg <schonberg@adacore.com>
11008 * opt.ads: Warning for non-local exception propagation now off by
11010 New switch -gnatI to disable representation clauses
11011 Implement new pragma Implicit_Packing
11014 Warning for non-local exception propagation now off by default
11015 Add warning for unchecked conversion of pointers wi different
11017 New switch -gnatI to disable representation clauses
11019 * usage.adb: new switch -gnatyS
11021 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
11022 note that aggregates of anonymous array types are not flagged.
11023 -gnatwc now includes membership tests optimized away
11024 -gnatw.x warnings are now off by default
11025 Added conditional compilation Appendix
11026 Add documentation of -gnatI
11027 Add documentation for new -gnatyS style check
11028 Update documentation about SAL and auto-init on Windows.
11031 Add documentation for pragma Check_Name and 'Enabled attribute
11032 Document that Eliminate on dispatching operation is ignored
11033 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
11034 Document pragma Main
11035 Document pragma Implicit_Packing
11037 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
11038 different conventions
11039 New switch -gnatI to disable representation clauses
11041 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11042 recognized, report the invalid characters including "-gnat" instead of
11043 just the first character in the switch.
11044 New switch -gnatI to disable representation clauses
11045 Set Warn_On_Object_Renames_Function true for -gnatg
11047 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11048 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11049 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11050 to switch -aP (add directory to project search dir).
11052 * par-prag.adb: Implement new pragma Implicit_Packing
11054 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11055 type as having a non-standard representation, to force expansion on
11056 conversion to related types.
11057 (Analyze_Pragma): Warn on misspelled pragma
11058 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11059 Ensure consistent use of # in error messages
11060 Implement pragma Implicit_Packing
11062 2007-08-14 Olivier Hainque <hainque@adacore.com>
11063 Eric Botcazou <ebotcazou@adacore.com>
11065 * targtyps.c (get_target_maximum_default_alignment): New function.
11067 that the compiler might choose by default for a type or object.
11068 (get_target_default_allocator_alignment): New function. Alignment known
11069 to be honored by the target default allocator.
11070 (get_target_maximum_allowed_alignment): New function. Maximum alignment
11071 we might accept for any type or object on the target.
11072 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11074 * gigi.h (get_target_maximum_default_alignment): Declare new function.
11075 (get_target_default_allocator_alignment): Likewise.
11076 (get_target_maximum_allowed_alignment): Likewise.
11079 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11080 result of a function call, first try to use a stabilized reference for
11081 a constant renaming too.
11082 (validate_alignment): Use target_maximum_allowed_alignment instead of
11083 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11084 (gnat_to_gnu_entity): Use common nodes directly.
11085 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11086 alignment and size for the object.
11087 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11088 and N_Procedure_Call_Statement.
11089 (takes_address): Rename to lvalue_required_p, add third parameter
11090 'aliased' and adjust recursive calls.
11091 <N_Indexed_Component>: Update 'aliased' from the array type.
11092 <N_Selected_Component>: New case.
11093 <N_Object_Renaming_Declaration>: New Likewise.
11094 (Identifier_to_gnu): Adjust for above changes.
11095 (maybe_stabilize_reference) <CONST_DECL>: New case.
11097 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11098 between type variants.
11099 (build_simple_component_ref): Likewise.
11100 (build_call_alloc_dealloc): Use target_default_allocator_alignment
11101 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11102 aligning type circuitry for allocations from the default storage pool.
11103 (build_allocator): Likewise.
11104 (build_simple_component_ref): Manually fold the reference for a
11105 constructor if the record type contains a template.
11107 * utils.c (value_zerop): Delete.
11108 (gnat_init_decl_processing): Emit debug info for common types.
11109 (rest_of_record_type_compilation): If a union contains a field
11110 with a non-constant qualifier, treat it as variable-sized.
11111 (finish_record_type): Give the stub TYPE_DECL a name.
11112 (rest_of_record_type_compilation): Likewise.
11113 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
11114 types are equivalent array types.
11115 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11116 even if the type is not passed by reference.
11117 (static_ctors, static_dtors): Delete.
11118 (end_subprog_body): Do not record constructors and destructors.
11119 (build_global_cdtor): Delete.
11120 (gnat_write_global_declarations): Do not call build_global_cdtor.
11122 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11123 -fRTS=rtp is specified.
11124 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11127 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11128 of the personality function with SJLJ exceptions.
11130 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11131 the name of the personality function with SJLJ exceptions.
11133 2007-08-14 Robert Dewar <dewar@adacore.com>
11134 Ed Schonberg <schonberg@adacore.com>
11136 * par.ads, par.adb: Improve handling of extra right parens.
11137 (Par): Remove flag From_Limited_With_Clause.
11139 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11140 Improve handling of extra right parens.
11142 2007-08-14 Robert Dewar <dewar@adacore.com>
11144 * par-tchk.adb (TF_Semicolon): Improve error recovery
11146 2007-08-14 Robert Dewar <dewar@adacore.com>
11147 Ed Schonberg <schonberg@adacore.com>
11149 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11150 enumeration type, mark all literals as referenced.
11151 (Eval_Attribute, case 'Image): If the argument is an enumeration
11152 literal and names are available, constant-fold but mark nevertheless as
11154 Clean up function names.
11155 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11157 (Requires_Simple_Name_Prefix): Removed.
11159 2007-08-14 Robert Dewar <dewar@adacore.com>
11160 Ed Schonberg <schonberg@adacore.com>
11162 * sem_ch11.adb: Improved warnings for unused variables
11164 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11165 is a synchronized interface, the derived type is limited.
11166 (Analyze_Object_Declaration): Mark the potential coextensions in the
11167 definition and expression of an object declaration node.
11168 (Build_Derived_Type): For the completion of a private type declaration
11169 with a derived type declaration, chain the parent type's representation
11170 items to the last representation item of the derived type (not the
11171 first one) if they are not present already.
11172 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11173 object declaration of forward references to tags.
11174 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11175 subprogram types can appear as access discriminants of synchronized
11177 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11178 given in prefixed form as a selected component.
11179 (Process_Discriminants): If not all discriminants have defaults, place
11180 error message on a default that is present.
11181 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11182 extend a synchronized tagged type.
11183 Improved warnings for unused variables
11184 (Is_Visible_Component): Fix a visibility hole on a component inherited
11185 by a private extension when parent is itself declared as a private
11186 extension, and the derivation is in a child unit.
11187 (Find_Hidden_Interface): Move spec from the package body.
11189 2007-08-14 Robert Dewar <dewar@adacore.com>
11190 Ed Schonberg <schonberg@adacore.com>
11192 * sem_ch5.adb: Improve warnings on redundant assignments
11194 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11196 (Is_Synchronized_Tagged_Type): New subprogram that returns true
11197 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11198 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11199 is set to False. Improves handling of Known_[Not_]Null.
11200 (Wrong_Type): Special case address arithmetic attempt
11201 (Collect_Abstract_Interfaces): Add new formal to allow collecting
11202 abstract interfaces just using the partial view of private types.
11203 (Has_Abstract_Interfaces): Add new formal to allow checking types
11204 covering interfaces using the partial view of private types.
11205 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11206 component still needs to be defined in this case, but is never
11207 initialized as VMs are using other dispatching mechanisms.
11208 (Abstract_Interface_List): For a protected type, use base type to get
11209 proper declaration.
11210 Improve warnings on redundant assignments
11211 (Is_Variable): Handle properly an implicit dereference of a prefixed
11213 (Build_Actual_Subtype): If this is an actual subtype for an
11214 unconstrained formal parameter, use the sloc of the body for the new
11215 declaration, to prevent anomalises in the debugger.
11217 2007-08-14 Robert Dewar <dewar@adacore.com>
11219 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11220 dispatching operation
11222 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11223 Gary Dismukes <dismukes@adacore.com>
11226 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11227 expanded aggregate code before allocator, and ahead of declaration for
11228 temporary, to prevent access before elaboration when the allocator is
11229 an actual for an access parameter.
11230 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11231 the TSD and the table of interfaces.
11232 (Convert_To_Assignments): Augment the test for delaying aggregate
11233 expansion for limited return statements to include the case of extended
11234 returns, to prevent creation of an unwanted transient scope.
11235 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11236 (Expand_Array_Aggregate): Handle aggregates associated with
11237 statically allocated dispatch tables.
11238 (Expand_Record_Aggregate): Handle aggregates associated with
11239 statically allocated dispatch tables.
11240 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11241 of anonymous access type.
11243 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11245 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11246 is a variable that renames a slice, use the variable itself in the
11247 expannsion when the renamed expression itself may be modified between
11248 the declaration of the renaming and the array assignment.
11250 2007-08-14 Jerome Guitton <guitton@adacore.com>
11252 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11253 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11254 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11255 New functions; dummy implementations.
11257 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11258 functions, used to implement the multi-tasks mode routines on VxWorks.
11260 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11261 New functions, thin
11262 binding to the VxWorks routines which have changed between VxWorks 5
11264 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11265 which are not callable from a RTP.
11267 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11268 implemented for the multi-tasks mode on VxWorks 5 and 6.
11270 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11272 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11275 2007-08-14 Vincent Celier <celier@adacore.com>
11277 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11278 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11279 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11280 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11281 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11282 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11283 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11285 (Major_Id_Name): New function.
11286 mlib-tgt.ads/mlib.tgt.adb:
11287 (Library_Major_Minor_Id_Supported): New function, default returns True
11288 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11289 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11290 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11291 Implementation of Library_Major_Minor_Id_Supported returns False
11293 (Clean_Library_Directory): If major/minor ids are supported, clean all
11295 Major update of the Project Manager and of the project aware tools,
11296 including gprmake, so that the same sources in the GNAT repository
11297 can be used by gprbuild.
11299 2007-08-14 Olivier Hainque <hainque@adacore.com>
11301 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11302 (GCC_ZCX_Support): Switch to True.
11304 * s-intman-solaris.adb (Notify_Exception): Call
11305 Adjust_Context_For_Raise before raising, as expected for signal
11306 handlers in general.
11308 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11309 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11310 to other implementation bodies.
11312 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11313 be visible by multiple implementation bodies.
11315 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11316 only for conditions coming from hardware.
11317 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11318 adjustments to signal context prior to exception raise from signal
11320 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11322 Solaris section: (__gnat_adjust_context_for_raise): New function.
11323 Implementation of the machine context adjustments to perform prior to
11324 raise from a signal handler. Version for both sparc and x86.
11325 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11326 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11327 prior to raising as expected for any handler, before possible nested
11328 faults to make sure all the contexts in a chain have been adjusted by
11329 the time we propagate.
11331 2007-08-14 Pascal Obry <obry@adacore.com>
11333 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11334 (SYSTEM_INFO): New record.
11335 (SetThreadIdealProcessor): New imported routine needed for supporting
11336 task_info pragma on Windows.
11338 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11339 info can be applied to the current host.
11340 (Create_Task): Set the ideal processor if information is present.
11342 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11343 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11345 2007-08-14 Olivier Hainque <hainque@adacore.com>
11347 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11348 stack size and initial stack pointer value for a given task.
11349 (Enter_Task): Get the stack attributes of the task we are entering and
11350 let the stack checking engine know about them.
11352 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11353 Let the stack-checking engine know about the initial sp value and stack
11354 size associated with the current task.
11355 (Set_Stack_Info): If a stack base has been notified for the current
11356 task, honor it. Fallback to the previous less accurate method otherwise.
11358 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11360 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11362 * sem_ch10.adb: Create a limited view of an incomplete type, to make
11363 treatment of limited views uniform for all visible declarations in a
11364 limited_withed package.
11365 Set flag indicating that a subprogram body for a child unit has a
11367 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11368 separate declaration, remove the unit name from visibility after
11369 compilation, so that environment is clean for subsequent compilations.
11370 (Install_Limited_Context_Clauses): Do not install a
11371 limited_private_with_clause unless the current unit is a body or a
11372 private child unit.
11373 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11374 in the same fashion.
11375 (Install_Limited_Withed_Unit): Do not install a limited with clause if
11376 it applies to the declaration of the current package body.
11377 (Remove_Private_With_Clauses): If there is a regular with_clause for
11378 the unit, delete Private_With_Clause from context, to prevent improper
11379 hiding when processing subsequent nested packages and instantiations.
11381 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11383 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11384 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11385 representing absolute path names.
11386 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11388 * cstreams.c (__gnat_full_name for VxWorks): Use
11389 __gnat_is_absolute_path to detect whether we need to add the current
11390 directory to normalize the path.
11392 2007-08-14 Javier Miranda <miranda@adacore.com>
11395 a-tags.adb (Displace): Associate a message with the raised CE
11397 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11398 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11399 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11401 (Default_Prim_Op_Count): Removed.
11402 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11403 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11404 Remove pragma Inline_Always.
11406 * rtsfind.ads (Default_Prim_Op_Count): Removed
11407 (Max_Predef_Prims): New entity
11408 (RE_Expanded_Name): Removed
11409 (RE_HT_Link): Removed
11410 (RE_Iface_Tag): Remmoved
11411 (RE_Ifaces_Table): Removed
11412 (RE_Interfaces_Array): Removed
11413 (RE_Interface_Data_Element): Removed
11414 (RE_Nb_Ifaces): Removed
11415 (RE_RC_Offset): Removed
11416 (RE_Static_Offset_To_Top): Removed
11418 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11420 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11421 Prim_Op_Count by Max_Predef_Prims.
11423 2007-08-14 Thomas Quinot <quinot@adacore.com>
11424 Vincent Celier <celier@adacore.com>
11426 * binde.adb (Elab_All_Links): Remove unnecessary call to
11427 Generic_Separately_Compiled (if a unit satisfies this predicate, there
11428 won't be an associated Afile).
11429 (Elab_All_Links): Fail if a referenced unit cannot be found
11432 Fix comments in bindgen regarding consistency checks done in Bcheck:
11433 the checks are made across units within a partition, not across several
11435 Fix generation of C binder file for VxWorks.
11437 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11438 Generic_May_Lack_ALI, more descriptive of the current use of the
11439 predicate, and update documentation.
11441 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11442 reorganization and documentation update for the case of predefined
11443 library generics (for which we do not reference an Afile).
11445 2007-08-14 Robert Dewar <dewar@adacore.com>
11447 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11448 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11449 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11450 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11451 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11452 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11453 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11454 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11455 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11456 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11457 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11458 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11459 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11460 g-altcon.adb: Minor reformatting
11462 ada-tree.h: Delete empty line.
11464 ali.ads: Minor reformatting
11465 Clarification of comments.
11466 Minor spelling correction
11468 * exp_dbug.adb: Add Warnings Off to suppress new warning
11470 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11473 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11476 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11478 * a-textio.ads: Reorder the standard input/output/error declarations
11481 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11483 * par-ch2.adb: Recognize RM specially in errout
11484 Change 'R'M to RM in all error messages
11486 * scng.adb: Recognize RM specially in errout
11488 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11489 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11491 * s-direio.adb: Add missing routine header box.
11493 * sem_attr.ads: Add ??? comments
11495 * sem_eval.adb: Recognize RM specially in errout
11496 Change 'R'M to RM in all error messages
11498 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11500 * s-tasinf.ads: Fix minor comment typo.
11502 * a-cihama.adb: Minor comment addition
11504 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11507 * s-tasinf-tru64.ads: Fix minor comment typo.
11509 * itypes.ads: Comment update.
11511 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11514 * argv.c: Added protection against null gnat_argv and gnat_envp.
11516 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11517 warning message when Tolerate_Consistency_Errors is True.
11519 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11520 Any_Id, as this subprogram is only applicable to *type* entities (it
11521 sets RM_Size). Instead initialize just Esize and Alignment.
11523 2007-08-14 Bob Duff <duff@adacore.com>
11525 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11526 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11527 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11528 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11529 a-coorse.ads (Next): Applied pragma Inline.
11530 Make all Containers packages Remote_Types (unless they are already
11532 (Previous): applied pragma Inline
11533 (Elements_Type): is now a record instead of an array
11535 2007-08-14 Thomas Quinot <quinot@adacore.com>
11537 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11539 (Set_Item): When the new item is an element of the currently allocated
11540 table passed by reference, save a copy on the stack if we're going
11541 to reallocate. Also, in Table.Set_Item, make sure we test the proper
11542 variable to determine whether to call Set_Last.
11544 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11545 symbols-vms.adb, symbols-processing-vms-alpha.adb,
11546 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11547 some occurrences of the pattern
11549 T.Table (T.Last) := Value;
11550 with a cleaner call to
11553 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11554 Gary Dismukes <dismukes@adacore.com>
11555 Thomas Quinot <quinot@adacore.com>
11557 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11558 derived type with interface progenitors use the analyzed formal as the
11559 parent of the actual, to create renamings for all the inherited
11560 operations in Derive_Subprograms.
11561 (Collect_Previous_Instances): new procedure within of
11562 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11563 unit being loaded, to ensure that the generation of global symbols is
11564 consistent in different compilation modes.
11565 (Is_Tagged_Ancestor): New function testing the ancestor relation that
11566 takes progenitor types into account.
11567 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11568 traversing over the primitives of the formal and actual types to locate
11569 any abstract subprograms of the actual type that correspond to a
11570 nonabstract subprogram of the formal type's ancestor type(s), and issue
11571 an error if such is found.
11572 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11573 Instantiate_Package_Body, Instantiate_Subprogram_Body):
11574 Remove bogus guard around calls to Inherit_Context.
11575 (Reset_Entity): If the entity is the selector of a selected component
11576 that denotes a named number, propagate constant-folding to the generic
11577 template only if the named number is global to the generic unit.
11578 (Set_Instance_Env): Only reset the compilation switches when compiling
11579 a predefined or internal unit.
11581 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11583 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11584 parameter to determine whether operation applies to the prefix.
11585 (Complete_Object_Operation): If actual has an access type and
11586 controlling formal is not an in_parameter, reject the actual if it is
11587 an access_to_constant type.
11588 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11589 type, the candidate operations are found in the scope of declaration of
11590 the type, because the type has no primitive subprograms.
11591 (Analyze_Selected_Component): If prefix is class-wide, and root type is
11592 a private extension, only examine visible components before trying to
11593 analyze as a prefixed call.
11594 Change Entity_List to Type_To_Use, for better readability.
11595 (Has_Fixed_Op): Use base type when checking whether the type of an
11596 operator has a user-defined multiplication/division
11597 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11598 user-defined operators are available for fixed-point types.
11600 2007-08-14 Thomas Quinot <quinot@adacore.com>
11601 Ed Schonberg <schonberg@adacore.com>
11603 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11604 formal At_Any_Place indicating, when True, that we want to test for
11605 availability of the stream attribute at any place (as opposed to the
11606 current visibility context only).
11607 (Missing_Read_Write_Attributes): A stream attribute is missing for the
11608 purpose of enforcing E.2.2(8) only if it is not available at any place.
11609 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11610 when checking the legality of an extension aggregate in a preelaborable
11611 package. Treat the literal null as a valid default expression in a
11612 component declaration for a type with preelaborable initialization.
11613 A limited interface is a legal progenitor for the designated type of a
11614 remote access to class-wide type.
11616 2007-08-14 Thomas Quinot <quinot@adacore.com>
11617 Ed Schonberg <schonberg@adacore.com>
11619 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11620 reference): Use correct entity as denoted entity for the selector of
11621 the rewritten node.
11622 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11623 setting the Referenced_As_LHS flag for entities that are implicitly
11625 (Find_Type): If the type is an internally generated incomplete type,
11626 mark the full view as referenced, to prevent spurious warnings.
11627 (Find_Selected_Component, Has_Components): Handle properly non-limited
11628 views that are themselves incomplete types.
11629 Handle interfaces visible through limited-with clauses.
11630 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11631 subprogram generic actual for which we have generated a renaming.
11632 Warn when the renaming introduces a homonym of
11633 the renamed entity, and the renamed entity is directly visible.
11635 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11636 Hristian Kirtchev <kirtchev@adacore.com>
11638 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11639 appear in the subtree to the current allocator if it is not a static
11641 (Resolve_Allocator): Perform cleanup if resolution has determined that
11642 the allocator is not a coextension.
11643 (Resolve): Skip an interpretation hidden by an abstract operator only
11644 when the type of the interpretation matches that of the context.
11645 (Resolve): When looping through all possible interpretations of a node,
11646 do not consider those that are hidden by abstract operators.
11647 (Resolve_Actuals): When verifying that an access to class-wide object
11648 is an actual for a controlling formal, ignore anonymous access to
11649 subprograms whose return type is an access to class_wide type.
11650 (Resolve_Slice): If the prefix of the slice is a selected component
11651 whose type depends on discriminants, build its actual subtype before
11652 applying range checks on the bounds of the slice.
11653 (Valid_Conversion): In an instance or inlined body, compare root types,
11654 to prevent anomalies between private and public views.
11655 (Resolve): Improve error message for ambiguous fixed multiplication
11656 expressions that involve universal_fixed multiplying operations.
11658 2007-08-14 Javier Miranda <miranda@adacore.com>
11659 Hristian Kirtchev <kirtchev@adacore.com>
11661 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11662 location to allow the correct generation of errors in case of
11663 restrictions applied to the expanded code.
11664 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11665 function if the condition does not reference them.
11666 (Expand_Entry_Body_Declarations): Mark the index constant as having a
11669 2007-08-14 Thomas Quinot <quinot@adacore.com>
11670 Pablo Oliveira <oliveira@adacore.com>
11672 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11673 typecode parameters for a union (in a variant record), remove
11674 extraneous layer of Any wrapping for member label.
11675 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11676 elabration statements, register the package with the name server
11677 at the beginning, not at the end, of the elaboration statements so
11678 that they can create remote access to subprogram values that designate
11679 remote subprograms from the package.
11681 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11683 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11684 values to compute the number of seconds since the Unix Epoc in order to
11685 account for Daylight Savings Time. Perform special processing for dates
11686 that are earlier than the Unix Epoc to obtain a negative number.
11688 2007-08-14 Emmanuel Briot <briot@adacore.com>
11690 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11693 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
11695 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11696 binder-generated file is not in Ada.
11697 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11698 recorded in the ALI file.
11699 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11701 2007-08-14 Vincent Celier <celier@adacore.com>
11703 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11704 (Output_Source): Do nothing if parameter is No_Sdep_Id
11706 * make.adb (Gnatmake): Do not rebuild an archive simply because a
11707 shared library it imports has a later time stamp.
11708 (Check): Resolve the symbolic links in the path name of the object
11710 Check that the ALI file is in the correct object directory
11711 Check if a file name does not correspond to the mapping of units
11713 (Display_Version): New procedure
11714 (Initialize): Process switches --version and --help
11715 Use type Path_Name_Type for path name
11717 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
11719 * impunit.adb: Re-organize System.Random_Numbers and
11720 GNAT.Random_Numbers and add to builds.
11722 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11724 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11726 * a-assert.ads, a-assert.adb: New files.
11728 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11730 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11731 if AAMP_On_Target is True, then the size of the type encompasses two
11732 addresses (a static link and a subprogram address), except in the case
11733 of library-level access types.
11735 2007-08-14 Vincent Celier <celier@adacore.com>
11737 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11739 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11740 possible trailing spaces.
11741 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11743 2007-08-14 Javier Miranda <miranda@adacore.com>
11745 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11746 null-excluding access types.
11748 2007-08-14 Javier Miranda <miranda@adacore.com>
11750 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11751 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11752 of private types add missing check on matching interfaces in the
11753 partial and full declarations.
11754 (Analyze_Protected_Type): Code cleanup.
11755 (Analyze_Task_Type): Code cleanup.
11757 2007-08-14 Javier Miranda <miranda@adacore.com>
11759 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11760 generated interface thunk.
11762 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11764 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11765 obsolescent warning on application of 'Class to an incomplete type.
11767 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11768 prevent obsolescent warning on application of 'Class to an incomplete
11771 2007-08-14 Pascal Obry <obry@adacore.com>
11773 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11776 2007-08-14 Cyrille Comar <comar@adacore.com>
11778 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11779 since it is potentially used in cases implying double finalization of
11782 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11784 * s-tasini.adb (Get_Stack_Info): Move this function to
11785 System.Soft_Links.Tasking because it is common to the full and the
11786 restricted run times.
11787 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11788 in SSL.Tasking.Init_Tasking_Soft_Links.
11790 * s-solita.adb (Get_Stack_Info): Function moved from
11791 System.Tasking.Initialization because it is common to the full and the
11792 restricted run times.
11793 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11795 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11797 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11798 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11799 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11802 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11805 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11807 * s-veboop.adb (SU): New named number initialized to
11808 System.Storage_Unit.
11809 (True_Val): The initialization expression is revised to use SU (=
11810 Storage_Unit) rather than assuming 8 for the component size of an
11811 unpacked Boolean array.
11813 2007-08-14 Tristan Gingold <gingold@adacore.com>
11815 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11817 * tb-ivms.c: New file.
11819 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11821 2007-08-14 Geert Bosch <bosch@adacore.com>
11823 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11824 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11825 Add required linker pragmas for automatically linking with the gnalasup
11826 linear algebra support library, and the systems math library.
11827 Rename cdot to cdotu and zdot to zdotu.
11828 Update header comment to describe purpose of package.
11830 2007-08-14 Thomas Quinot <quinot@adacore.com>
11832 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11833 an explicitly specified Associated_Final_Chain, use that list.
11834 (Expand_N_Package_Body): Build dispatch tables of library level tagged
11836 (Expand_N_Package_Declaration): Build dispatch tables of library level
11837 tagged types. Minor code cleanup.
11839 2007-08-14 Vincent Celier <celier@adacore.com>
11841 * gnatchop.adb (Terminate_Program): Remove exception and use
11842 Types.Terminate_Program instead.
11844 * osint.ads, osint.adb (Current_Exit_Status): New global variable
11845 (Find_Program_Name): Added protection against empty name.
11846 (OS_Exit_Through_Exception): New procedure
11848 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11849 (OS_Exit_Default): New procedure that contains the previous
11850 implementation of procedure OS_Exit.
11851 (Final_Value): Remove obsolete Interix stuff.
11853 2007-08-14 Thomas Quinot <quinot@adacore.com>
11855 * g-socket.ads: Reorganize example code so that it also works on
11858 2007-08-14 Tristan Gingold <gingold@adacore.com>
11860 * g-trasym.ads: AIX now supports symbolic backtraces.
11862 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11864 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11865 units being loaded to detect circularities. A circularity may be
11866 present even if the current chain of pending units to load starts from
11867 a limited_with_clause.
11869 * lib-load.ads: Change profile of Load_Unit to use a with_clause
11870 rather than a boolean flag, in order to detect circularities in
11873 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11874 than propagating the From_Limited_With flag, in order to handle
11875 properly circularities involving with_clauses.
11877 2007-08-14 Nicolas Setton <setton@adacore.com>
11879 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11882 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11884 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11885 to build for libgnala.
11886 libgnat: Add rules to build libgnala.a
11887 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11888 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11889 Add s-osinte-vxworks-kernel.adb to the target pairs of the
11890 kernel run-time lib for VxWorks 6, which would provide a different
11891 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11892 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11893 running ZCX by default.
11894 Add g-sttsne-locking to LynxOS version.
11895 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11896 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11898 * system-darwin-x86.ads: New file.
11900 * Make-lang.in: Delete files before copying onto them, so if they are
11901 read-only, the copy won't fail.
11902 Update dependencies
11904 2007-08-14 Pascal Obry <obry@adacore.com>
11906 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11909 2007-08-14 Vincent Celier <celier@adacore.com>
11911 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11912 (Gcc): Initialize Gcc_Name at the first call
11914 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11916 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11917 with_clauses of the enclosing unit when analyzing the package
11918 specification of a nested instance.
11920 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11922 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11923 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11924 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11925 layout of N_Allocator.
11927 2007-08-14 Thomas Quinot <quinot@adacore.com>
11929 * rtsfind.adb (Check_RPC): Add PCS version check.
11931 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11932 (Gnat_Free_Software): New function.
11934 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11935 the PCS_Version value from s-parint, used to check that it is consistent
11936 with what exp_dist expects.
11938 * s-parint.ads (PCS_Version): New entity for checking consistency
11939 between exp_dist and PCS.
11941 * gen-soccon.c: (SO_REUSEPORT): New constant.
11943 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11945 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11946 variable Sub_Second to Duration in order to accomodate a larger range
11947 of arithmetic operations.
11949 2007-08-14 Bob Duff <duff@adacore.com>
11951 * g-sttsne-locking.ads: Move comments from spec to body.
11952 * g-sttsne-locking.adb: Move comments from spec to body.
11953 * g-sttsne-vxworks.ads: Removed.
11954 * g-sttsne-vxworks.adb: Removed.
11956 2007-08-11 Ian Lance Taylor <iant@google.com>
11958 * misc.c (gnat_get_alias_set): Change return type to
11961 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11963 * decl.c, utils2.c: Fix whitespace in last change.
11965 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11967 * decl.c (compare_field_bitpos): Constify.
11968 * utils2.c (compare_elmt_bitpos): Likewise.
11970 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
11972 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
11973 anonymous access type.
11974 (pthread_sigmask): Now take an access sigset_t.
11976 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
11978 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11980 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
11982 PR tree-optimization/25737
11983 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11985 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
11987 * trans.c (Attribute_to_gnu): When subtracting an
11988 offset from a pointer, use POINTER_PLUS_EXPR with
11989 NEGATE_EXPR instead of MINUS_EXPR.
11990 (gnat_to_gnu): Likewise.
11991 * utils.c (convert): When converting between
11992 thin pointers, use POINTER_PLUS_EXPR and sizetype
11994 * utils2.c (known_alignment): POINTER_PLUS_EXPR
11995 have the same semantics as PLUS_EXPR for alignment.
11996 (build_binary_op): Add support for the semantics of
11997 POINTER_PLUS_EXPR's operands.
11998 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12000 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
12002 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
12003 of get_signed_or_unsigned_type.
12004 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
12006 2007-06-11 Bob Duff <duff@adacore.com>
12007 Thomas Quinot <quinot@adacore.com>
12009 * g-stsifd-sockets.adb (Create): Work around strange behavior of
12010 'bind' on windows that causes 'connect' to fail intermittently, by
12011 retrying the 'bind'.
12012 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12014 2007-06-10 Duncan Sands <baldrick@free.fr>
12016 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
12017 than to void, for the fields when making a new fat pointer type.
12018 (gnat_substitute_in_type): Now substitute_in_type.
12019 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
12020 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
12021 * utils.c (update_pointer_to): Update fat pointers by updating the
12022 dummy node pointers used for the fields.
12024 2007-06-06 Thomas Quinot <quinot@adacore.com>
12025 Bob Duff <duff@adacore.com>
12027 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
12028 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12029 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
12030 constant Thread_Blocking_IO, always True by default, set False
12031 on a per-runtime basis.
12032 (Need_Netdb_Buffer): New constant.
12034 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
12035 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
12038 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
12039 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
12040 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
12041 child package Task_Safe_NetDB
12042 (Host_Error_Messages): Add stub body.
12043 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12045 * g-soccon-mingw.ads: Add Windows-specific constants.
12046 (Need_Netdb_Buffer): New constant.
12047 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12048 wrapper and import inet_addr(3) from the standard sockets library
12050 (In_Addr): Add alignment clause.
12051 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12053 2007-06-06 Robert Dewar <dewar@adacore.com>
12055 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12056 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12057 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12058 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12059 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12060 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12061 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12062 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12063 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12064 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12065 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12066 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12067 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12068 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12069 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12070 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12071 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12072 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12073 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12074 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12075 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12076 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12077 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12078 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12079 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12080 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12081 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12082 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12083 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12084 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12085 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12086 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12087 Unchecked_* by Ada.Unchecked_*
12089 2007-06-06 Robert Dewar <dewar@adacore.com>
12091 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12092 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12093 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12094 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12095 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12096 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12098 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12099 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12100 s-tasloc.adb, s-tasloc.ads: New files.
12102 2007-06-06 Bob Duff <duff@adacore.com>
12104 * g-expect-vms.adb:
12105 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12106 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12107 (Send_Signal, Close): Raise Invalid_Process if the process id is
12109 (Pattern_Matcher_Access): Is now a general access type to be able to
12110 use aliased string.
12112 2007-06-06 Thomas Quinot <quinot@adacore.com>
12113 Arnaud Charlet <charlet@adacore.com>
12115 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12116 (SIGEMT is now used instead of SIGTERM on AIX).
12118 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12119 (Time_Slice_Supported): Set to True.
12120 Use SIGEMT instead of SIGTERM as SIGADAABORT.
12122 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12124 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12125 (Time, Time)): Use To_Relative_Time rather than manual calculation to
12126 express the bounds of Duration as Time. Raise Time_Error when the
12127 result is greater or equal to the higher bound of Duration (on the
12129 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12130 Ada_High_And_Leaps.
12131 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12132 Ada_High_And_Leaps.
12133 ("-" (Time, Time)): Reorder code.
12134 (All_Leap_Seconds): Removed.
12135 (Arithmetic_Operations.Add): Remove sign related kludge.
12136 (Arithmetic_Operations.Difference): Control the leaps seconds processing
12137 with flag Leap_Support.
12138 (Arithmetic_Operations.Subtract): Remove sign related kludge.
12139 (Check_Within_Time_Bounds): New procedure.
12140 (Clock): Control the leap seconds processing with flag Leap_Support.
12141 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12142 (Formatting_Operations.Split): Control the leap seconds processing with
12144 (Formatting_Operations.Time_Of): Control the leaps seconds processing
12145 with flag Leap_Support. Adjust the year, month and day (if applicable)
12146 when the value of day seconds designates a new day.
12147 (Split): Use parameter associations for better readability. Integrate
12149 (Time_Of): Use parameter associations for better readability. Integrate
12152 * a-calfor.adb (Split): Use parameter associations for better
12153 readability. Integrate flag Is_Ada_05.
12154 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12155 better readability. Integrate flag Is_Ada_05.
12157 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12159 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12160 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12161 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12162 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12163 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12164 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12165 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12166 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12167 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12168 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12169 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12170 time when entering this routine to detect a backward clock setting
12171 (manual setting or DST adjustment), to avoid waiting for a longer delay
12173 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12174 Remove handling of deferred priority change, and replace by setting the
12175 task priority directly, as required by AI-188.
12177 (Max_Task_Image_Length): New constant.
12178 Replace Warnings (Off) by Unreferenced pragma, cleaner.
12179 (Dynamic_Priority_Support): Removed, no longer needed.
12180 (Poll_Base_Priority_Change): Ditto.
12181 (Set_Ceiling): Add this procedure to change the ceiling priority
12182 associated to a lock. This is a dummy implementation because dynamic
12183 priority ceilings are not supported by the underlying system.
12185 * a-dynpri.adb (Set_Priority): Take into account case where Target is
12186 accepting a RV with its priority boosted.
12187 Remove handling of deferred priority change, and replace by setting the
12188 task priority directly, as required by AI-188.
12190 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12192 Remove handling of deferred priority change, and replace by setting the
12193 task priority directly, as required by AI-188.
12194 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12195 of Self_Id earlier.
12197 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12198 (Poll_Base_Priority_Change): Removed.
12199 Code clean up: use SSL.Current_Target_Exception.
12201 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12202 to run as this is a potentially dispatching point.
12203 (Call_Synchronous): Use Local_Defer_Abort.
12204 (Callable): Relax assertion.
12205 (Selective_Wait): Relax assertion in case abort is not allowed.
12206 Remove handling of deferred priority change, and replace by setting the
12207 task priority directly, as required by AI-188.
12209 * s-tasuti.adb (Make_Passive): Adjust assertions.
12210 Remove handling of deferred priority change, and replace by setting the
12211 task priority directly, as required by AI-188.
12213 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12215 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12216 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12217 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12218 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12219 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12220 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12221 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12222 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12223 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12224 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12225 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12226 This patch changes the largest non-binary modulus from 2**31-1 to
12228 (Compiler_System_Version): Removed, no longer used.
12229 Clean up system files by removing flags only used on a single target.
12230 Also remove obsolete flags, only used during bootstrap from system.ads
12231 (Address): Add a pragma Preelaborable_Initialization.
12233 * system-aix.ads: Ditto.
12234 (GCC_ZCX_Support): Set to true.
12235 Update priority range on AIX and map Ada priorities to target
12236 priorities appropriately for different scheduling policies.
12238 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12240 2007-06-06 Vincent Celier <celier@adacore.com>
12242 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12243 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12245 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12246 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12247 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12248 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12249 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12250 MLib.Tgt, containing the default versions of the exported subprograms.
12251 For each platform, create a specific version of the body of new child
12252 package MLib.Tgt.Specific that contains only the body of subprograms
12253 that are different from the default.
12254 (Archive_Builder_Append_Options): New function.
12256 2007-06-06 Matthew Gingell <gingell@adacore.com>
12258 * s-osinte-aix.adb: Map Ada priorities to target priorities
12259 appropriately for different scheduling policies.
12261 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12263 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12265 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12266 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12268 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12270 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12271 Noop on VMS, added for interface commonality.
12273 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12274 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12275 Olivier Hainque <hainque@adacore.com>
12277 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12278 renamed expression of a full renaming at toplevel.
12279 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12280 the values the constant is initialized to if it is an N_Allocator.
12281 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12282 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12283 (make_aligning_type): Accept an extra ROOM argument for storage to be
12284 made available before the aligned field, and an extra BASE_ALIGN
12285 argument for callers to pass the alignment guaranteed to be honored for
12286 the whole aligning object. Avoid call to finish_record_type, which only
12287 interferes with the sizes we want to set.
12288 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12289 make_aligning_type for super-aligned objects on stack.
12290 (components_to_record): Pass the adjusted size of the type when creating
12291 fields in the qualified union for the variant part.
12292 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12293 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12295 (maybe_pad_type): Set TYPE_USER_ALIGN.
12296 (make_aligning_type): Likewise.
12297 ALIGN argument is unsigned int.
12298 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12299 (gnat_to_gnu_param): Likewise, for parameters.
12300 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12301 if it is constant and stems from a function call.
12302 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12303 of the record is specified. Adjust accordingly.
12304 (adjust_packed): New static function.
12305 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12306 (components_to_record): Likewise.
12307 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12308 side-effects if the object is deemed constant.
12309 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12310 type instead of merely finalizing it. Tidy.
12311 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12312 <E_Access_Type>: Likewise.
12313 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12314 (defer_debug_level): Delete.
12315 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12316 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12318 <E_Record_Type>: Do not explicitly defer finalizing the type.
12319 Adjust for write_record_type_debug_info renaming.
12320 <E_Subprogram_Type>: Likewise.
12321 Finalize deferred types right after deferred incomplete types are
12323 (rest_of_type_decl_compilation): New global function.
12324 (components_to_record): Rename defer_debug parameter to do_not_finalize.
12325 (components_to_record): Propagate the packedness to the fields of the
12326 qualified union type if there is a variant part.
12327 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12328 instead of inline code to adjust the XUT field offsets.
12329 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12330 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12331 and write the debug info if the type derives from a discriminated one.
12332 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12333 <E_Array_Subtype>: Likewise.
12334 <E_String_Literal_Subtype>: Likewise.
12335 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12336 an alignment clause.
12337 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12338 before giving warning.
12339 (prepend_one_attribute_to): New function, helper to prepend an attribute
12340 to an attribute list.
12341 (gnat_to_gnu_entity) <E_Procedure>: Use it.
12342 (prepend_attributes): Likewise.
12343 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12344 <E_Array_Type>: Declare the padding type for the element type, if any.
12345 <E_Array_Subtype>: Likewise.
12346 (defer_limited_with): New variable.
12347 (Gigi_Equivalent_Type): New function.
12348 (gnat_to_gnu_entity): Use it at start and use result throughout.
12349 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12350 Gigi_Equivalent_Type, support Limited_With, allow two levels of
12351 indirection, precompute if unconstrained array to simplify logic, and
12352 use defer_limited_with to defer elaboration of some types from limited
12354 (finalize_from_with_types): New function.
12356 2007-06-06 Gary Dismukes <dismukes@adacore.com>
12357 Eric Botcazou <ebotcazou@adacore.com>
12358 Tristan Gingold <gingold@adacore.com>
12359 Olivier Hainque <hainque@adacore.com>
12361 * trans.c (Identifier_to_gnu): Change test for deferred constant by
12362 adding guard that the entity is an E_Constant before testing presence
12363 of Full_view (and remove unnecessary test that entity is not a type).
12364 For a CONST_DECL used by reference, manually retrieve
12365 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
12366 (struct language_function): Move from utils.c to here.
12367 (struct parm_attr): New structure.
12368 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12369 (f_parm_attr_cache): New macro.
12370 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12371 expressions for the 'First, 'Last and 'Length attributes of the
12372 unconstrained array IN parameters.
12373 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12374 Allocate the information structure for the function earlier, as well
12375 as the language-specific part.
12376 If the parameter attributes cache has been populated, evaluate the
12377 cached expressions on entry.
12378 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
12379 N_Procedure_Call_Statement and N_Indexed_Component.
12380 (Pragma_to_gnu): Translate inspection_point to an asm statement
12381 containaing a comment and a reference to the object (either its address
12382 for BLKmode or its value).
12383 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12384 to go to DECL_INITIAL. Together with the size constraint relaxation
12385 in create_var_decl, enlarges the set of situations in which an
12386 identifier may be used as an initializer without implying elaboration
12388 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12389 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12391 (maybe_stabilize_reference): Remove lvalues_only parameter.
12392 (gnat_stabilize_reference): Adjust for above change.
12393 (gnat_to_gnu): Do not set location information on the result
12394 if it is a reference.
12395 (add_cleanup): Add gnat_node parameter and set the location of the
12397 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12398 (Exception_Handler_to_gnu_zcx): Likewise.
12399 (gigi): Remove the cgraph node if the elaboration procedure is empty.
12400 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12401 the former right after the latter.
12402 (start_stmt_group): Make global.
12403 (end_stmt_group): Likewise.
12404 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12406 (gnu_program_error_label_stack): Likewise.
12407 (gigi): Initialize them.
12408 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12409 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12411 (push_exception_label_stack): New function.
12412 (takes_address): New function.
12414 * utils.c (struct language_function): Move to trans.c from here.
12415 (unchecked_convert): Do not wrap up integer constants in
12416 VIEW_CONVERT_EXPRs.
12417 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12418 the latter for aggregate types, unexpected by later passes, and relax an
12419 arbitrary size constraint on the former.
12420 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12421 to compare the sizes.
12422 (convert_vms_descriptor): When converting to a fat pointer type, be
12423 prepared for a S descriptor at runtime in spite of a SB specification.
12424 (shift_unc_components_for_thin_pointers): New function.
12425 (write_record_type_debug_info): For variable-sized fields, cap the
12426 alignment of the pointer to the computed alignment.
12427 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12428 If REP_LEVEL is 2, do not compute the sizes.
12429 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12430 (build_unc_object_type): Likewise.
12431 (declare_debug_type): New function.
12433 * ada-tree.def: USE_STMT: removed (not emitted anymore).
12435 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12436 no statement is expandable anymore.
12437 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12438 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12439 when the user requested it explicitely.
12440 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12442 (get_alias_set): Return alias set 0 for a type if
12443 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12445 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12446 (DECL_FUNCTION_STUB): New accessor macro.
12447 (SET_DECL_FUNCTION_STUB): New setter macro.
12449 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12451 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12454 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12456 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12457 Rename to Abort_Task_Interrupt to be able to keep the same interface
12458 as the rest of the targets.
12460 * s-osinte-vxworks.ads s-osinte-vxworks.adb
12461 (To_VxWorks_Priority): Remove explicit "in" mode indicator
12463 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12466 2007-06-06 Robert Dewar <dewar@adacore.com>
12468 * a-chahan.ads: Remove obsolescent pragmas
12470 * a-chlat1.ads: Minor reformatting
12472 2007-06-06 Robert Dewar <dewar@adacore.com>
12474 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12477 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12480 * errout.ads (Finalize): Changed interface
12481 (Output_Messages): New procedure
12482 (Compilation_Errors): New Interface
12484 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12485 Finalize/Output_Messages interface for Errout
12486 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12489 2007-06-06 Thomas Quinot <quinot@adacore.com>
12490 Olivier Hainque <hainque@adacore.com>
12491 Robert Dewar <dewar@adacore.com>
12493 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12495 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12496 propagation starts, to let debuggers know about the event in a reliable
12498 (Local_Raise): Moved to System.Exceptions
12499 More convenient to have this as a separate unit
12501 * s-except.adb, s-except.ads: New files.
12503 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12504 Debug_Unhandled_Exception in System.Exceptions where it belongs
12505 together with a couple of other debug helpers.
12506 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12507 the former Unhandled_Exception.
12509 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12510 (Warn_No_Exception_Propagation): New procedure
12511 (Warn_If_No_Propagation): Rewritten for new warning generation
12512 (Expand_Exception_Handlers): New warning generation
12513 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12514 (Add_Exception_Label): Use Special_Exception_Package_Used for test
12515 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12516 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12517 even if restriction is set (makes life easier in Check_Returns)
12518 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12519 checking exception identities.
12520 (Expand_Local_Exception_Handlers): Do not optimize when all others case
12521 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12522 block for handler (used by Check_Returns)
12523 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12524 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12525 remove all exception handlers when optimizing local raise statements.
12526 (Find_Local_Handler): Use Get_Renamed_Entity
12527 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12528 marked analyzed after expanding exception handlers, do not generate
12529 redundant cleanup actions, because they have been constructed already.
12531 2007-06-06 Thomas Quinot <quinot@adacore.com>
12533 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12534 presence of this categorization pragma is mandated by the language.
12535 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12538 2007-06-06 Vincent Celier <celier@adacore.com>
12539 Robert Dewar <dewar@adacore.com>
12541 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12542 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12543 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12544 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12545 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12546 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12547 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12548 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12549 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12550 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12551 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12553 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12554 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12555 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12556 Use variables of types File_Name_Type and Unit_Name_Type in error
12558 (Get_Name): Add parameter Ignore_Special, and set it reading file name
12559 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12561 Define flags Flag217-Flag230 with associated subprograms
12562 (Flag_Word5): New record type.
12563 (Flag_Word5_Ptr): New access type.
12564 (To_Flag_Word5): New unchecked conversion.
12565 (To_Flag_Word5_Ptr): Likewise.
12566 (Flag216): New function.
12567 (Set_Flag216): New procedure.
12569 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12571 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12574 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12576 2007-06-06 Javier Miranda <miranda@adacore.com>
12578 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12580 (Object_Specific_Data_Array): This is now internal to the package.
12581 (Object_Specific_Data): This is now internal to the package.
12582 (Select_Specific_Data_Element): This is now internal to the package.
12583 (Select_Specific_Data_Array): This is now internal to the package.
12584 (Select_Specific_Data): This is now internal to the package.
12585 (Offset_To_Top_Function_Ptr): This is now public.
12586 (To_Offset_To_Top_Function_Ptr): Removed.
12587 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12588 local to subprogram Offset_To_Top.
12589 (Predefined_DT): Removed.
12590 (Typeinfo_Ptr): Removed.
12591 (OSD): This function is now internal to this package.
12592 (SSD): This function is now internal to this package.
12593 (DT): New function that displaces the pointer to the table of primitives
12594 to get access to the enclosing wrapper record.
12595 (IW_Membership): Code cleanup.
12596 (Offset_To_Top): Code cleanup.
12597 (Predefined_DT): Removed.
12598 (Register_Interface_Tag): Removed.
12599 (Set_Interface_Table): Removed.
12600 (Set_Offset_Index): Removed.
12601 (Set_Offset_To_Top): Code cleanup.
12602 (Set_OSD): Removed.
12603 (Set_Signature): Removed.
12604 (Set_SSD): Removed.
12605 (Set_Tagged_Kind): Removed.
12606 (Typeinfo_Ptr): Removed.
12608 (Displace): Add missing check on null actual.
12610 * exp_disp.ads, exp_disp.adb
12611 (Select_Expansion_Utilities): Removed.
12612 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12613 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12614 the interface requires a new parameter.
12615 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12616 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12617 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12618 Done to remove package Select_Expansion_Utilities.
12619 (Make_DT): New implementation for statically allocated dispatch tables.
12620 (Make_Secondary_DT): Moved to the scope of Make_DT.
12621 (Register_Primitive): Code cleanup plus incoporate the use of the new
12622 function DT_Address_Attribute.
12623 (Expand_Interface_Thunk): The profile of this subprogram has been
12624 changed to return the Thunk_Id and the corresponding code.
12625 (Fill_DT_Entry): Removed. Its functionality is now provided by
12626 subprogram Register_Primitive.
12627 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12628 subprogram Register_Primitive.
12629 (Register_Primitive): New subprogram that incorporates the previous
12630 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12631 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12632 was only required to call Make_DT_Access_Action, which is now removed.
12633 (Ada_Actions): Removed
12634 (Action_Is_Proc): Removed
12635 (Action_Nb_Arg): Removed
12636 Replace all the calls to Make_DT_Access_Action by direct calls to
12637 Make_Procedure_Call_Statement or Make_Function_Call.
12638 (Set_DTC_Entity_Value): New subprogram.
12639 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12640 (Expand_Interface_Thunk): Add missing support for primitives that are
12641 functions with a controlling result (case in which there is no need
12642 to generate the thunk).
12644 * exp_atag.ads, exp_atag.adb
12645 (Build_DT): New subprogram that displaces the pointer to reference the
12646 base of the wrapper record.
12647 (Build_Typeinfo_Offset): Removed.
12648 (RTE_Tag_Node): Removed.
12649 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12650 (Build_Get_RC_Offset): Removed.
12651 (Build_Inherit_Predefined_Prims): Removed.
12652 (Build_Inherit_TSD: Removed.
12653 (Build_New_TSD): Removed.
12654 (Build_Set_External_Tag): Removed.
12655 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12656 (Build_Set_Prim_Op_Address): Add documentation.
12657 (Build_Set_TSD): Removed.
12659 * rtsfind.ads, rtsfind.adb
12660 (Load_Fail): If load fails and we are not in configurable run-time
12661 mode, then raise Unrecoverable_Error.
12662 (Text_IO_Kludge): Generate an error message if a run-time library is
12663 not available in a given run-time (ie. zfp run-time).
12664 (RTE_Record_Component): Add code to check that the component we search
12665 for is not found in two records in the given run-time package.
12666 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12667 (RE_DT_Predef_Prims_Offset): New entity
12668 (RE_Static_Offset_To_Top): New entity
12669 (RE_HT_Link): New entity.
12670 (System_Address_Image): Addition of this run-time package.
12671 (RE_Address_Image): New entity.
12672 (RE_Abstract_Interface): Removed.
12673 (RE_Default_Prim_Op_Count): Removed.
12674 (RE_DT_Entry_Size): Removed.
12675 (RE_DT_Min_Prologue_Size): Removed.
12676 (RE_DT_Prologue_Size): Removed.
12677 (RE_Ifaces_Table_Ptr): Removed.
12678 (RE_Interface_Data_Ptr): Removed.
12679 (RE_Type_Specific_Data): Removed.
12680 (RE_Primary_DT): Removed.
12681 (RE_Register_Interface_Tag): Removed.
12682 (RE_Set_Offset_Index): Removed.
12683 (RE_Set_OSD): Removed.
12684 (RE_Set_SSD): Removed.
12685 (RE_Set_Signature): Removed.
12686 (RE_Set_Tagged_Kind): Removed.
12687 (RE_Address_Array): New entity.
12688 (RE_DT): New entity.
12689 (RE_Iface_Tag): New entity.
12690 (RE_Interfaces_Table): New entity.
12691 (RE_No_Dispatch_Table): New entity.
12692 (RE_NDT_Prims_Ptr): New entity.
12693 (RE_NDT_TSD): New entity.
12694 (RE_Num_Prims): New entity.
12695 (RE_Offset_To_Top_Function_Ptr): New entity.
12696 (RE_OSD_Table): New entity.
12697 (RE_OSD_Num_Prims): New entity.
12698 (RE_Predef_Prims): New entity
12699 (RE_Predef_Prims_Table_Ptr): New entity.
12700 (RE_Primary_DT): New entity.
12701 (RE_Signature): New entity.
12702 (RE_SSD): New entity.
12703 (RE_TSD): New entity.
12704 (RE_Type_Specific_Data): New entity.
12705 (RE_Tag_Kind): New entity.
12707 2007-06-06 Thomas Quinot <quinot@adacore.com>
12709 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12710 C imported variable.
12711 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12714 2007-06-06 Robert Dewar <dewar@adacore.com>
12716 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12719 2007-06-06 Vincent Celier <celier@adacore.com>
12721 * a-tifiio.adb (Put, internal): For negative numbers, check that there
12722 is room for at least one digit and the minus sign.
12723 (Put.Put_Character): Never put a character outside of the range of
12726 2007-06-06 Olivier Hainque <hainque@adacore.com>
12727 Eric Botcazou <ebotcazou@adacore.com>
12729 * utils2.c (build_allocator): Provide the extra arguments to
12730 make_aligning_type for super-aligned objects allocated from the default
12731 pool. Leave enough room for a pointer before the aligning field, and
12732 store the system's allocator return value there.
12733 (build_call_alloc_dealloc): When releasing a super-aligned object,
12734 retrieve the system's allocator return value from where build_allocator
12735 has stored it, just ahead of the adjusted address we are passed.
12736 (build_call_raise): Handle properly the generation of line numbers when
12737 the node is marked No_Location.
12738 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
12739 by using DECL_UID on ties.
12740 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12742 (build_call_raise): Handle converting exception into goto; support new
12744 (build_component_ref): Add new arg to build_call_raise.
12746 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12748 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12749 "." in the case of nnn.xxx when nnn terminates with an underscore.
12750 Parse the remaining "#" or ":" in the case of nnn#.xxx#
12752 2007-06-06 Robert Dewar <dewar@adacore.com>
12754 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12756 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12757 Vincent Celier <celier@adacore.com>
12758 Robert Dewar <dewar@adacore.com>
12760 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12762 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12763 ((destructor)) for adafinal, even when switch -a is used.
12764 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12766 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12767 Output_Linker_Option_List is set. Suppress this formatting when
12768 Zero_Formatting is set.
12769 Add case for CLI_Target.
12770 (System_Restrictions_Used): New flag, used to avoid generating with of
12771 System_Restrictions and initialization of the data unless there is
12772 some use of System.Restrictions in the partition.
12773 (Check_System_Restrictions_Used): New procedure
12775 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12776 since we only with this unit in the binder file if it is used elsewhere
12779 2007-06-06 Vincent Celier <celier@adacore.com>
12781 * bindusg.adb: Add line for @<response file>
12782 Add lines for new switches -R and -Z
12784 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12785 hierarchy in the list of files of the closure when -R is used
12786 (Gnatbind): Accept arguments starting with '@' to indicate response
12787 files and take the arguments from the response files.
12788 If List_Closure is set, display the referenced files
12790 2007-06-06 Javier Miranda <miranda@adacore.com>
12791 Robert Dewar <dewar@adacore.com>
12792 Ed Schonberg <schonberg@adacore.com>
12794 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12795 which the address-clause is applied to in-mode actuals (allowed by
12797 (Apply_Discriminant_Check): Do not generate a check if the type is
12798 constrained by a current instance.
12799 (Activate_Division_Check): New procedure
12800 (Activate_Overflow_Check): New procedure
12801 (Activate_Range_Check): New procedure
12802 Call these new Activate procedures instead of setting flags directly
12803 (Apply_Array_Size_Check): Removed, no longer needed.
12804 Code clean up: remove obsolete code related to GCC 2.
12805 (Get_E_Length): Protect against bomb in case scope is standard
12806 (Selected_Range_Checks): If the node to be checked is a conversion to
12807 an unconstrained array type, and the expression is a slice, use the
12808 bounds of the slice to construct the required constraint checks.
12809 Improve NOT NULL error messages
12810 (Apply_Constraint_Check): If the context is a null-excluding access
12811 type, diagnose properly the literal null.
12813 2007-06-06 Pascal Obry <obry@adacore.com>
12815 * clean.adb (Clean_Archive): Use untouched casing for the archive name
12816 and the corresponding .deps file.
12817 (Clean_Interface_Copy_Directory): Use untouched casing for the library
12818 src directory. Minor code-clean-up. Use untouched casing for files
12819 read into the library src dir.
12820 (Clean_Library_Directory): Idem.
12821 (Parse_Cmd_Line): Accept new switch -aP
12823 2007-06-06 Javier Miranda <miranda@adacore.com>
12824 Ed Schonberg <schonberg@adacore.com>
12825 Robert Dewar <dewar@adacore.com>
12826 Eric Botcazou <ebotcazou@adacore.com>
12827 Arnaud Charlet <charlet@adacore.com>
12829 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12830 applicable to types that have the With_Type flag set. Returns the
12831 non-limited view of the type, if available, otherwise the type itself.
12832 For class-wide types, there is no direct link in the tree, so we have
12833 to retrieve the class-wide type of the non-limited view of the Etype.
12834 New attributes Static_Initialization and Static_Elaboration_Desired.
12835 Remove the pragma Thread_Body, and the associated flag
12836 Is_Thread_Body in entities, and all related code.
12837 (Suppress_Value_Tracking_On_Call): New flag
12838 E_Exception has Esize and Alignment fields
12839 (Universal_Aliasing): New function.
12840 (Set_Universal_Aliasing): New procedure.
12841 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12842 (Check_Nested_Access): New procedure.
12843 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12844 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12845 (Related_Interface): New attribute. Present in dispatch table pointer
12846 components of records. Set to point to the entity of the corresponding
12848 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12849 (Original_Access_Type): Remove, not needed.
12850 (Root_Type): Handle properly subtypes of class-wide-types.
12853 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12854 class-wide types visible through limited-with clauses.
12855 (Try_Primitive_Operation): When examining all primitive operations of a
12856 tagged type, do not consider subprograms labeled as hidden unless they
12857 belong to a private generic type with a tagged parent.
12858 (Try_Object_Operation): Extensive rewriting, to handle properly various
12859 overloading cases, when several ancestors may have class-wide operations
12860 that are possible candidates, and when the overloaded functions return
12861 array types and have defaulted parameters so that the call may be
12862 interpreted as an indexing.
12863 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12864 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12865 successive actuals before analyzing the call itself.
12866 (Try_Primitive_Operation): A primitive operation is compatible with the
12867 prefix if the prefix has a synchronized type and the type of the formal
12868 is its corresponding record, as can be the case when the primitive
12869 operation is declared outside of the body of the type.
12870 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12871 perform homonym traversal, looking for class-wide operation matches
12872 (formerly done in statements of Try_Class_Wide_Operation). Matches on
12873 access parameters are now restricted to anonymous access types.
12874 (Mark_Allocator): An allocator with a discriminant association parent is
12876 (Try_One_Prefix_Interpretation): If the type of the object is
12877 incomplete, as can be happen when it is a limited view obtained through
12878 a limited_with_clause, the selected component is not part of a prefixed
12880 (Complete_Object_Operation): Diagnose properly an object that is not
12881 aliased when the corresponding controlling formal is an access
12883 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12884 ambiguous calls in prefixed notation, where two primitives differ only
12885 in that the controlling argument of one is an access parameter.
12887 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12888 whether a function that returns an unconstrained type can be inlined.
12889 (Process_Formals): Diagnose properly the illegal use of an incomplete
12890 type in the profile of an access_to_subprogram declaration.
12891 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12892 operations are attached to the corresponding record.
12893 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12894 When processing a primitive of a concurrent type which implements an
12895 interface change the type of all controlling formals to that of the
12896 corresponding record type.
12897 (Check_Synchronized_Overriding): Relax the conditional logic when trying
12898 to determine the tagged type to which a primitive belongs.
12899 (Check_Conventions): Capture condition to ignore a primitive operation
12900 (which is shared between the loop in Check_Conventions and the one in
12901 Check_Convention) in a new local function Skip_Check.
12902 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12903 confusion with Check_Conventions' own Prim_Op local variable.
12904 (Create_Extra_Formals): Test for a tagged result type rather than a
12905 controlling result when determining whether to add a BIP_Alloc_Form
12906 formal and a BIP_Final_List formal to the function.
12907 (Check_Conformance); For parameters that are anonymous access types,
12908 subtype conformance requires that the not null and the constant
12909 indicators must match
12910 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12911 to retrieve the appropriate type when processing a concurrent type
12912 declared within a generic. Minor comment reformatting. Change invocation
12913 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12915 (Analyze_Subprogram_Body): If the return type of a function is an
12916 anonymous access to the limited view of a class-wide type, and the
12917 non-limited view of the type is available, update the type of the
12918 function so that code can be generated.
12919 (Process_Formals): In case of access-subtype itype whose designated
12920 type is also an itype (situation that happens now with access to
12921 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12922 attribute to avoid backend problems.
12923 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12924 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12925 anonymous types' designated types are same before testing
12926 Subtypes_Statically_Match.
12927 (Create_Extra_Formals): Test for a named access parameter that is a
12928 controlling formal as an additional condition for adding an
12929 accessibility level formal. This can occur in the subp type created for
12930 dispatching calls in Expand_Dispatching_Call, and allows calling
12931 Create_Extra_Formals from that procedure rather than special-casing the
12932 extra formals there.
12933 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12934 when the function has a controlling result.
12935 (Check_Returns): Add much more knowledge of the optimization of local
12936 raise statements to gotos, to retain proper warnings in this case.
12937 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12938 nodes when looking for last statement.
12940 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12941 class-wide types visible through limited with clauses.
12942 (Add_One_Interp): If the operands are anonymous access types, the
12943 predefined operator on universal_access is immediately visibles
12944 (Find_Unique_Type): Handle anonymous access to subprogram types just as
12945 other anonymous access types.
12946 (Disambiguate): Take into account CIL convention.
12947 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12949 2007-06-06 Robert Dewar <dewar@adacore.com>
12951 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12952 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12953 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12954 Fix lower bound of tables.
12957 * nlists.adb: Ditto.
12958 (Prev_Node, Next_Node): Change index type to Int so that it properly
12959 covers the range First_Node_Id - 1 up.
12961 2007-06-06 Javier Miranda <miranda@adacore.com>
12962 Ed Schonberg <schonberg@adacore.com>
12963 Bob Duff <duff@adacore.com>
12964 Hristian Kirtchev <kirtchev@adacore.com>
12966 * exp_aggr.ads, exp_aggr.adb:
12967 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12968 in extension aggregates.
12969 (Flatten): Other conditions being met, an aggregate is static if the
12970 low bound given by component associations is different from the low
12971 bound of the base index type.
12972 (Packed_Array_Aggregate_Handled): If the component type is itself a
12973 packed array or record, the front-end must expand into assignments.
12974 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12975 Init_Pr, instead of Ancestor_Is_Expression.
12976 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12977 coextension chain root, either generate a list controller or use the
12978 already existing one.
12979 (Static_Array_Aggregate): New procedure to construct a positional
12980 aggregate that can be handled by the backend, when all bounds and
12981 components are compile-time known constants.
12982 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12983 types covering interface types into assignments.
12984 (Replace_Type): move to Build_Record_Aggr_Code.
12985 (Expand_Record_Aggr_Code): if the target of the aggregate is an
12986 interface type, convert to the definite type of the aggregate itself,
12987 so that needed components are visible.
12988 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12989 components and the context is an extended return statement do not
12990 create a transient block for it, to prevent premature finalization
12991 before the return is executed.
12992 (Gen_Assign): Do not generate a call to deep adjust routine if the
12993 component type is itself an array of controlled (sub)-components
12994 initialized with an inner aggregate.
12995 (Component_Check): New name for Static_Check. This name is now more
12996 appropriate, and documentation is added which was missing.
12997 (Component_Check): Add test for bit aligned component value
12998 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12999 Tagged_Comps, name is more appropriate given added function below.
13000 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
13002 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13003 Javier Miranda <miranda@adacore.com>
13004 Robert Dewar <dewar@adacore.com>
13006 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
13007 Terminated: Add unchecked type conversion from System.Address to
13008 System.Tasking.Task_Id when calling the predefined primitive
13010 Disable new Ada 05 accessibility check for JVM.NET targets, which
13011 cannot be implemented in a practical way.
13012 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
13013 the sources always references the tag of the actual object. Therefore,
13014 if 'Tag is applied in the sources to class-wide interface objects we
13015 generate code that displaces "this" to reference the base of the object.
13016 (Expand_N_Attribute_Reference, case Size): Return specified size if
13017 known to front end.
13018 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
13019 has code that displaces the pointer of the object to manage interface
13020 types. However this code must not be executed when the prefix is a
13021 subprogram. This bug caused the wrong expansion of the internally
13022 generated assignment that fills the dispatch table when the primitive
13023 is a function returning a class-wide interface type.
13024 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
13025 Set_Attribute_Name for Name_Unaligned_Valid.
13027 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13028 Gary Dismukes <dismukes@adacore.com>
13030 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
13031 If the initialization is the equivalent aggregate of the initialization
13032 procedure of the type, do not remove it.
13033 (Expand_N_Attribute_Definition_Clause): Exclude access variables
13034 initialized to null from having their expression reset to empty and
13035 note this exception in the comment.
13037 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13038 Robert Dewar <dewar@adacore.com>
13039 Ed Schonberg <schonberg@adacore.com>
13040 Gary Dismukes <dismukes@adacore.com>
13042 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13043 Add "with" and "use" clauses for Sem_Attr.
13044 (Expand_Current_Value): Do not replace occurences of attribute
13045 references where the prefix must be a simple name.
13047 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13048 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13049 Attribute_Requires_Simple_Name_Prefix.
13050 (Name_Modifies_Prefix): Body of new function.
13051 (Requires_Simple_Name_Prefix): Body of new function.
13052 (Resolve_Attribute, case Access): Improve error message for case of
13053 mismatched conventions.
13054 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13056 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13057 constrained subtype for a nominal unconstrained type, use its base type
13058 to check for conformance with the context.
13059 (Resolve_Attribute): Remove test of the access type being associated
13060 with a return statement from condition for performing accessibility
13061 checks on access attributes, since this case is now captured by
13062 Is_Local_Anonymous_Access.
13063 (Analyze_Access_Attribute): Set Address_Taken on entity
13064 (Analyze_Attribute, case Address): Set Address_Taken on entity
13065 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13066 validating an access attribute whose prefix is a current instance.
13067 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13068 applied to dispatching operations, if freezing is required then we set
13069 the attribute Has_Delayed_Freeze in the prefix's entity.
13070 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13071 current scope if access of local subprogram taken
13072 (Analyze_Access_Attribute): Check legality of self-reference even if the
13073 expression comes from source, as when a single component association in
13074 an aggregate has a box association.
13075 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13076 the prefix if it is a protected operation and the attribute is
13077 Unrestricted_Access.
13078 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13079 reference to the base type of the context, to force a constraint check
13080 when the context is an access subtype with an explicit constraint.
13081 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13082 node is rewritten as an interface conversion. leave unanalyzed after
13083 resolution, to ensure that type checking against the context will take
13086 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13087 Javier Miranda <miranda@adacore.com>
13088 Robert Dewar <dewar@adacore.com>
13090 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13091 wrapper when the full view of the controlling type of an inherited
13092 function that dispatches on result implements interfaces.
13093 (Expand_N_Object_Declaration): In cases where the type of the
13094 declaration is anonymous access, create finalization list for it.
13095 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13096 if the object has no explicit initialization, to match description of
13097 functionality of pragam Persistent_BSS.
13098 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13099 new function to build static aggregates, to replace initialization call
13100 when static initialization is desired.
13101 (Freeze_Type): Generate a list controller for an access type whenever
13102 its designated type has controlled anonymous access discriminants.
13103 (Build_Equivalent_Aggregate): New procedure to compute a static
13104 aggregate to be used as default initialization for composite types,
13105 instead of a generating a call to the initialization procedure for the
13107 (Build_Initialization_Call): When available, replace a call to the
13108 initialization procedure with a copy of the equivalent static aggregate
13110 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
13111 declarations for objects of a class-wide interface type, rather than
13112 just identifiers, to prevent visibility problems.
13113 (Expand_N_Object_Declaration): When expanding the declaration for an
13114 object of a class-wide interface type, preserve the homonym chain of
13115 the original entity before exchanging it with that of the generated
13116 renaming declaration.
13117 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13118 active, because there is no way to handle the exception.
13119 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13120 to do a minimum decoration of the Access_Disp_Table list.
13121 (Expand_Record_Controller): Avoid the addition of the controller between
13122 the component containing the tag of a secondary dispatch table and its
13123 adjacent component that stores the offset to the base of the object.
13124 This latter component is only generated when the parent type has
13125 discriminants ---documented in Add_Interface_Tag_Components).
13126 (Apply_Array_Size_Check): Removed, no longer needed.
13127 (Expand_N_Full_Type_Declaration): If the type has anonymous access
13128 components, create a Master_Entity for it only if it contains tasks.
13129 (Build_Init_Procedure): Suppress the tag assignment compiling under
13131 (Freeze_Record_Type): Remove code associated with creation of dispatch
13133 (Init_Secondary_Tags): Update type of actuals when generating calls to
13134 Ada.Tags.Set_Offset_To_Top
13135 (Stream_Operation_OK): Disable use of streams compiling under no
13137 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13138 if Has_Init_Expression set.
13139 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13140 Register_Primitive, which provides the same functionality.
13141 (Requires_Init_Proc): Return false in case of interface types.
13142 (Add_Secondary_Tables): Use the new attribute Related_Interface to
13144 (Predefined_Primitive_Freeze): Do not assume that an internal entity
13145 is always associated with a predefined primitive because the internal
13146 entities associated with interface types are not predefined primitives.
13147 Therefore, the call to Is_Internal is replaced by a call to the
13148 function Is_Predefined_Dispatching_Operation.
13149 (Make_Eq_If): When generating the list of comparisons for the
13150 components of a given variant, omit the controller component that is
13151 present if the variant has controlled components.
13153 2007-06-06 Javier Miranda <miranda@adacore.com>
13154 Hristian Kirtchev <kirtchev@adacore.com>
13155 Bob Duff <duff@adacore.com>
13157 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13158 handle the creation of finalization lists and calls for nested
13159 coextensions when the root of the chains is part of a return statement.
13160 (Inside_A_Return_Statement): New function inside Complete_Coextension_
13162 (Expand_Record_Equality): Skip components that are interface types.
13163 (Displace_Allocator_Pointer): Add missing support for interface subtypes
13164 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13165 with Rewrite_Coextension. Change the condition for detecting coextension
13167 (Is_Local_Access_Discriminant): Removed.
13168 (Rewrite_Coextension): New routine which rewrites a static coextension
13169 as a temporary and uses its unrestricted access in the construction of
13171 (Complete_Coextension_Finalization): New routine. Generate finalization
13172 attachment calls to all delayed coextensions.
13173 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13174 the allocator is not a coextension itself and has delayed coextensions.
13175 If the current allocator is controlled, but also a coextension, delay
13176 the generation of the finalization attachment call.
13177 Rename local variable "Node" to "Nod" in order to avoid confusion with
13179 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13180 limited types that are not inherently limited. Such an allocator is
13181 illegal, but is generated by the expander for a return statement, to
13182 copy the result onto the secondary stack. This is the only case where a
13183 limited object can be copied. Generate code to displace the pointer
13184 to the object if the qualified expression is a class-wide interface
13185 object. Such displacement was missing and hence the copy of the object
13187 (Apply_Accessibility_Check): Handle allocated objects initialized in
13189 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13190 and Expand_Allocator_Expression. Allocating class-wide interface objects
13191 this routine displaces the pointer to the allocated object to reference
13192 the component referencing the corresponding secondary dispatch table.
13193 Expand_Allocator_Expression): Add missing support to allocate class-wide
13194 interface objects initialized with a qualified expression.
13195 (Get_Allocator_Final_List): Test for an anonymous access type that is a
13196 function result type, and use the finalization list associated with the
13197 function scope in that case (such an anonymous type should not be
13198 treated like an access parameter's type).
13200 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13201 Gary Dismukes <dismukes@adacore.com>
13202 Javier Miranda <miranda@adacore.com>
13204 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13205 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13206 required exception handler.
13207 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13208 properly the case of a function whose return type is a limited
13209 class-wide interface type. Modify the code of the accessibility
13210 check to handle class-wide interface objects. In this case we need to
13211 displace "this" to reference the primary dispatch table to get access
13212 to the TSD of the object (to evaluate its accessibility level).
13213 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13214 rather than a controlling result as one of the conditions for
13215 generating tests of the implicit BIP_Alloc_Form formal. The
13216 initialization assignment is also handled according to whether the
13217 result is tagged instead of controlling.
13218 In the case where the init assignment is inserted in the "then" part of
13219 the allocation conditional, rewrite the target to be a dereference of
13220 the implicit BIP_Object_Access formal.
13221 If the returned value is unconstrained and created on the secondary
13222 stack, mark the enclosing block and function so that the secondary
13223 stack is not reclaimed on return.
13224 Treat returns from functions with controlling results similarly to
13225 returns from functions with unconstrained result subtypes.
13226 If the object returned is unconstrained, and an allocator must be
13227 created for it, analyze the allocator once the block for the extended
13228 return is installed, to ensure that finalizable components
13229 of the expression use the proper finalization list. Guard the call to
13230 Move_Final_List with a check that there is something to finalize.
13231 (Make_Tag_Ctrl_Assignment): Use "old" handling
13232 of controlled type assignment for virtual machines, since new code uses
13233 unsupported features (such as direct access to bytes in memory).
13235 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13236 Ed Schonberg <schonberg@adacore.com>
13238 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13239 accessibility actual, check for the case of an aliased object that has
13240 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13241 we fall into processing for the attribute rather than the name of the
13243 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13244 formal has its address taken in the body, create a temporary to capture
13245 value. If the return type is a limited interface, do not treat the
13246 return value as Controlled.
13247 (Is_In_Place_Function): If the return type is a limited interface,
13248 treat as returning in place. The actual returned object may not always
13249 be limited, but the caller has to assume that it is returned in place.
13250 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13251 context of an allocator, use the correct finalization chain (that is,
13252 the chain belonging to the access type, rather than the chain belonging
13253 to the current scope).
13254 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13255 result type rather than a controlling result as a precondition for
13256 adding an allocation form actual to a build-in-place call.
13257 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13258 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13259 primitive in the dispatch tables. This work is now done by Make_DT when
13260 the type is frozen.
13261 (Register_Predefined_DT_Entry): Removed.
13262 (Add_Return): If end label is not present, use sloc of last statement
13263 for generated return statement in procedure, for better gdb behavior
13265 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13266 object address nodes to ensure proper processing by routines like
13268 (Expand_Call): Fix generation of validity check for parameter
13269 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13270 the allocation form parameter if the result subtype is constrained,
13271 except when the function has a controlling result.
13272 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13273 rather than Is_Controlled and Has_Controlled_Component, since we want to
13274 include class-wide result types in this treatment. Also test for a
13275 controlling result, since that also requires passing a finalization
13277 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13278 even when the result subtype is constrained, to handle calls involving
13279 controlling results.
13280 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13281 is now called even when the result subtype is constrained, to handle
13282 calls involving controlling results.
13283 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13284 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13285 now performs the test).
13286 (Make_Build_In_Place_Call_In_Object_Declaration):
13287 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13288 constrained, to handle calls involving controlling results.
13289 (Add_Return): Accomodate rewritten pattern from local raise to goto
13290 transformation, so that we still recognize an transfer statement
13291 and do the right thing here in that case.
13292 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13293 and end of subprogram code.
13294 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13295 support for primitives that are functions (without formals) with a
13296 controlling result.
13297 (Inherited_From_Formal): If the actual subtype has not generic parent
13298 type, it is not an actual for a formal derived type, and there is no
13299 operation to inherit from the formal.
13301 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13302 Thomas Quinot <quinot@adacore.com>
13304 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13305 inserted cleanup code appropriately for GDB use.
13306 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13307 exception handler for Deep_Adjust or Deep_Finalize.
13308 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13309 Raise_From_Controlled_Operation is available, use a call to that
13310 subprogram instead of a plain "raise Program_Error" node to raise
13311 Program_Error if an exception is propagated from an Adjust or Finalize
13313 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13314 appears in the optional statement list of a triggering alternative, the
13315 scope actions can be inserted directly there, and not in the list that
13316 includes the asynchronous select itself.
13318 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13319 Robert Dewar <dewar@adacore.com>
13320 Hristian Kirtchev <kirtchev@adacore.com>
13322 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13323 generated exception handler appropriately when debugging generated code.
13324 Deal properly with No_Exception_Propagation restriction mode.
13325 (Expand_N_Abort_Statement): Add an unchecked type conversion from
13326 System.Address to System.Tasking.Task_Id when processing the result of
13327 the predefined primitive _disp_get_task_id.
13328 (Expand_N_Asynchronous_Select): Clarify comment.
13329 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13330 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13331 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13332 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13333 privals and for generated call to Complete_Entry_Body, for better gdb
13335 (Copy_Result_Type): Utility to construct a parameter and result profile
13336 for protected functions whose return type is an anonymous access to
13338 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13340 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13341 point when the local-raise-to-goto transformation has taken place.
13343 2007-06-06 Javier Miranda <miranda@adacore.com>
13344 Nicolas Setton <setton@adacore.com>
13346 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13347 functionality when the backend is generating code.
13348 Otherwise any serious error
13349 reported by the backend calling the frontend routine Error_Msg
13350 changes the Compilation_Mode to Check_Semantics, disables the
13351 functionality of this routine and causes the generation of
13352 spureous additional errors.
13354 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13355 debugging information now generated by the compiler for fat-pointer
13357 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13359 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13361 2007-06-06 Thomas Quinot <quinot@adacore.com>
13363 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13364 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13365 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13366 For a remote call to a function with a classwide return type, apply an
13367 E.4(18) check to the returned value.
13368 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13369 stream attributes of the designated type of an RACW, as they are not
13370 dispatching primitive operations.
13372 2007-06-06 Geert Bosch <bosch@adacore.com>
13374 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13376 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13378 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13379 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13381 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13383 2007-06-06 Javier Miranda <miranda@adacore.com>
13385 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13386 attribute compiling package Ada.Tags under No_Run_Time_Mode.
13388 2007-06-06 Javier Miranda <miranda@adacore.com>
13390 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13391 deallocation of class-wide interface objects.
13392 (Expand_Dispatching_Constructor_Call): Take into account that if the
13393 result of the dispatching constructor is an interface type, the
13394 function returns a class-wide interface type; otherwise the returned
13395 object would be actual. The frontend previously accepted returning
13396 interface types because Expand_Interface_Actuals silently performed
13397 the management of the returned type "as if" it were a class-wide
13399 (Expand_Dispatching_Constructor_Call): Replace call to
13400 Make_DT_Access_Action by direct call to Make_Function_Call.
13402 2007-06-06 Robert Dewar <dewar@adacore.com>
13403 Ed Schonberg <schonberg@adacore.com>
13405 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13406 compute masking constant, since we now set Esize properly to the
13408 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13409 to match the alignment.
13410 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13411 packed arrays of 8 bits or less.
13413 * freeze.adb (Freeze_Entity): When freezing the formals of a
13414 subprogram, freeze the designated type of a parameter of an access type
13415 only if it is an access parameter.
13416 Increase size of C convention enumeration object
13417 (Freeze_Entity, array type case): Make sure Esize value is properly
13418 adjusted for the alignment if it is known.
13419 (Freeze_Entity, array type case): When checking bit packed arrays for
13420 the size being incorrect, check RM_Size, not Esize.
13421 (Freeze_Record_Type): Check for bad discriminated record convention
13422 (In_Exp_Body): Return true if the body is generated for a subprogram
13423 renaming, either an attribute renaming or a renaming as body.
13424 (Check_Itype): If the designated type of an anonymous access component
13425 is a non-protected subprogram type, indicate that it is frozen, to
13426 prevent out-of-scope freeze node at some subsequent call.
13427 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13428 only if the subprogram is neither imported nor exported, as well as the
13429 NCA descriptor class if the subprogram is exported.
13431 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13432 Arnaud Charlet <charlet@adacore.com>
13433 Robert Dewar <dewar@adacore.com>
13434 Gary Dismukes <dismukes@adacore.com>
13436 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13437 default initialization on an imported object, when there is no
13438 initialization call generated for it.
13439 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13442 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13443 Static_Elaboration_Desired.
13444 Remove pragma Thread_Body.
13445 Implement a new pragma No_Body
13446 Removes the Explicit_Overriding pragma
13447 Remove Optional_Overriding pragma
13448 (Prag): Deal with Universal_Aliasing.
13449 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13450 Pragma_CIL_Constructor): New names.
13452 * sem_cat.adb (Validate_Object_Declaration): An initialization that
13453 uses the equivalent aggregate of a type must be treated as an implicit
13455 (Get_Categorization): Check a unit for pragma Preelaborate only if it
13456 has none of the other categories.
13457 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13458 to apply Import to an object renaming declaration.
13460 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13461 from a C++ class should be declared as limited and that it will be
13462 considererd limited.
13463 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13464 should be declared as limited and that it will be considererd limited.
13465 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13466 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13467 (Analyze_Pragma): Deal with Universal_Aliasing.
13468 (Sig_Flags): Likewise.
13469 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13470 (Overflow_Checks_Unsuppressed): New flag.
13471 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13472 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13473 case of JVM or .NET targets, and compiling user code.
13474 Add debugging convenience routine rv
13476 2007-06-06 Robert Dewar <dewar@adacore.com>
13478 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13479 are interface type.
13480 (Build_Elementary_Input_Call): For floating-point use right type in the
13481 absence of strange size or stream size clauses.
13482 (Build_Elementary_Write_Call): Same fix
13483 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13484 set to value that does not match base type size.
13486 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13488 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13489 object of a limited type can be initialized with a call to a function
13490 that returns in place. If the limited type has unknown discriminants,
13491 and the underlying type is a constrained composite type, build an actual
13492 subtype from the function call, as is done for private types.
13493 (Side_Effect_Free): An expression that is the renaming of an object or
13494 whose prefix is the renaming of a object, is not side-effect free
13495 because it may be assigned through the renaming and its value must be
13496 captured in a temporary.
13497 (Has_Controlled_Coextensions): New routine.
13498 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13499 as is done for other limited types.
13500 (Non_Limited_Designated_Type): new predicate.
13501 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13503 Remove all handling of with_type clauses.
13505 * par-ch10.adb: Remove all handling of with_type clauses.
13507 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13508 checksum if the main source could not be parsed.
13509 (Loat_Unit): When processing a child unit, determine properly whether
13510 the parent unit is a renaming when the parent is itself a child unit.
13511 Remove handling of with_type clauses.
13513 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13514 (Set_Is_Static_Coextension): New procedure.
13515 (Has_Local_Raise): New function
13516 (Set_Has_Local_Raise): New procedure
13517 (Renaming_Exception): New field
13518 (Has_Init_Expression): New flag
13519 (Delay_Finalize_Attach): Remove because flag is obsolete.
13520 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13521 Remove all handling of with_type clauses.
13522 (Exception_Junk): Can now be set in N_Block_Statement
13524 2007-06-06 Vincent Celier <celier@adacore.com>
13525 Robert Dewar <dewar@adacore.com>
13527 * frontend.adb (Frontend): Return immediately if the main source could
13528 not be parsed, because of preprocessing errors.
13530 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13531 (Gnat1drv): Exit with errors if the main source could not be parsed,
13532 because of preprocessing errors.
13533 (Check_Rep_Info): New procedure
13535 2007-06-06 Robert Dewar <dewar@adacore.com>
13537 * g-hesorg.ads, g-heasor.ads,
13538 g-busorg.ads, g-bubsor.ads: Update documentation
13539 GNAT.Heap/Bubble_Sort_G is now pure
13541 2007-06-06 Robert Dewar <dewar@adacore.com>
13543 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13545 2007-06-06 Robert Dewar <dewar@adacore.com>
13546 Ed Schonberg <schonberg@adacore.com>
13548 * g-comlin.ads, g-comlin.adb:
13549 Add new warning for renaming of function return objects
13551 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13552 (Tree_Read): Use size of object instead of type'object_size, since the
13553 latter is incorrect for packed array types.
13554 (Tree_Write): Same fix
13556 * opt.ads: Add new warning for renaming of function return objects
13557 (Generating_Code): New boolean variable used to indicate that the
13558 frontend as finished its work and has called the backend to process
13559 the tree and generate the object file.
13560 (GCC_Version): Is now private
13561 (Static_Dispatch_Tables): New constant declaration.
13562 (Overflow_Checks_Unsuppressed): New flag.
13563 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13564 (List_Closure): New flag for gnatbind (-R)
13565 Zero_Formatting: New flag for gnatbind (-Z)
13566 (Special_Exception_Package_Used): New flag.
13567 (Warn_On_Unrepped_Components): New flag.
13569 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13570 unit is a compilation unit, rather than relying on its scope, so that
13571 Standard can be renamed.
13572 (Analyze_Object_Renaming): Add new warning for renaming of function
13574 Also reject attempt to rename function return object in Ada 83 mode.
13575 (Attribute_Renaming): In case of tagged types, add the body of the
13576 generated function to the freezing actions of the type.
13577 (Find_Type): A protected type is visible right after the reserved word
13578 "is" is encountered in its type declaration. Set the entity and type
13579 rather than emitting an error message.
13580 (New_Scope): Properly propagate Discard_Names to inner scopes
13581 (Check_Nested_Access): New procedure.
13582 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13583 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13585 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13586 Add new warning for renaming of function return objects
13587 (Check_References): Suppress warnings for objects whose type or
13588 base type has Warnings suppressed.
13589 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13590 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13592 2007-06-06 Vincent Celier <celier@adacore.com>
13593 Emmanuel Briot <briot@adacore.com>
13594 Olivier Hainque <hainque@adacore.com>
13596 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13597 absolute value of Header.Block_Size when displaying the freed physical
13599 (Allocate): Compute Storage_Address using Integer_Address, not
13600 Storage_Offset, because the range of Storage_Offset may not be large
13602 (Configure): New parameter Low_Level_Traces
13603 (Allocate, Deallocation, Free_Physically): Added low-level traces
13604 (Configure): new parameter Errors_To_Stdout.
13605 (Output_File): new subprogram
13606 (Deallocate, Dereference): Send error messages to the proper stream
13607 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13608 documented. Previous code would send it to the current output file
13609 defined in GNAT.IO, which might not be stdout
13610 (Is_Valid): Adjust comment to mention that a positive reply means that
13611 Header_Of may be used to retrieve the allocation header associated with
13612 the subprogram Storage address argument. Return False early if this
13613 address argument is misaligned.
13615 2007-06-06 Vincent Celier <celier@adacore.com>
13617 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13619 (ASIS_Main): New global variable
13620 (Get_Closure): New procedure
13621 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13622 check, metric or pretty. Call Get_Closure in this case.
13623 (Check_Files): For GNAT LIST, check all sources of all projects when
13624 All_Projects is True.
13625 (GNATCmd): Accept -U for GNAT LIST
13627 2007-06-06 Vincent Celier <celier@adacore.com>
13629 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13631 Correct error message when invocation of the linker fails
13632 Add explicit size clause for the C imported variables
13633 Object_List_File_Supported and Using_GNU_Linker to emphasize that
13634 we expect char size.
13635 Read target parameters earlier, since this is needed to set
13636 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13639 2007-06-06 Vincent Celier <celier@adacore.com>
13642 Add 3 spaces before the default project directory when displaying
13643 the project search path.
13644 Add new command line switch '-l' to display license information.
13646 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13648 * gmem.c: Add support for timestamps on memory operations.
13650 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13651 operations (not used currently, just foundation for future
13652 enhancements). Add possibility to perform full dump of gmem.out file.
13653 (Print_Back_Traces): Declare accesses to root arrays constants since
13654 they aren't modified.
13655 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13657 2007-06-06 Vincent Celier <celier@adacore.com>
13659 * gnatsym.adb: Update Copyright notice
13660 (Parse_Cmd_Line): Accept new switch -D
13661 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13664 * prj.ads (Policy): New policy Direct
13665 (Yes_No_Unknown): New enumeration type
13666 (Project_Data): New component Libgnarl_Needed
13668 * prj-nmsc.adb (Check_For_Source): When recording a source file make
13669 use the untouched pathname casing.
13670 (Get_Directories): Ensure that the Display_Exec_Directory is using the
13671 proper casing on non case-sensitive platforms like Windows.
13672 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13673 on all platforms, as it is not possible to know which one is allowed
13674 before processing the project files.
13675 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13676 specified when symbol policy is Direct. Check that when there is a
13677 symbol file defined (either by default or with attribute
13678 Library_Symbol_File) it is not the same as the reference symbol file.
13679 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13680 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13681 extending projects.
13682 (Record_Ada_Source): Record a source that has been locally removed in an
13685 * symbols.ads (Policy): New policy Direct
13687 * symbols-vms.adb (Initialize): Take new policy Direct in case
13690 2007-06-06 Vincent Celier <celier@adacore.com>
13692 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13693 Correct obvious bug (return Dir; instead of return Directory;).
13694 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13696 2007-06-06 Thomas Quinot <quinot@adacore.com>
13698 * g-pehage.adb (Produce): Open output files in Binary mode, so that
13699 they have UNIX line endings (LF only) even on Windows, and thus pass
13700 all GNAT style checks.
13702 2007-06-06 Emmanuel Briot <briot@adacore.com>
13704 * g-regpat.adb (Quote): Fix improper quoting of '.'
13706 2007-06-06 Thomas Quinot <quinot@adacore.com>
13708 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13709 default, set False on a per-runtime basis.
13710 (Need_Netdb_Buffer): New constant.
13712 * g-socket.ads, g-socket.adb: Import new package
13713 GNAT.Sockets.Thin.Task_Safe_NetDB.
13714 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13715 binding to obtain proper message.
13716 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13717 Replace various occurrences of Arry (Arry'First)'Address with the
13718 equivalent Arry'Address (GNAT always follows implementation advice from
13720 (Get_Host_By_Address, Get_Host_By_Name,
13721 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13722 instead, rely on platform-specific task safe netdb operations provided
13725 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13726 parameter Process_Blocking_IO.
13727 (Host_Error_Messages): Add stub body.
13728 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13729 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13730 Safe_Getservbyport): Move functions into new child package
13732 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13733 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13734 (In_Addr): Add alignment clause.
13736 2007-06-06 Robert Dewar <dewar@adacore.com>
13738 * g-trasym.ads, g-traceb.ads: Update list of supported targets
13739 Add note about symbolic traceback
13741 2007-06-06 Pascal Obry <obry@adacore.com>
13743 * hostparm.ads (Normalized_CWD): Use the host directory separator
13744 instead of the hardcoded forward slash which is not the proper
13745 character on Windows for example.
13746 (Java_VM): Removed.
13748 2007-06-06 Vincent Celier <celier@adacore.com>
13749 Arnaud Charlet <charlet@adacore.com>
13751 * a-clrefi.adb, a-clrefi.ads: New files
13753 * impunit.adb: Add s-os_lib in the list of user visible units.
13754 (Non_Imp_File_Names_95): Add a-clrefi to this list
13755 Remove obsolete run-time entries.
13756 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13757 "a-exetim" -- Ada.Execution_Time
13758 "a-extiti" -- Ada.Execution_Time.Timers
13760 * mlib-prj.ads, mlib-prj.adb
13761 (Build_Library): Use untouched object dir and library dir. At the
13762 same time makes sure that the checks are done using the canonical
13763 form. Removes hard-coded directory separator and use the proper host
13765 (Process_Project): Do not look in object directory to check if libgnarl
13766 is needed for a library, if there is no object directory.
13767 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13769 (Build_Library): When invoking gnatbind, use a response file if the
13770 total size of the arguments is too large.
13772 * Makefile.rtl: (g-sttsne): New object file.
13773 Add entry for a-clrefi, s-utf_32, System.Exceptions
13775 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13776 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13777 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13778 Change g-string to s-string, g-os_lib to s-os_lib
13779 Change all g-utf_32 references to s-utf_32
13781 2007-06-06 Tristan Gingold <gingold@adacore.com>
13782 Olivier Hainque <hainque@adacore.com>
13784 * init.c: Do not adjust IP of an imported VMS exception of ia64.
13785 LIB$STOP is called to raise an exception and the IP of the exception
13786 is the instruction right after the call.
13787 (__gnat_adjust_context_for_raise, AIX): Implement.
13788 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13789 adjust_context_for_raise before Raise_From_Signal_Hanler.
13790 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13791 siginfo is passed to the handler, necessary to let the zcx propagation
13792 engine unwind past it.
13794 2007-06-06 Olivier Hainque <hainque@adacore.com>
13796 * initialize.c (__gnat_initialize for vxworks): Update documentation
13797 on the ZCX support, using different sets of crtstuff objects than with
13800 2007-06-06 Robert Dewar <dewar@adacore.com>
13802 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13804 (Layout_Type): Fix recomputation of size from alignment.
13806 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13807 Javier Miranda <miranda@adacore.com>
13809 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13810 association in an instance.
13811 (Copy_Generic_Node): If the node is a string literal, no need to copy
13813 (Is_Generic_Formal): For a formal subprogram, the declaration is the
13814 grandparent of the entity.
13815 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13816 to simplify handling of formal interfaces that derive from other formal
13818 (Instantiate_Subprogram_Body): The defining unit name of the body of
13819 the instance should be a defining identifier.
13820 (Install_Formal_Packages): make global to the package, for use in
13821 instantiations of child units.
13822 (Analyze_Package_Instantiation): Do not attempt to set information on an
13823 enclosing master of an entry when expansion is disabled.
13824 (Instantiate_Type): If the actual is a tagged synchronized type and the
13825 generic ancestor is an interface, create a generic actual for the
13826 corresponding record.
13827 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13828 declaration, to ensure that the interface list is processed correctly.
13829 (Inline_Instance_Body): If enclosing scope is an instance body, remove
13830 its entities from visibiility as well.
13831 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
13832 given with a named association, analyze the expression only, not the
13833 discriminant association itself.
13834 (Reset_Entity): If the analysis of a selected component is transformed
13835 into an expanded name in the prefix of a call with parameters, do not
13836 transform the original node into an expanded name, to prevent visibility
13837 errors in the case of nested generics.
13838 (Check_Private_View): For an array type, check whether the index types
13839 may need exchanging.
13841 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13842 Vincent Celier <celier@adacore.com>
13844 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13845 since both are separated.
13846 Add support for imported CIL packages.
13847 Add further special handling of "value_type" for CIL.
13848 Add special handling of pragma Import for CIL.
13850 * make.ads, make.adb: When switch -eS is used, direct all outputs to
13851 standard output instead of standard error, except errors.
13852 (Absolute_Path): Use untouched casing for the parent directory.
13853 (Add_Library_Search_Dir): Use the untouched directory name.
13854 (Add_Source_Search_Dir): Idem.
13855 (Change_To_Object_Directory): Update output to use proper casing.
13856 (Create_Binder_Mapping_File): Use the untouched filename to set
13858 (Gnatmake): Use untouched library and executable directory names.
13859 (Insert_Project_Sources): Use untouched filename for spec and body.
13860 (Is_In_Object_Directory): Use untouched object directory.
13861 (Mark_Directory): Idem.
13862 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13863 contains the non-canonical filename in all cases.
13864 (Change_To_Object_Directory): In verbose mode, display the name of the
13865 object directory we're changing to.
13866 (Compile_Sources): Make sure, when a project file is used, to compile
13867 the body of the unit, when there is one, even when only the spec is
13868 recorded in an ALI file.
13869 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13871 (Report_Compilation_Failed): New procedure
13872 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13873 procedures moved from the spec to the body.
13874 (Extract_Failure): Removed, not used
13875 Replace explicit raises of exception Bind_Failed and Link_Failed with
13876 calls to Make_Failed with the proper message.
13877 Replace explicit raises of exception Compilation_Failed with calls to
13878 procedure Report_Compilation_Failed.
13879 (Initialize): Create mapping files unconditionally when using project
13882 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13883 Pragma_CIL_Constructor): New names.
13885 * targparm.ads, targparm.adb
13886 (Compiler_System_Version): Removed, no longer used.
13887 (Get_Target_Parameters): Relax checks on system.ads validity. Add
13888 handling of two new system flags: JVM and CLI.
13890 2007-06-06 Jose Ruiz <ruiz@adacore.com>
13891 Arnaud Charlet <charlet@adacore.com>
13893 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13894 time, use the default s-interr body that provides interrupt support
13896 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13897 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13898 g-soccon.ads, and s-taprop.adb for the marte run time.
13899 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13900 timers are supported on marte.
13901 (EH_MECHANISM for marte): Do not use ZCX.
13902 (THREADSLIB for marte): Use -lmarte.
13903 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13904 Add mlib-tgt-specific.o to gnatmake objects
13905 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13906 longer of MLib.Tgt.
13907 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13908 6, either kernel or rtp, use a specialized version of s-osinte.ads.
13910 2007-06-06 Pascal Obry <obry@adacore.com>
13912 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13914 2007-06-06 Vincent Celier <celier@adacore.com>
13916 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13917 separator, use instead the proper host directory separator.
13918 (Copy_ALI_Files): Make sure that an already existing ALI file in the
13919 ALI copy dir is writable, before doing the copy.
13921 * mlib-utl.ads, mlib-utl.adb:
13922 (Gcc): If length of command line is too long, put the list of object
13923 files in a response file, if this is supported by the platform.
13924 (Ar): If invocation of the archive builder is allowed to be done in
13925 chunks and building it in one shot would go above an OS dependent
13926 limit on the number of characters on the command line, build the archive
13929 2007-06-06 Vincent Celier <celier@adacore.com>
13931 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13932 of specified object file is not equal to base name of source.
13934 2007-06-06 Javier Miranda <miranda@adacore.com>
13935 Hristian Kirtchev <kirtchev@adacore.com>
13936 Ed Schonberg <schonberg@adacore.com>
13938 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13939 the full type declaration.
13940 (Analyze_Component_Declaration): Add local variable E to capture the
13941 initialization expression of the declaration. Replace the occurences of
13942 Expression (N) with E.
13943 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13944 limited interface object with a function call.
13945 (Array_Type_Declaration): If the declaration lacks subtype marks for
13946 indices, create a simple index list to prevent cascaded errors.
13947 (Is_Null_Extension): Ignore internal components created for secondary
13948 tags when checking whether a record extension is a null extension.
13949 (Check_Abstract_Interfaces): Add missing support for interface subtypes
13950 and generic formals.
13951 (Derived_Type_Declaration): Add missing support for interface subtypes
13952 and generic formals.
13953 (Analyze_Object_Declaration): If an initialization expression is
13954 present, traverse its subtree and mark all allocators as static
13956 (Add_Interface_Tag_Component): When looking for components that may be
13957 secondary tags, ignore pragmas that can appear within a record
13959 (Check_Abstract_Overriding): an inherited function that dispatches on
13960 result does not need to be overriden if the controlling type is a null
13962 (Mentions_T): Handle properly a 'class attribute in an anonymous access
13963 component declaration, when the prefix is an expanded name.
13964 (Inherit_Component): If the derivation is for a private extension,
13965 inherited components remain visible and their ekind should not be set
13967 (Find_Type_Of_Object): In the case of an access definition, always set
13968 Is_Local_Anonymous_Access. We were previously not marking the anonymous
13969 access type of a return object as a local anonymous type.
13970 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13971 range with character literal bounds.
13972 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13973 (Access_Subprogram_Declaration): Indicate that the type declaration
13974 depends on an incomplete type only if the incomplete type is declared
13976 (Analyze_Subtype_Declaration): Handle properly subtypes of
13977 synchronized types that are tagged, and that may appear as generic
13979 (Access_Subprogram_Declaration): An anonymous access to subprogram can
13980 appear as an access discriminant in a private type declaration.
13981 (Add_Interface_Tag_Components): Complete decoration of the component
13982 containing the tag of a secondary dispatch table and the component
13983 containing the offset to the base of the object (this latter component
13984 is only generated when the parent type has discriminants --as documented
13986 (Inherit_Components): Use the new decoration of the tag components to
13987 improve the condition that avoids inheriting the components associated
13988 with secondary tags of the parent.
13989 (Build_Discriminanted_Subtype): Indicate to the backend that the
13990 size of record types associated with dispatch tables is known at
13992 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13993 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13994 to include task, protected, and synchronized interfaces as limited
13996 (Process_Discriminants): Remove the setting of
13997 Is_Local_Anonymous_Access on the type of (anonymous) access
13998 discriminants of nonlimited types.
13999 (Analyze_Interface_Type_Declaration): Complete the decoration of the
14000 class-wide entity it is is already present. This situation occurs if
14001 the limited-view has been previously built.
14002 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
14004 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
14007 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14009 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
14010 of the type that specify the position of interface tags when the type
14011 inherits discriminated array components from the parent type.
14012 If a component is initialized with a box, check for the presence of a
14013 default expression in its declaration before using its default
14014 initialization procedure.
14015 (Resolve_Record_Aggregate): If a component is box-initialized, and the
14016 component type has a discriminants, create a partial aggregate for it
14017 by copying the discriminants of the component subtype.
14018 Reject attempt to initialize a discriminant with a box.
14019 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
14020 associated with dispatch tables is known at compile time.
14021 (Get_Value): If an association in a record aggregate has a box
14022 association, and the corresponding record component has a default
14023 expression, always copy the default expression, even when the
14024 association has a single choice, in order to create a proper
14025 association for the expanded aggregate.
14027 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14028 Robert Dewar <dewar@adacore.com>
14030 * par-ch12.adb (P_Generic_Associations): The source position of an
14031 Others association is that of the others keyword, not that of the token
14032 that follows the box.
14033 (P_Formal_Type_Definition): Handle formal access types that carry a
14034 not null indicator.
14036 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
14037 multiple identifier are present, save Scan_State before scanning the
14038 colon, to ensure that separate trees are constructed for each
14040 (P_Identifier_Declarations): For object declaration, set new flag
14041 Has_Init_Expression if initialization expression present.
14042 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14043 Improve NOT NULL error messages
14045 2007-06-06 Robert Dewar <dewar@adacore.com>
14047 * par-ch4.adb: (P_Name): Recover from literal used as name
14049 2007-06-06 Vincent Celier <celier@adacore.com>
14051 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14052 defaulted to False.
14053 In the "not" case, recursive call with Complemented set to True.
14054 Do not allow "or" or "and" operators when Complemented is True.
14056 2007-06-06 Vincent Celier <celier@adacore.com>
14058 * prj.adb (Project_Empty): Gives default value for new component
14061 * prj-attr.ads: Minor reformatting
14063 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14064 directory using the untouched casing.
14065 (For_All_Source_Dirs): Idem.
14067 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14068 directories specified with switches -aP.
14069 (Add_Search_Project_Directory): New procedure
14070 (Initialize_Project_Path): Put the directories in table
14071 Search_Directories in the project search path.
14072 (Initialize_Project_Path): For VMS, transform into canonical form the
14075 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14077 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14078 true if configurable run-time or No_Run_Time is set.
14079 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14080 processing an unit which is not the one being compiled.
14082 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14084 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14085 Replace UC by Ada.UC
14087 * s-bitops.adb: Get rid of System.Pure_Exceptions.
14088 Replace UC by Ada.UC
14090 2007-06-06 Robert Dewar <dewar@adacore.com>
14092 * scng.adb: (Check_End_Of_Line): Deal with very long lines
14094 2007-06-06 Robert Dewar <dewar@adacore.com>
14096 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14097 Remove no longer used nodes.
14099 2007-06-06 Javier Miranda <miranda@adacore.com>
14100 Ed Schonberg <schonberg@adacore.com>
14101 Robert Dewar <dewar@adacore.com>
14103 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14104 on obsolescent withed unit in case of limited-withed units.
14105 (Analyze_Compilation_Unit): Add guard to code that removed an
14106 instantiation from visibility, to prevent compiler aborts when
14107 instantiation is abandoned early on.
14108 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14109 current unit being analyzed, and Distinguish local incomplete types
14110 from limited views of types declared elsewhere.
14111 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14112 to state that the class-wide entity is shared by the limited-view
14114 (Analyze_With_Clause): Improve placement of flag for case of
14115 unimplemented unit.
14116 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14117 manner similar to GNAT.Current_Exception. This is a violation of
14118 restriction (No_Exception_Propagation), and also inhibits the
14119 optimization of local raise to goto.
14120 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14121 and if so set Most_Recent_Exception_Used flag in Opt, and also check
14122 for violation of restriction No_Exception_Propagation.
14124 2007-06-06 Javier Miranda <miranda@adacore.com>
14125 Hristian Kirtchev <kirtchev@adacore.com>
14126 Gary Dismukes <dismukes@adacore.com>
14128 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14129 use of entity Exception_Occurrence if it is not available in the
14132 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14133 concurrent types are declared within an Ada 2005 generic, build their
14134 corresponding record types since they are needed for overriding-related
14136 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14137 protected type does not implement a task interface or a nonlimited
14139 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14140 type does not implement a protected interface or a nonlimited interface.
14141 (Single_Task_Declaration, Single_Protected_Declaration): use original
14142 entity for variable declaration, to ensure that debugging information
14143 is correcty generated.
14144 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14145 routines if the expander is not active.
14146 (Analyze_Task_Body): Mark all handlers to stop optimization of local
14147 raise, since special things happen for task exception handlers.
14149 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14150 concurrent types declared within a generic.
14151 (Check_Dispatching_Operation): Do not emit warning about late interface
14152 operations in the context of an instance.
14153 (Check_Dispatching_Call): Remove restriction against calling a
14154 dispatching operation with a limited controlling result.
14155 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14156 Register_Interface_DT_Entry by calls to Register_Primitive.
14157 (Check_Dispatching_Formals): Handle properly a function with a
14158 controlling access result.
14160 2007-06-06 Robert Dewar <dewar@adacore.com>
14161 Arnaud Charlet <charlet@adacore.com>
14163 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14164 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14165 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14166 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14167 message when using a VM, since this attribute is not supported.
14168 (Analyze_Record_Representation_Clause): Give unrepped component warnings
14170 * usage.adb: Add new warning for renaming of function return objects
14171 Indicate that -gnatwp and -gnatwP concern front-end inlining
14172 Add line for -gnatyg
14173 Add usage information for -gnatw.c/C
14175 2007-06-06 Robert Dewar <dewar@adacore.com>
14176 Ed Schonberg <schonberg@adacore.com>
14179 (Find_Var): Do not consider function call in test for infinite loop
14180 warning if warnings set off for function entity.
14181 (One_Bound): Do not create a temporary for a loop bound if it is a
14183 (Analyze_Assignment): Traverse the right hand side of an assignment and
14184 mark all allocators as static coextensions.
14185 (Analyze_Assignment): Exempt assignments involving a dispatching call
14186 to a function with a controlling access result from the check requiring
14187 the target to be class-wide.
14189 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14190 Ed Schonberg <schonberg@adacore.com>
14191 Robert Dewar <dewar@adacore.com>
14192 Javier Miranda <miranda@adacore.com>
14194 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14195 chain of coextensions when an allocator serves as the root of such a
14197 (Propagate_Coextensions): Remove the test for the root being an
14199 (Resolve_Allocator): Add condition to ensure that all future decoration
14200 occurs on an allocator node. Add processing and cleanup for static
14202 (Valid_Conversion): If the operand type is the limited view of a
14203 class-wide type, use the non-limited view is available to determine
14204 legality of operation.
14205 (Ambiguous_Character): move to spec, for use elsewhere.
14206 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14207 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14208 character literals.
14209 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14210 Do_Division_Check flag explicitly.
14211 (Resolve_Actuals): If the actual is of a synchronized type, and the
14212 formal is of the corresponding record type, this is a call to a
14213 primitive operation of the type, that is declared outside of the type;
14214 the actual must be unchecked-converted to the type of the actual
14215 (Resolve_Call): Kill all current values for any subprogram call if
14216 flag Suppress_Value_Tracking_On_Call is set.
14217 (Resolve_Type_Conversion): Generate error message the the operand
14218 or target of interface conversions come from a limited view.
14219 (Check_Infinite_Recursion): Ignore generated calls
14220 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14221 that an expression that constrains an access discriminant in an
14222 allocator does not denote an object with a deeper level than the
14223 allocator's access type.
14224 (Resolve_Allocator): In the case of an allocator initialized by an
14225 aggregate of a discriminated type, check that associations for any
14226 access discriminants satisfy accessibility requirements by calling
14227 Check_Allocator_Discrim_Accessibility.
14228 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14229 subprogram types in the same fashion as other anonymous access types.
14230 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14231 message that is not a continuation message.
14232 (Resolve_Type_Conversion): Add missing support for conversion to
14234 (Resolve_Actuals): Introduce a transient scope around the call if an
14235 actual is a call to a function returning a limited type, because the
14236 resulting value must be finalized after the call.
14237 (Resolve_Actuals): If the call was given in prefix notations, check
14238 whether an implicit 'Access reference or implicit dereference must be
14239 added to make the actual conform to the controlling formal.
14241 2007-06-06 Robert Dewar <dewar@adacore.com>
14242 Javier Miranda <miranda@adacore.com>
14244 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14245 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14246 overriding of an inherited private subprogram now there is no need to
14247 inherit its dispatching slot and reduce the size of the dispatch table.
14248 Set_All_DT_Position now ensures that the same slot is now assigned to
14249 both entities. This is required to statically build the dispatch table.
14250 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14251 of calling Set_All_DT_Position to re-evaluate the position of the
14252 entries in the dispatch table. Such reevaluation is not desired if
14253 the tagged type is already frozen.
14255 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14256 Gary Dismukes <dismukes@adacore.com>
14257 Robert Dewar <dewar@adacore.com>
14258 Javier Miranda <miranda@adacore.com>
14260 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14261 reference acts as an lvalue when the attribute name modifies the prefix
14262 (Is_Coextension_Root): New routine.
14263 (Mark_Static_Coextensions): New routine.
14264 (Type_Access_Level): Revise code for checking the level of the
14265 anonymous access type of a return object.
14266 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14267 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14268 retrieval of the corresponding controlling record type.
14269 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14270 concurrent types declared within a generic as well as class wide types.
14271 Emit a mode incompatibility error whenever a protected entry or routine
14272 override an interface routine whose first parameter is not of mode
14273 "out", "in out" or access to variable.
14274 (Overrides_Synchronized_Primitive): Rename to
14275 Find_Overridden_Synchronized_Primitive.
14276 (Collect_Interface_Components): New subprogram that collects all the
14277 components of a tagged record containing tags of secondary dispatch
14279 (Add_Global_Declaration): New procedure
14280 (Abstract_Interface_List): Handle properly the case of a subtype of a
14282 (Type_Access_Level): In the case of a type whose parent scope is a
14283 return statement, call Type_Access_Level recursively on the enclosing
14284 function's result type to determine the level of the return object's
14286 (Build_Elaboration_Entity): Build name of elaboration entity from the
14287 scope chain of the entity, rather than the unit name of the file name.
14288 (Check_Nested_Access): New procedure.
14289 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14290 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14291 (Get_Renamed_Entity): Utility routine for performing common operation
14292 of chasing the Renamed_Entity field of an entity.
14294 2007-06-06 Robert Dewar <dewar@adacore.com>
14296 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14298 (Check_A_Call): Add check for entry call which was causing blowup
14300 2007-06-06 Olivier Hainque <hainque@adacore.com>
14302 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14303 special code on ia64-vms to handle major incompatibilities between the
14304 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14305 this routine with a very different set of arguments and expectations on
14308 2007-06-06 Thomas Quinot <quinot@adacore.com>
14310 * socket.c (__gnat_close_signalling_fd): New function.
14311 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14312 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14313 New supporting functions for task safe Netdb operations.
14315 2007-06-06 Thomas Quinot <quinot@adacore.com>
14316 Olivier Hainque <hainque@adacore.com>
14318 * a-except-2005.ads, a-except-2005.adb
14319 (Raise_From_Controlled_Operation): New procedure in
14320 (private part of) Ada.Exceptions (standard runtime version). Used to
14321 provide informational exception message when Program_Error is raised as
14322 a result of an Adjust or Finalize operation propagating an exception.
14323 (Rmsg_28): Fix description for E.4(18) check.
14324 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14325 propagation starts, to let debuggers know about the event in a reliable
14327 Take the address of E and dereference to make sure it is homed on stack
14328 and prevent the stores from being deleted, necessary for proper
14329 debugger behavior on "break exception" hits.
14330 (Local_Raise): Moved to System.Exceptions
14332 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14333 exception message from the current occurrence and raise Program_Error
14334 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14336 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14337 Arnaud Charlet <charlet@adacore.com>
14339 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14342 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14343 priority associated to a lock.
14345 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14346 assertion to take into account case of no abort restriction.
14347 (Initialize_Protection_Entries): Add initialization for the field
14348 New_Ceiling associated to the protected object.
14349 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14352 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14353 since this function needs to be set consistently with Update_Exception.
14355 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14356 since this function needs to be set consistently with Update_Exception.
14358 * s-taskin.ads: Update comments on
14359 Interrupt_Server_Blocked_On_Event_Flag.
14360 (Unbind_Handler): Fix handling of server_task wakeup
14361 (Server_Task): Set self's state so that Unbind_Handler can take
14362 appropriate actions.
14363 (Common_ATCB): Now use a constant from System.Parameters to determine
14364 the max size of the Task_Image field.
14366 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14367 Initialize_Analyzer function.
14368 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14369 take into account case of no abort restriction.
14370 ([Vulnerable_]Complete_Master): Modify assertion.
14372 * s-tataat.adb (Finalize): Use the nestable versions of
14373 Defer/Undefer_Abort.
14375 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14377 * s-tpobop.ads: Update comments.
14379 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14380 of locking the object manually, to avoid inconsistencies between
14381 Lock/Unlock_Entry assertions.
14383 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14385 application and System.Parameters.No_Abort is True.
14386 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14387 (Unbind_Handler): Fix handling of server_task wakeup
14388 (Server_Task): Set self's state so that Unbind_Handler can take
14389 appropriate actions.
14391 2007-06-06 Thomas Quinot <quinot@adacore.com>
14393 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14394 declarations instead of an explicit null body, for conciseness.
14396 2007-06-06 Robert Dewar <dewar@adacore.com>
14398 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14399 illegal aggregate and the type is still Any_Composite.
14400 (Subtypes_Statically_Match): Fix problem of empty discriminant list
14402 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14404 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14405 to prevent subsequent expansion.
14407 2007-06-06 Robert Dewar <dewar@adacore.com>
14409 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14411 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14412 Robert Dewar <dewar@adacore.com>
14414 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14416 (Write_Itype): Handle case of string literal subtype, which
14417 comes up in this context.
14418 (Update_Itype): when debugging expanded code, update sloc of itypes
14419 associated with defining_identifiers and ranges, for gdb use.
14420 (Sprint_Node_Actual): Add static keyword to object or exception
14421 declaration output if Is_Statically_Allocated is True.
14422 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14423 or task body, so that the tree carries the proper Sloc information for
14425 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14427 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14429 * s-secsta.adb (Chunk): Ensure this object has a static size known at
14430 compile time, to avoid dynamic memory allocation
14431 (Elaboration code): Only use dynamic memory allocation when needed.
14433 2007-06-06 Quentin Ochem <ochem@adacore.com>
14435 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14437 (Stack_Analyzer): Added field "Overflow_Guard"
14438 (Task_Result): Added field "Overflow_Guard".
14439 (Index_Str): New constant.
14440 (Task_Name_Str): New constant.
14441 (Actual_Size_Str): New constant.
14442 (Pattern_Array_Element_Size): New constant.
14443 (Get_Usage_Range): New subprogram.
14444 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14445 Now align the output.
14447 (Initialize): Added value for Overflow_Guard.
14448 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14449 Update the value of the overflow guard according to the actual
14450 beginning of the pattern array.
14451 (Initialize_Analyzer): Added parameter Overflow_Guard.
14452 Take this parameter into accound when computing the max size.
14453 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14454 (Report_Result): Removed extra useless procedure.
14455 Updated call to Output_Result.
14456 Moved full computation of the Task_Result here.
14458 2007-06-06 Thomas Quinot <quinot@adacore.com>
14460 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14461 Thread_Blocking_IO, always True by default, set False on a per-runtime
14463 Add Windows-specific constants
14464 Add new constant Need_Netdb_Buffer.
14465 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14466 not, whether to use getXXXbyYYY_r.
14468 * gsocket.h: Add new constant Need_Netdb_Buffer.
14469 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14470 not, whether to use getXXXbyYYY_r.
14472 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14474 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14475 than their first call.
14476 Add type Dummy_Communication_Block used in the generation of the pre-
14477 defined dispatching primitive _disp_asynchronous_select.
14478 (Storage_Element): Put Pragma Universal_Aliasing on it.
14480 2007-06-06 Vincent Celier <celier@adacore.com>
14482 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14485 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14486 letter if it is not followed by a '/' or a '\'.
14487 (Windows): New Boolean function
14489 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14491 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14493 (Containing_Directory): Raise Use_Error when the directory is a root
14495 (Extension): When returning the result, use a conversion to Result_Type,
14496 not a qualification.
14498 2007-06-06 Robert Dewar <dewar@adacore.com>
14500 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14501 (Set_Style_Check_Options): Recognize new -gnatyg style switch
14503 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14504 Warn_On_Non_Local_Exception to False, to turn off warnings for
14505 No_Exception_Propagation in ZFP runtime.
14506 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14508 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14510 2007-06-06 Vincent Celier <celier@adacore.com>
14512 * switch-b.adb (Scan_Binder_Switches): Add processing for new
14515 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14516 (Scan_Make_Switches): Recognize new switch -aP
14518 2007-06-06 Matthew Gingell <gingell@adacore.com>
14519 Jose Ruiz <ruiz@adacore.com>
14521 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14522 VxWorks task descriptor in the Ada run time, call a C subprogram
14523 (__gnat_get_stack_info) that extracts the required information.
14525 * sysdep.c: Back out temporary lynxos workaround.
14526 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14527 time the stack information associated to the currently executing task.
14528 Only VxWorks systems require this function.
14530 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14532 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14533 add the stack bias if the offset is computed from a frame address.
14534 (__gnat_backtrace): Adjust for above change.
14536 2007-06-06 Thomas Quinot <quinot@adacore.com>
14538 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14539 PE_Non_Transportable_Actual.
14540 (By_Descriptor_Last): New constant.
14541 (By_Copy_Return): Likewise.
14543 2007-06-06 Vincent Celier <celier@adacore.com>
14545 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14548 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14549 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14550 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14551 Add missing comment for /OPTIMIZE=SPACE
14552 Add entry for OPTIMIZE=SPACE
14553 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14554 Add documentation for new qualifiers corresponding to -gnatw.c/.C
14556 2007-06-06 Vincent Celier <celier@adacore.com>
14557 Robert Dewar <dewar@adacore.com>
14559 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14562 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14563 Document gnatbind switch -a
14564 (case Constructions): Document that variables declarations are allowed
14565 for previously declared variables.
14566 Fix external lib project example
14567 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14568 Indicate that "#if not X or Y then" is not allowed in input files to
14570 Document gnatw.x and gnatw.X warning flags
14571 Mention -Winline switch to activate warnings when back-end inlining is
14573 Add gnatcheck rule descriptions
14574 Describe how to use the GNAT driver to call a tool on a closure.
14575 Describe how to run project-wide checks or metrics.
14576 Document gnatbind's -R option
14577 Updated to account for Ada 2005 support
14579 * gnat_rm.texi (Case Construction): Allow variable declarations for
14580 previously declared variables.
14581 (Representation Clauses and Pragmas): Lift restriction on alignment
14582 clauses for record types.
14583 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14584 Document No_Exception_Propagation restriction
14585 Document No_Body pragma
14586 Updated to account for Ada 2005 support; corrected some typos
14587 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14589 * gnat-style.texi: Make it clear that we never use mode IN for
14590 procedures or functions
14592 * ug_words: Add entries for -gnatw.x and -gnatw.X
14593 Add entries for -gnatw.c/.C
14595 2007-06-06 Pascal Obry <obry@adacore.com>
14596 Vincent Celier <celier@adacore.com>
14598 * makegpr.adb (Add_Archive_Path): Use untouched object and library
14599 dirs and library name.
14600 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14602 (Build_Library): Idem.
14603 (Compile_Individual_Sources): Idem.
14604 (Compile_Link_With_Gnatmake): Idem.
14605 (Compile_Sources): Idem.
14606 (Get_Imported_Directories): Idem.
14607 (Link_Executables): Idem. Same change for the executable dir.
14608 (Check_Compilation_Needed): C_Source_Path new variable containing
14609 the canonical form of Source_Path to check against the source names
14610 in the dependency file.
14611 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14612 verbose mode, display the name of the object directory we're changing
14614 (Saved_Switches): New name of table X_Switches
14615 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14616 (Usage): New line for switch -aP
14617 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14618 testing if a directory should be added to the search path.
14620 2007-06-06 Javier Miranda <miranda@adacore.com>
14622 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14623 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14624 declaration after freezing point of all its associated tagged types;
14625 otherwise such types are frozen too early.
14627 2007-06-06 Robert Dewar <dewar@adacore.com>
14629 * a-reatim.adb: Documentation addition
14631 * g-cgideb.adb: Minor code reorganization
14633 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14634 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14635 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14637 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14638 function. Change name New_Scope to Push_Scope
14639 (Get_Debug_Flag_K): Remove unused obsolete function.
14641 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14644 * makeusg.adb: Update Copyright notice
14645 Add line for switch -aP
14647 * makeusg.adb: Fix wording of some usage messages
14649 * s-assert.adb (Raise_Assert_Failure): Add call to
14650 Debug_Raise_Assert_Failure.
14652 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14653 (2, Standard'Alignment) for compatibility with AAMP (where alignment
14654 is restricted to 1).
14656 * s-wchjis.adb: Remove use of System.Pure_Exceptions
14658 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14659 node location to No_Location when we're not debugging the expanded
14662 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
14664 * misc.c (enumerate_modes): Consider log2_b to always be one.
14666 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
14668 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14670 2007-05-02 Pascal Obry <obry@adacore.com>
14672 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14673 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14674 encoding support of Stream_IO.
14675 (Write_Unit): Idem.
14677 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14678 filename and corresponding encoding to match the OS requirement.
14679 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14680 routine will fail on specific devices like CON: AUX: ...
14682 PR ada/29856: Add missing braces
14684 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
14687 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14689 2007-04-21 Jan Hubicka <jh@suse.cz>
14691 * misc.c (gnat_expand_body): Don't call target for destructors,
14692 avoid redundant check on syntax errors.
14694 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
14696 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14697 instead of checking GIMPLE_STMT_P in chain_next.
14699 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14702 * system-linux-alpha.ads: Disable constant condition warning for the
14703 Default_Bit_Order variable.
14704 * system-linux-s390.ads: Likewise.
14705 * system-linux-s390x.ads: Likewise.
14706 * system-linux-sparc.ads: Likewise.
14708 2007-04-06 Javier Miranda <miranda@adacore.com>
14709 Matt Heaney <heaney@adacore.com>
14710 Robert Dewar <dewar@adacore.com>
14712 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14713 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14714 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14715 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14716 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14717 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14718 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14719 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14720 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14721 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14722 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14723 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14724 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14725 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14726 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14727 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14728 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14729 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14730 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14731 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14732 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14733 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14734 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14735 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14736 s-taprop-tru64.adb, s-taprop-irix.adb,
14737 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14738 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14739 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14740 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14741 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14742 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14743 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14744 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14745 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14746 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14747 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14748 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14749 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14750 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14751 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14752 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14753 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14754 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14755 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14756 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14758 Update documentation.
14761 2007-04-06 Robert Dewar <dewar@adacore.com>
14763 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14764 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14765 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14766 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14767 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14768 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14769 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14770 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14771 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14772 system-hpux-ia64.ads, targparm.adb,
14773 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14775 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14776 kept for bootstrap purposes only.
14778 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14780 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14781 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14782 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14783 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14785 2007-04-06 Robert Dewar <dewar@adacore.com>
14787 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14788 (Local_Raise): New dummy procedure called when a raise is converted
14789 to a local goto. Used for debugger to detect that the exception
14792 * debug.adb: Document new d.g flag (expand local raise statements to
14793 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14795 * exp_sel.adb: Use Make_Implicit_Exception_Handler
14797 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14798 suppress warnings for unused handlers.
14799 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
14800 warnings for raise statements not handled locally.
14801 (Get_RT_Exception_Entity): New function
14802 (Get_Local_Call_Entity): New function
14803 (Find_Local_Handler): New function
14804 (Warn_If_No_Propagation): New procedure
14805 (Expand_At_End_Handler): Call Make_Implicit_Handler
14806 (Expand_Exception_Handlers): Major additions to deal with local handlers
14807 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14808 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14811 * exp_ch11.ads (Get_RT_Exception_Entity): New function
14812 (Get_Local_Call_Entity): New function
14814 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14815 of restrictions that the binder will never suggest adding.
14817 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14820 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14821 be with'ed in the presence of pragma Restriction
14822 (No_Exception_Propagation).
14824 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14826 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14827 parameter, then the handler is not a suitable target for a local raise,
14828 and this is a violation of restriction No_Exception_Propagation.
14829 (Analyze_Handled_Statements): Analyze choice parameters in exception
14830 handlers before analyzing statement sequence (needed for proper
14831 detection of local raise statements).
14832 (Analyze_Raise_Statement): Reraise statement is a violation of the
14833 No_Exception_Propagation restriction.
14835 * s-rident.ads: Add new restriction No_Exception_Propagation
14837 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14838 function, like Make_Exception_Handler but sets Local_Raise_Statements
14840 (Add_Unique_Serial_Number): Deal with case where this is called during
14841 processing of configuration pragmas.
14843 2007-04-06 Thomas Quinot <quinot@adacore.com>
14844 Pat Rogers <rogers@adacore.com>
14845 Pascal Obry <obry@adacore.com>
14847 * g-stsifd-sockets.adb: New file.
14849 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14850 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14851 g-socthi-vms.adb: Move signalling
14852 fd management to a nested package, so that they can conveniently be
14853 moved to a subunit that is shared across Windows, VMS, and VxWorks
14854 (Ada implementation) or completed with imported bodies from socket.c
14856 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14858 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14859 the signalling file descriptor.
14860 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14861 signalling file descriptor.
14862 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14863 instead of creating a pair of sockets for signalling here.
14865 * g-socthi.adb: Ditto.
14866 Set the runtime process to ignore SIGPIPEs on platforms that support
14867 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14869 * g-socthi-mingw.adb: Ditto.
14870 (WS_Version): Use Windows 2.2.
14871 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14873 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14874 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14876 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14877 added GNAT byte swapping facility
14878 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14880 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14882 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14884 (__gnat_create_signalling_fds): New subprogram.
14885 Set the runtime process to ignore SIGPIPEs on platforms that support
14886 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14888 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
14889 Vincent Celier <celier@adacore.com>
14891 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14892 New version of Ada.Calendar which supports the new upper bound of Ada
14893 time (2399-12-31 86_399.999999999).
14894 The following modifications have been made to the package:
14895 - New representation of time as count of nanoseconds since the start of
14896 Ada time (1901-1-1 0.0).
14897 - Target independent Split and Time_Of routines which service both
14898 Ada 95 and Ada 2005 code.
14899 - Target independent interface to the Ada 2005 children of Calendar.
14900 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14901 - Handling of non-leap centenial years.
14902 - Updated clock function.
14903 - Updated arithmetic and comparison operators.
14905 * a-caldel.adb (To_Duration): Add call to target independent routine in
14906 Ada.Calendar to handle the conversion of time to duration.
14908 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14910 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14912 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14913 targets do not have a natural time zone, GMT is used as a default.
14914 (__gnat_get_task_options): New.
14916 * a-direct.adb (Modification_Time): Add with and use clauses for
14917 Ada.Calendar and Ada.
14918 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14919 since it is no longer needed.
14920 (Duration_To_Time): Removed.
14921 (OS_Time_To_Long_Integer): Removed.
14922 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14923 Formatting Time_Of routines which automatically handle time zones,
14924 buffer periods and leap seconds.
14926 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14927 target independent routines in Ada.Calendar.
14929 * a-calfor.ads, a-calfor.adb:
14930 Code cleanup and addition of validity checks in various routines.
14931 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14934 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14935 independent routine in Ada.Calendar.
14937 2007-04-06 Olivier Hainque <hainque@adacore.com>
14940 (convert_addresses): Adjust prototype and dummy definition to expect an
14941 extra file_name argument.
14943 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14944 filling the now expected file_name argument with the appropriate
14946 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14947 (tracebk): Array of void * instead of char *, corresponding to what
14948 convert_addresses expects.
14949 (exename): New static global, to hold the executable file name to be
14950 used in all convert_addresses invocations.
14951 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14953 (__gnat_gmem_a2l_initialize): Resolve exename.
14954 (__gnat_convert_addresses): Use exename as the convert_addresses
14955 file_name argument.
14957 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14958 "convert_addresses", now expecting a filename argument. Import the
14959 necessary entities to compute the filename to use and pass it to
14962 2007-04-06 Matt Gingell <gingell@adacore.com>
14964 * system-aix.ads: Back out previous change.
14965 (Functions_Return_By_DSP): Removed
14967 2007-04-06 Pascal Obry <obry@adacore.com>
14969 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14970 or the monotonic used by Ada.Real_Time) to compute the sleep duration
14973 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14975 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14976 function. Its value changes in different VxWorks versions, and it is
14977 now handled by the function __gnat_get_task_options.
14979 * s-taprop-vxworks.adb (Create_Task): Call the function
14980 __gnat_get_task_options to get the required options for creating a task.
14982 2007-04-06 Pascal Obry <obry@adacore.com>
14983 Thomas Quinot <quinot@adacore.com>
14985 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14986 dealing with filename.
14987 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14988 filename from a standard string to a wide-string depending on the
14990 (__gnat_freopen): Idem.
14991 (__gnat_current_time): New function (wrapper for time(3) standard C
14994 * g-os_lib.ads (Current_Time): New function. Returns the current
14995 system time as an OS_Time value.
14997 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14998 (Monotonic_Clock): Same.
15000 2007-04-06 Quentin Ochem <ochem@adacore.com>
15002 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
15004 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
15006 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15008 * a-retide.adb: Add elaboration code to ensure that the tasking run
15009 time is initialized when using delay operations even when no task is
15012 2007-04-06 Javier Miranda <miranda@adacore.com>
15014 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
15015 component Num_Prim_Ops.
15016 (Set_Num_Prim_Ops): Removed.
15017 Remove all the assertions because all the routines of this
15018 package are inline always.
15019 (Get_Offset_Index): Add support to primary dispatch tables.
15020 Move the documentation about the dispatch table to a-tags.ads
15021 (Set_External_Tag): Removed
15022 (Inherit_TSD): Removed.
15023 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
15024 moved to a-tags.ads
15025 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
15026 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
15027 of the TSD field "Table" because this field has been renamed to
15029 (Inherit_CPP_DT): Removed.
15030 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
15031 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
15032 declarations have been moved to a-tags.ads
15033 (Check_Size): Removed.
15034 (Expanded_Name): Updated to get access to the new field of TSD
15035 containing the address of the expanded name.
15036 (Get_Access_Level/Set_Access_Level): Removed.
15037 (Get_Predefined_Prim_Op_Address): Removed.
15038 (Set_Predefined_Prim_Op_Address): Removed.
15039 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
15040 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
15041 (Set_Expanded_Name): Removed.
15042 (Inherit_DT): Removed.
15043 (Inherit_CPP_DT): Removed.
15044 (Set_RC_Offset): Removed.
15045 (Set_TSD): Removed.
15046 (Base_Address): New function that displaces "this" to point to the base
15047 of the object (that is, to point to the primary tag of the object).
15049 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15050 Javier Miranda <miranda@adacore.com>
15052 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15053 anonymous access component, do not create a master_id if type already
15054 has one, as may happen if the type is a subcomponent of a packed array
15056 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15057 Initialize_Tag): Remove code associated with the old CPP pragmas.
15058 CPP_Virtual and CPP_Vtable are no longer supported.
15059 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15060 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15061 (Freeze_Record_Type): Remove call to
15062 Init_Predefined_Interface_Primitives.
15063 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15064 code required to initialize the tags of the secondary dispatch tables.
15065 This leaves the algoritm more clear.
15066 (Init_Secondary_Tags): Add support for concurrent record types
15067 (Make_Predefined_Primitive_Specs): Code cleanup.
15068 (Predefined_Primitive_Bodies): Code cleanup.
15069 (Build_Master_Renaming): New local subprogram.
15070 (Expand_N_Full_Type_Declaration): Build the master_id associated with
15071 anonymous access to task type components.
15072 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15073 subtype indication are resolved during analysis, and must not be done
15075 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15077 2007-04-06 Geert Bosch <bosch@adacore.com>
15078 Ed Schonberg <schonberg@adacore.com>
15079 Javier Miranda <miranda@adacore.com>
15080 Bob Duff <duff@adacore.com>
15082 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15083 for conversion of a Float_Type'Truncation to integer.
15085 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15086 check if a node is an attribute that can be handled directly by the
15088 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15089 attributes that can be handled directly by the back end.
15090 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15091 use new predicate Is_Access_Protected_Subprogram_Type.
15092 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15093 and Unchecked_Union if it is generated as part of the default Output
15094 procedure for a type with default discriminants.
15095 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15096 if we are compiling under restriction No_Dispatching_Calls.
15097 (Constrained): Use Underlying_Type, in case the type is private without
15098 discriminants, but the full type has discriminants.
15099 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15100 call to Build_Get_Access_Level.
15101 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15102 interface objects requires a call to the run-time subprogram that
15103 returns the base address of the object.
15104 (Valid_Conversion): Improve error message on illegal attempt to store
15105 an anonymous access to subprogram value into a record component.
15107 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15109 (Simplify_Type_Conversion): New procedure that performs simplification
15110 of Int_Type (Float_Type'Truncation (X)).
15111 (Resolve_Type_Conversion): Call above procedure after resolving operand
15112 and before performing checks. This replaces the existing ineffective
15114 (Set_String_Literal_Subtype): When creating the internal static lower
15115 bound subtype for a string literal, use a newly created copy of the
15116 subtree representing the lower bound.
15117 (Resolve_Call): Exclude build-in-place function calls from transient
15118 scope treatment. Update comments to describe this exception.
15119 (Resolve_Equality_Op): In case of dispatching call check violation of
15120 restriction No_Dispatching_Calls.
15121 (Resolve_Call): If the call returns an array, the context imposes the
15122 component type of the array, and the function has one non-defaulted
15123 parameter, rewrite the call as the indexing of a call with a single
15124 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15126 (Resolve_Actuals): If an actual is an allocator for an access parameter,
15127 the master of the created object is the innermost enclosing statement.
15128 (Remove_Conversions): For a binary operator, check if type of second
15129 formal is numeric, to check if an abstract interpretation is present
15130 in the case of exponentiation as well.
15132 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15133 Bob Duff <duff@adacore.com>
15135 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15136 copying a parameter list in a call, set properly the First_Named_Formal
15137 and Next_Named_Formal fields in the new list and in the enclosing call.
15138 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15139 names, to ease typing in the debugger. Improve comments.
15140 (Watch_Node): New variable, intended to be set in the debugger.
15141 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15142 called when the watched node is created.
15143 (New_Node_Debugging_Output): Combined version of local procedures
15144 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15145 with a parameter so that conditional breakpoints like "if Node = 12345"
15147 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15148 Add Elist1 function
15150 2007-04-06 Thomas Quinot <quinot@adacore.com>
15151 Ed Schonberg <schonberg@adacore.com>
15152 Gary Dismukes <dismukes@adacore.com>
15154 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15155 required for a conversion between two access-to-unconstrained-array
15157 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15158 to discriminant constraints on discriminant objects. This rule must
15159 apply as well to discriminants of protected types in private components.
15160 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15161 object of a null-excluding access type then don't require the
15162 the object declaration to have an expression and don't emit a
15165 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15166 Eric Botcazou <botcazou@adacore.com>
15168 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15171 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15172 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15175 * fe.h (Compiler_Abort): Add third parameter.
15177 * misc.c (internal_error_function): Build third argument from current
15178 input location and pass it to Compiler_Abort.
15180 2007-04-06 Gary Dismukes <dismukes@adacore.com>
15182 * cstand.adb (Create_Standard): When the target's storage unit size is
15183 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15186 2007-04-06 Nicolas Roche <roche@adacore.com>
15188 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15189 absolute path can have the following form: device:/a/b. In this case
15190 '/' should be inserted between the path and the filename.
15192 2007-04-06 Olivier Hainque <hainque@adacore.com>
15193 Eric Botcazou <botcazou@adacore.com>
15195 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15196 VAR_DECL to a CONST_DECL we make for a public constant when we know the
15197 corresponding definition has created the so made visible variable.
15198 Handle anonymous access to protected subprogram.
15199 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15200 object with an address clause volatile. Re-enable original fix.
15201 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15203 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15204 associated with either the Equivalent or Root type, instead of the
15206 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15207 subtree for every field of a global record type.
15208 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15209 discriminants, invoke again variable_size on its newly computed sizes.
15211 2007-04-06 Robert Dewar <dewar@adacore.com>
15212 Thomas Quinot <quinot@adacore.com>
15213 Ed Schonberg <schonberg@adacore.com>
15214 Bob Duff <duff@adacore.com>
15216 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15217 (Next_Component_Or_Discriminant): New function and procedure
15218 (First_Index, First_Literal, Master_Id,
15219 Set_First_Index, Set_First_Literal, Set_Master_Id):
15220 Add missing Ekind assertions.
15221 (Is_Access_Protected_Subprogram_Type): New predicate.
15222 (Has_RACW): New entity flag, set on package entities to indicate that
15223 the package contains the declaration of a remote accecss-to-classwide
15225 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15226 attribute, in case the result type has controlled parts.
15227 (Requires_Overriding): Add this new flag, because "requires
15228 overriding" is subtly different from "is abstract" (see AI-228).
15229 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15230 Is_Abstract_Type. Make sure these are called only when appropriate.
15231 (Has_Pragma_Unreferenced_Objects): New flag
15233 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15234 class-wide, the tag of the right-hand side must be an exact match, not
15235 an ancestor of that of the object on left-hand side.
15236 (Move_Activation_Chain): New procedure to create the call to
15237 System.Tasking.Stages.Move_Activation_Chain.
15238 (Expand_N_Extended_Return_Statement): Generate code to call
15239 System.Finalization_Implementation.Move_Final_List at the end of a
15240 return statement if the function's result type has controlled parts.
15241 Move asserts to Build_In_Place_Formal.
15242 (Move_Final_List): New function to create the call statement.
15243 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15244 tagged type, replace generation of call to the run-time subprogram
15245 CW_Membership by call to Build_CW_Membership.
15246 (Expand_N_Return_Statement): Replace generation of call to the run-time
15247 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15248 (Expand_N_Simple_Function_Return): Replace generation of call to the
15249 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15251 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15252 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15253 access to protected operations.
15254 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15255 master and chain actual parameters to a build-in-place function call
15257 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15259 (Make_Build_In_Place_Call_In_Allocator,
15260 Make_Build_In_Place_Call_In_Anonymous_Context,
15261 Make_Build_In_Place_Call_In_Assignment,
15262 Make_Build_In_Place_Call_In_Object_Declaration): Call
15263 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15264 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15265 stubbed procedure with a null body, replace the call with a null
15266 statement without using the full inlining machinery, for efficiency
15267 and to avoid invalid values in source file table entries.
15269 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15270 renamings of calls to build-in-place functions.
15272 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15273 provides the functionality of RTE_Available to record components.
15274 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15275 to avoid undesired overloading.
15276 (Entity): New subprogram that returns the entity for the referened
15277 unit. If this unit has not been loaded, it returns Empty.
15278 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15279 Remove no longer used entities.
15280 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15281 (RE_Type_Specific_Data): New entity.
15282 (RE_Move_Any_Value): New entity.
15283 (RE_TA_A, RE_Get_Any_Type): New entities.
15284 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15285 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15286 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15287 (Entity): New subprogram that returns the entity for the referened
15288 unit. If this unit has not been loaded, it returns Empty.
15289 (RTE): Addition of a new formal that extends the search to the scopes
15290 of the record types found in the chain of the package.
15292 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15293 "abstract subprograms must be visible" message, whether or not the type
15294 is an interface; that is, remove the special case for interface types.
15295 (Analyze_Function_Return): Remove error message "return of task objects
15296 is not yet implemented" because this is now implemented.
15297 (Create_Extra_Formals): Add the extra master and activation chain
15298 formals in case the result type has tasks.
15299 Remove error message "return of limited controlled objects is not yet
15301 (Create_Extra_Formals): Add the extra caller's finalization list formal
15302 in case the result type has controlled parts.
15303 (Process_Formals): In case of access formal types there is no need
15304 to continue with the analysis of the formals if we already notified
15306 (Check_Overriding_Indicator): Add code to check overriding of predefined
15308 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15309 flags for formals that do not require them,.
15310 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15311 hidden entity is use visible or directly visible.
15312 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15313 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15314 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15315 New_Overloaded_Entity): Split Is_Abstract flag into
15316 Is_Abstract_Subprogram and Is_Abstract_Type.
15318 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15319 a return statement's finalization list to the caller's list, used for
15320 build-in-place functions with result type with controlled parts.
15321 Remove no longer used entities.
15323 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15324 longer needed, because the full type is now limited, and therefore a
15325 pass-by-reference type.
15326 (Foreign_Task_Level): New constant.
15328 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15329 move tasks from the activation chain belonging to a return statement to
15330 the one passed in by the caller, and update the master to the one
15331 passed in by the caller.
15332 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15333 of unactivated tasks, so we don't kill the ones that are being returned
15334 by a build-in-place function.
15335 (Create_Task): Ignore AI-280 for foreign threads.
15337 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15338 Robert Dewar <dewar@adacore.com>
15339 Bob Duff <duff@adacore.com>
15340 Gary Dismukes <dismukes@adacore.com>
15342 * errout.adb (Unwind_Internal_Type): Use predicate
15343 Is_Access__Protected_Subprogram_Type.
15345 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15346 (Freeze_Entity, packed array case): Do not override explicitly set
15347 alignment and size clauses.
15348 (Freeze_Entity): An entity declared in an outer scope can be frozen if
15349 the enclosing subprogram is a child unit body that acts as a spec.
15350 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15351 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15352 Remove all code for DSP option
15354 * layout.adb (Layout_Record_Type): Use First/
15355 Next_Component_Or_Discriminant
15356 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15357 to handle properly the anonymous access case.
15359 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15360 for all access attributes, because overload resolution should work the
15361 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15362 causes the error message for the ambiguous "X'Access = Y'Access" and
15363 "X'Unrestricted_Access = Y'Access" and so forth to match.
15364 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15365 now that anonymous access to protected operations have their own kind.
15366 (Resolve_Attribute): In case of dispatching call check the violation of
15367 restriction No_Dispatching_Calls.
15368 (Check_Array_Type): Check new -gnatyA array index style option
15370 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15371 attempt to derive from a synchronized tagged type.
15372 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15373 type, inherit the class-wide type already created, because it may
15374 already have been used in a self-referential anonymous access component.
15375 (Mentions_T): Recognize self-referential anonymous access components
15376 that use (a subtype of) the class-wide type of the enclosing type.
15377 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15378 Derived_Type for Prev formal on call to
15379 Check_Anonymous_Access_Components rather than Empty.
15380 (Make_Incomplete_Type_Declaration): Add test for case where the type has
15381 a record extension in deciding whether to create a class-wide type,
15382 rather than just checking Tagged_Present.
15383 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15384 to stand-alone object declarations as well as component declarations.
15385 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15386 prevent accidental overwriting when enclosing package appears in
15387 a limited_with_clause.
15388 (Array_Type_Declaration): If the component type is an anonymous access,
15389 the associated_node for the itype is the type declaration itself.
15390 (Add_Interface_Tag_Components): Modified to support concurrent
15391 types with abstract interfaces.
15392 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15393 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15394 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15395 to complete the decoration of synchronized interface types. Add also
15396 a call to Check_Abstract_Interfaces to verify the ARM rules.
15397 (Derive_Interface_Subprograms): Modified to support concurrent types
15398 with abstract interfaces.
15399 (Analyze_Subtype_Indication): Resolve the range with the given subtype
15400 mark, rather than delaying the full resolution depending on context.
15401 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15402 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15403 Array_Type_Declaration,Build_Derived_Record_Type,
15404 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15405 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15406 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15407 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15408 called only when appropriate.
15409 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15411 (Analyze_Subtype_Declaration): For an access subtype declaration, create
15412 an itype reference for the anonymous designated subtype, to prevent
15413 scope anonmalies in gigi.
15414 (Build_Itype_Reference): New utility, to simplify construction of such
15417 2007-04-06 Vincent Celier <celier@adacore.com>
15419 * errutil.adb (Initialize): Initialize warnings table, if all warnings
15420 are suppressed, supply an initial dummy entry covering all possible
15423 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15424 and start with only one, such as "-RTS=none".
15425 (Collect_Arguments): Do not check for sources outside of projects.
15426 Do not collect arguments if project is externally built.
15427 (Compile_Sources): Do nothing, not even check if the source is up to
15428 date, if its project is externally built.
15429 (Compile): When compiling a predefined source, add -gnatpg
15430 as the second switch, after -c.
15431 (Compile_Sources): Allow compilation of Annex J renames without -a
15432 (Is_In_Object_Directory): Check if the ALI file is in the object
15433 even if there is no project extension.
15434 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15435 gnatbind if the ALI file effectively exists.
15436 (Initialize): Add the directory where gnatmake is invoked in front of
15437 the path if it is invoked from a bin directory, even without directory
15438 information, so that the correct GNAT tools will be used when spawned
15439 without directory information.
15441 * makeusg.adb: Change switch -S to -eS
15442 Add lines for new switches -we, -wn and -ws
15443 Add line for new switch -p
15445 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15446 Treat_As_Error and there are warnings.
15448 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15449 -gnatww Change gnatmake switch -S to -eS
15450 (Scan_Make_Switches): Code reorganisation. Process separately multi
15451 character switches and single character switches.
15452 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15453 False when switch is not recognized by gnatmake.
15454 (Scan_Make_Switches): Set Setup_Projects True when -p or
15455 --create-missing-dirs is specified.
15457 * fname.adb (Is_Predefined_File_Name): Return True for annex J
15458 renamings Calendar, Machine_Code, Unchecked_Conversion and
15459 Unchecked_Deallocation only when Renamings_Included is True.
15461 * par.adb: Allow library units Calendar, Machine_Code,
15462 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15463 when -gnatg is not specified.
15464 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15465 there is no need to generate always a record_definition_node in case
15466 of synchronized interface types.
15467 (SIS_Entry_Active): Initialize global variable to False
15468 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15469 indicate cases where AI-447 says "not null" is legal.
15471 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15473 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15474 files with with several lines starting with the object fileb name.
15475 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15477 (Initialize): Add the directory where gprmake is invoked in front of the
15478 path, if it is invoked from a bin directory or with directory
15479 information, so that the correct GNAT tools will be used when invoked
15481 (Check_Compilation_Needed): Process correctly backslashes on Windows.
15483 * vms_data.ads: Update switches/qualifiers
15485 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15486 Thomas Quinot <quinot@adacore.com>
15489 If the array component is a discriminated record, the array aggregate
15490 is non-static even if the component is given by an aggregate with
15492 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15493 (Convert_Aggr_In_Allocator): If the allocator is for an access
15494 discriminant and the type is controlled. do not place on a finalization
15495 list at this point. The proper list will be determined from the
15497 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15498 initialize record controller if needed, before the components, to ensure
15499 that they are properly finalized.
15500 (Build_Record_Aggr_Code): For the case of an array component that has a
15501 corresponding array aggregate in the record aggregate, perform sliding
15504 2007-04-06 Javier Miranda <miranda@adacore.com>
15505 Gary Dismukes <dismukes@adacore.com>
15506 Ed Schonberg <schonberg@adacore.com>
15508 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15509 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15511 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15512 accessibility on class-wide allocators if the allocator occurs at the
15513 same scope level as the allocator's type. The check is guaranteed to
15514 succeed in that case, even when the expression originates from a
15515 parameter of the containing subprogram.
15516 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15517 under No_Dispatching_Calls restriction. During the semantic analysis
15518 we already notified such violation.
15519 (Tagged_Membership): Constant folding. There is no need to check
15520 the tag at run-time if the type of the right operand is non
15521 class-wide abstract.
15522 Replace call to Is_Ancestor by call to Is_Parent
15523 to support concurrent types with interface types.
15524 (Expand_N_Allocator): Add an assertion associated with the generation
15526 (Expand_N_Slice): Do not enable range check to nodes associated
15527 with the frontend expansion of the dispatch table.
15528 (Is_Local_Access_Discriminant): Subsidiary function to
15529 Expand_N_Allocator.
15530 (Tagged_Membership): Replace generation of call to the run-time
15531 subprogram CW_Membership by call to Build_CW_Membership.
15532 (Expand_Allocator_Expression): Replace generation of call to the
15533 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15535 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15536 initialize most the TSD components by means of an aggregate.
15537 Modify the declaration of the object containing the TSD
15538 because we now expand code that has a higher level of abstraction.
15539 The TSD has a discriminant containing the Inheritance Depth Level,
15540 value that is used in the membership test but also to fix the size
15541 of the table of ancestors.
15542 (Expand_Interface_Conversion): Insert function body at the closest place
15543 to the conversion expression, to prevent access-before-elaboration
15544 errors in the backend.
15545 Code improved to reduce the size of the dispatch table if
15546 compiling under restriction No_Dispatching_Calls plus code cleanup.
15547 Code reorganization plus removal of calls to Set_Num_Prim_Ops
15548 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15549 (Expand_Dispatching_Call): Minor code reorganization plus addition of
15550 code to return immediately if compiling under No_Dispatching_Calls
15552 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15553 CPP_Virtual and CPP_Vtable are no longer supported.
15554 (Expand_Interface_Conversion): Add missing support for interface type
15556 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15557 Is_Parent to support concurrent types with interfaces.
15558 (Init_Predefined_Interface_Primitives): Removed.
15559 (Make_Secondary_DT): Modified to support concurrent record types.
15560 (Set_All_DT_Position): Modified to support concurrent record types.
15561 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15562 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15563 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15564 with CW_Membership.
15565 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15566 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15567 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15568 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15569 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15570 (Expand_Dispatching_Call): Replace generation of call to the run-time
15571 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15572 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15574 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15575 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15576 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15577 Build_Set_Prim_Op_Address.
15578 (Get_Remotely_Callable): Subprogram removed.
15579 (Init_Predefined_Interface_Primitives): Replace generation of call to
15580 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15583 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15584 First (Parameter_Associations ()) with the call to First_Actual that
15585 returns an actual parameter expression for both named and positional
15588 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15589 check violation of restriction No_Dispatching_Calls.
15590 (Check_Controlling_Type): A formal of a tagged incomplete type is a
15591 controlling argument.
15593 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15594 First/Next_Component_Or_Discriminant
15595 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15596 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15597 specify Any_Limited_Interface, and this functionality is already
15598 provided by the function Has_Abstract_Interfaces.
15599 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15600 support concurrent types implementing interfaces.
15601 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15602 specify kind Any_Limited_Interface, and this functionality is already
15603 provided by the function Has_Abstract_Interfaces.
15604 (Remove_Side_Effects): replace Controlled_Type by
15605 CW_Or_Controlled_Type whenever the issue is related to
15606 using or not the secondary stack.
15608 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15609 P_Interface_Type_Definition to fulfill the new interface (the formal
15610 Is_Synchronized is no longer required).
15612 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15613 Update dependencies.
15615 * exp_atag.ads, exp_atag.adb: New file
15617 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15618 Bob Duff <duff@adacore.com>
15619 Cyrille Comar <comar@adacore.com>
15621 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15622 anonymous, use finalization list of enclosing dynamic scope.
15623 (Expand_N_Package_Declaration): For a library package declaration
15624 without a corresponding body, generate RACW subprogram bodies in the
15625 spec (just as we do for the task activation call).
15626 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15627 Is_Abstract_Type. Make sure these are called only when appropriate.
15628 Remove all code for DSP option
15629 (CW_Or_Controlled_Type): new subprogram.
15631 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15632 Ed Schonberg <schonberg@adacore.com>
15633 Gary Dismukes <dismukes@adacore.com>
15635 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15636 parameter. If it is set to true, return a result capped according to
15637 the global upper bound for the index of an entry family.
15638 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15639 (Build_Find_Body_Index): Adjust for above change.
15640 (Entry_Index_Expression): Likewise.
15641 (Is_Potentially_Large_Family): New function extracted from...
15642 (Collect_Entry_Families): ...here. Call it to detect whether the family
15643 is potentially large.
15644 (Build_Entry_Count_Expression): If the family is potentially large, call
15645 Family_Size with 'Cap' set to true.
15646 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15647 a protected version of an operation declared in the private part of
15648 a protected object, because they may be invoked through a callback.
15649 (Set_Privals): If the type of a private component is an anonymous access
15650 type, do not create a new itype for each protected body.
15651 If the body of a protected operation creates
15652 controlled types (including allocators for class-widetypes), the
15653 body of the corresponding protected subprogram must include a
15655 (Build_Activation_Chain_Entity): Build the chain entity for extended
15657 (Type_Conformant_Parameters): Use common predicate Conforming_Types
15658 to determine whether operation overrides an inherited primitive.
15659 (Build_Wrapper_Spec): Add code to examine the parents while looking
15660 for a possible overriding candidate.
15661 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15662 hold an actual parameter value since its initialization is separated
15663 from the the declaration. Prevents errors on null-excluding access
15666 2007-04-06 Thomas Quinot <quinot@adacore.com>
15667 Pablo Oliveira <oliveira@adacore.com>
15669 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15670 Do an Unchecked_Conversion to handle the passage from the Underlying
15671 Type to the Base Type when calling Build_To_Any_Call and
15672 Build_From_Any_Call.
15673 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15674 E_Constant, depending upon Variable formal.
15675 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15676 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15677 parameter that requires an extra constrained parameter, declare
15678 temporary for actual as a variable, not a constant.
15679 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15680 the unit being compiled is the one that contains the stub type.
15681 Change primitive operation name for the RACW associated with a RAS
15682 from Call to _Call so it cannot clash with any legal identifier.
15683 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15685 (Append_RACW_Bodies): New subprogram.
15686 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15687 Add_Receiving_Stubs_To_Declarations functions.
15688 When expanding a package body, this list correspond to the
15689 statements in the HSS at the end of the pacakge.
15690 When expanding a package spec, this list correspond to the
15692 (Add_Receiving_Stubs_To_Declarations): Append the function
15693 registering the receiving stubs at the end of the 'Stmts' list.
15694 (RCI_Package_Locator): Pass the new Version generic formal when
15695 instantiating a RCI_Locator package.
15696 (Build_From_Any_Function): To compute the High bound for an
15697 unconstrained array actual, we add the Low bound with the length.
15698 Thus we must convert the low bound and the length to an appropriate
15699 type before doing the sum.
15700 (Build_Subprogram_Receiving_Stubs, PolyORB):
15701 * Retrieve the extra formals parameters at the
15702 end of the parameter stream.
15703 * Use Move_Any_Value to write back out parameters
15704 after executing the request as it is more efficient
15705 than Copy_Any_Value.
15706 * Build the any containing Extra Formals with the
15707 appropriate typecode.
15708 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15709 empty Component_List.
15710 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15711 the tree the declaration for an object that serves as actual parameter
15712 in server-side stubs.
15713 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15714 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15715 Use Build_Actual_Object_Declaration to prepare the actuals.
15716 (Add_Parameter_To_NVList): Set the parameter mode to In for
15717 Extra Constrained Parameters.
15718 (Build_General_Calling_Stubs): Set the parameter type to boolean for
15719 Extra Constrained parameters.
15720 (Build_To_Any_Function, Build_From_Any_Function,
15721 Built_TypeCode_Function): When Typ is implicit, call the correct
15722 function with the first not implicit parent type.
15723 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15724 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15725 typecode from the Etype. Therefore we retrieve the correct typecode
15726 with a call to Get_Any_Type.
15727 (Copy_Specification): Do controlling formal type substitution based on
15728 Is_Controlling_Formal flag, instead of caller-provided object type.
15729 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15730 a RACW primitive operation, we might get a subprogram declaration for an
15731 ancestor of the RACW designated type (not for the designated type
15732 itself), in the case where this operation is inherited. In this case we
15733 have no easy means of determining the original tagged type for which
15734 the primitive was declared, so instead we now rely on
15735 Copy_Specification to use the Is_Controlling_Formal flag to determine
15736 which formals require type substitution.
15738 2007-04-06 Robert Dewar <dewar@adacore.com>
15739 Ed Schonberg <schonberg@adacore.com>
15741 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15742 GNAT.Current_Exception are not allowed if pragma Restrictions
15743 (No_Exception_Propagation) is set and in any case make the associated
15744 handler unsuitable as a target for a local raise statement.
15745 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15746 run-time subprogram CW_Membership by call to Build_CW_Membership.
15747 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15748 by a function call, a temporary must be created before expanding the
15749 Constructor_Call itself, to prevent out-of-order elaboration in the
15750 back-end when stack checking is enabled..
15752 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15754 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15755 result are the bounds of the left operand, not the right.
15757 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15760 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15761 discriminant defaults.
15762 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15763 (Make_Component_List_Attributes): Ditto.
15765 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15766 Bob Duff <duff@adacore.com>
15768 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15769 an association with a box as providing a value even though the
15770 initialization procedure for the type is not available.
15771 (Resolve_Record_Aggregate): Check that a choice of an association with a
15772 box corresponds to a component of the type.
15773 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15774 Is_Abstract_Subprogram and Is_Abstract_Type.
15776 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15779 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15780 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15781 called only when appropriate.
15783 2007-04-06 Olivier Hainque <hainque@adacore.com>
15785 * g-alleve.ads (Low Level Vector type definitions): Map each to the
15786 associated vector view instead of all to the unsigned char view.
15788 * g-altcon.adb (Generic_Conversions): New internal generic package,
15789 offering facilities for all the Vector/View conversion routines
15790 implemented by this unit.
15791 (To_View/To_Vector - all versions): Reimplemented in a systematic
15792 manner, using the internal Generic_Conversions facilities.
15794 2007-04-06 Pascal Obry <obry@adacore.com>
15796 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15798 (Create): Free the source string before storing the new one.
15800 2007-04-06 Vincent Celier <celier@adacore.com>
15802 * g-debpoo.adb (Validity): New package with a complete new
15803 implementation of subprograms Is_Valid and Set_Valid.
15804 (Is_Valid): Move to local package Validity
15805 (Set_Valid): Move to local package Validity
15807 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15808 Pablo Oliveira <oliveira@adacore.com>
15810 * g-expect.adb (Get_Command_Output): When expanding the output buffer
15811 we must ensure that there is enough place for the new data we are going
15814 2007-04-06 Thomas Quinot <quinot@adacore.com>
15816 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15819 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15820 Vincent Celier <celier@adacore.com>
15822 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15823 (Stack_String): Add this String that contains the name of the Stack
15824 package in the project file.
15825 (Packages_To_Check_By_Stack): Add this list that contains the packages
15826 to be checked by gnatstack, which are the naming and the stack packages.
15827 (Check_Files): If no .ci files were specified for gnatstack we add all
15828 the .ci files belonging to the projects, including binder generated
15830 (Non_VMS_Usage): Document that gnatstack accept project file switches.
15831 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15832 Add gnatstack to the list of commands that use project file related
15833 switches, and get the single attribute Switches from the stack package
15834 in a project file when calling gnatstack. Parse the -U flag for
15835 processing files belonging to all projects in the project tree.
15836 Remove all processing for command Setup
15838 * prj-attr.adb: Add new package Stack with single attribute Switches
15840 * vms_conv.ads (Command_Type): Add command Stack.
15841 Move to body declarations that are only used in the body: types Item_Id,
15842 Translation_Type, Item_Ptr, Item and its subtypes.
15844 * vms_conv.adb: (Initialize): Add data for new command Stack.
15845 Add declarations moved from the spec: types Item_Id, Translation_Type,
15846 Item_Ptr, Item and its subtypes.
15847 (Cargs_Buffer): New table
15848 (Cargs): New Boolean global variable
15849 (Process_Buffer): New procedure to create arguments
15850 (Place): Put character in table Buffer or Cargs_Buffer depending on the
15852 (Process_Argument): Set Cargs when processing qualifiers for GNAT
15854 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15855 empty, for table Cargs_Buffer.
15856 (Initialize): Remove component Setup in Command_List
15858 2007-04-06 Vincent Celier <celier@adacore.com>
15860 * gprep.adb (Process_Files.Process_One_File): Use full file name when
15861 issuing pragma Source_Reference.
15863 2007-04-06 Emmanuel Briot <briot@adacore.com>
15865 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15866 [[:xdigit:]] character class.
15867 Also raise an exception when an invalid character class is used.
15869 2007-04-06 Pascal Obry <obry@adacore.com>
15871 * i-cstrea.ads: (fopen): Add encoding parameter.
15873 Change reference from a-sysdep.c to sysdep.c in comment.
15874 Update copyright notice.
15875 This set of patch add support for the encoding form parameter.
15877 * mingw32.h (S2WSU): New macro to convert from a string to a
15878 wide-string using the UTF-8 encoding. The S2WS macro supports now only
15879 standard 8bits encoding.
15880 (WS2SU): As above but converting from wide-sring to string.
15881 This is needed as it is necessary to have access to both versions in the
15882 runtime for the form parameter encoding support.
15883 This set of patch add support for the encoding form parameter.
15884 (S2WS): Improve implementation to handle cases where the filename is not
15885 UTF-8 encoded. In this case we default to using the current code page
15886 for the conversion.
15888 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15889 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15890 the constants defined in adaint.h.
15891 (fopen): Add encoding parameter.
15894 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15895 encoding. This is needed for the Reset routine (freopen low level-call).
15897 * s-fileio.adb (Open): Decode encoding form parameter and set the
15898 corresponding encoding value into AFCB structure.
15899 (Reset): Pass the encoding value to freopen.
15900 (Close): Move the call to Lock_Task to the beginning of the procedure.
15902 2007-04-06 Geert Bosch <bosch@adacore.com>
15903 Robert Dewar <dewar@adacore.com>
15905 * i-fortra.ads: Add Double_Complex type.
15907 * impunit.adb: (Is_Known_Unit): New function
15908 Add Gnat.Byte_Swapping
15910 Add new Ada 2005 units
15911 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15912 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15913 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15914 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15916 * impunit.ads (Is_Known_Unit): New function
15918 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15919 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15920 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15921 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15922 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15923 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15926 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15928 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15930 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15931 Arnaud Charlet <charlet@adacore.com>
15933 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15934 __gnat_adjust_context_for_raise.
15935 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15936 implementation of floating point operations as native x86 targets.
15937 So the FPU should be initialized in the same way using finit. Fix
15938 floating point operations accuracy issues.
15939 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15940 member in struct sigaction, so as to avoid warning for incompatible
15943 2007-04-06 Serguei Rybin <rybin@adacore.com>
15945 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15946 switches from previously loaded tree
15948 2007-04-06 Thomas Quinot <quinot@adacore.com>
15950 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15951 cases where a given dependency has a body or not.
15952 (Write_With_File_Names): New subprogram, common code for the two cases
15955 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15956 Javier Miranda <miranda@adacore.com>
15958 * lib-xref.ads, lib-xref.adb:
15959 Modify the loop that collects type references, to include interface
15960 types that the type implements. List each of these interfaces when
15961 building the entry for the type.
15962 (Generate_Definition): Initialize component Def and Typ of new entry
15963 in table Xrefs, to avoid to have these components unitialized.
15964 (Output_References): Split Is_Abstract flag into
15965 Is_Abstract_Subprogram and Is_Abstract_Type.
15966 (Generate_Reference): Add barrier to do not generate the warning
15967 associated with Ada 2005 entities with entities generated by the
15970 2007-04-06 Robert Dewar <dewar@adacore.com>
15971 Arnaud Charlet <charlet@adacore.com>
15972 Vincent Celier <celier@adacore.com>
15974 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15975 Update 'Exception Handling Control' chapter which was outdated.
15976 Minor fix to documentation of -gnatwq
15977 Remove section "Adapting the Run Time to a New C++ Compiler" because
15978 it is now obsolete.
15979 Add passage on need of -nostart-files in some non-ada-main cases.
15980 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15981 Update documentation about Interfacing with C++
15982 Add documentation for new gnatmake switch -p
15983 Add missing protocol part in URLs.
15985 Document pragma Compile_Time_Error
15986 Add documentation for Object_Size indicating that stand alone
15987 objects can have a larger size in some cases.
15988 Add node for GNAT.Byte_Swapping, GNAT.SHA1
15989 Update reference to the Ravenscar profile.
15990 Document pragma Unreferenced_Objects
15992 * gnat-style.texi: Fix typo
15994 2007-04-06 Vincent Celier <celier@adacore.com>
15996 * mlib.adb (Building_Library): Only output "building a library..." in
15999 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16000 files in verbose mode.
16002 * mlib-utl.adb (Ar): Only output the first object files when not in
16004 (Gcc): Do not display all the object files if not in verbose mode, only
16007 2007-04-06 Robert Dewar <dewar@adacore.com>
16009 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
16010 it no longer destroys the contents of Name_Buffer or Name_Len and
16011 non-standard and invalid names are handled better.
16012 (Get_Decoded_Name_String): Improve performance by using
16013 Name_Has_No_Encodings flag in the name table.
16014 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
16015 Used for debugging printouts.
16017 2007-04-06 Robert Dewar <dewar@adacore.com>
16018 Javier Miranda <miranda@adacore.com>
16019 Bob Duff <duff@adacore.com>
16021 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
16022 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16023 there is no need to generate always a record_definition_node in case
16024 of synchronized interface types.
16025 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
16026 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
16027 illegal in Ada 95, in cases where it is legal. Change the warnings to
16028 errors in other cases. Don't give the error unless the "not null"
16029 parses properly. Correct the source position at which the error occurs.
16030 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
16031 P_Null_Exclusion, to suppress "not null" warnings.
16032 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
16033 associated goto statements.
16035 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
16038 * scans.ads (Type_Token_Location): New flag
16040 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
16041 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16042 P_Null_Exclusion, to suppress "not null" warnings.
16044 2007-04-06 Robert Dewar <dewar@adacore.com>
16045 Javier Miranda <miranda@adacore.com>
16046 Bob Duff <duff@adacore.com>
16047 Vincent Celier <celier@adacore.com>
16049 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16050 (Extensions_Allowed): No longer sets Ada_Version
16051 Entry for pragma Unreferenced_Objects
16053 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16054 system.tasking if pragma priority used in a procedure
16055 (Analyze_Pragma, case Warning): Handle dot warning switches
16056 (Process_Compile_Time_Warning_Or_Error): New procedure
16057 (Analyze_Pragma): Add processing for Compile_Time_Error
16058 Add support for extra arguments External_Name and Link_Name.
16059 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16060 (Process_Import_Or_Interface): Add support for the use of pragma Import
16062 (Extensions_Allowed): No longer affects Ada_Version
16063 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16064 Is_Abstract_Type. Make sure these are called only when appropriate.
16065 Add processing for pragma Unreferenced_Objects
16067 * snames.h, snames.ads, snames.adb: Add entry for pragma
16069 Add new standard name Minimum_Binder_Options for new gprmake
16070 Add new standard names for gprmake: Archive_Suffix,
16071 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16072 Library_Support, Library_Version_Options,
16073 Shared_Library_Minimum_Options,
16074 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16075 Change Name_Call to Name_uCall so that it cannot clash with a legal
16077 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16078 Append C_Plus_Plus to convention identifiers as synonym for CPP
16079 Add new standard names Stack and Builder_Switches
16080 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16081 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16082 Run_Path_Option, Toolchain_Version.
16083 Entry for pragma Unreferenced_Objects
16085 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16086 switches, without repetition of "eD". Make sure that last character of
16087 -gnatep= switch is not taken as -gnat switch character.
16088 Complete rewrite of circuit for handling saving compilation options
16089 Occasioned by need to support dot switchs for -gnatw, but cleans up
16091 -gnatX does not affect Ada_Version
16092 Include -gnatyA in -gnatg style switches
16094 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16095 warnings on return objects.
16096 (Warn_On_Useless_Assignment): Exclude warnings on return objects
16097 (Set_Dot_Warning_Switch): New procedure
16098 (Check_References): Add missing case of test for
16099 Has_Pragma_Unreferenced_Objects
16100 (Output_Unreferenced_Messages): Implement effect of new pragma
16101 Unreferenced_Objects, remove special casing of limited controlled
16104 2007-04-06 Vincent Celier <celier@adacore.com>
16106 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16107 the default project path, initially done during elaboration of the
16109 If the prefix returned by Sdefault is null, get the prefix from a call
16110 to Executable_Prefix_Path.
16111 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16114 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16115 canonical directory name to open the directory from which files are
16117 (Record_Other_Sources): Idem.
16118 (Locate_Directory): Add the possibility to create automatically missing
16119 directories when Setup_Projects is True.
16120 Call Locate_Directory so that the directory will be created when
16121 Setup_Projects is True, for object dir, library dir, library ALI dir,
16122 library source copy dir and exec dir.
16124 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16127 2007-04-06 Robert Dewar <dewar@adacore.com>
16129 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16130 Use First/Next_Component_Or_Discriminant
16131 (Analyze_Record_Representation_Clause):
16132 Use First/Next_Component_Or_Discriminant
16133 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16134 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16135 definition if type is unconstrained.
16136 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16137 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16138 Is_Abstract_Subprogram and Is_Abstract_Type.
16139 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16141 * repinfo.adb (List_Record_Info): Use First/
16142 Next_Component_Or_Discriminant.
16144 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16147 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16148 Include -gnatyA in default switches
16150 * opt.ads: (Warn_On_Non_Local_Exception): New flag
16151 (Warn_On_Reverse_Bit_Order): New flag
16152 (Extensions_Allowed): Update the documentation.
16153 (Warn_On_Questionable_Missing_Parens): Now on by default
16155 * usage.adb: Add documentation of -gnatw.x/X switches
16156 Document new -gnatyA style switch
16157 -gnatq warnings are on by default
16159 2007-04-06 Ed Falis <falis@adacore.com>
16161 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16162 full word is no longer compared twice.
16164 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16166 * sem_ch10.adb (Install_Limited_Context_Clauses.
16167 Expand_Limited_With_Clause): Use a new copy of selector name in the
16168 call to Make_With_Clause. This fixes the tree structure for ASIS
16169 purposes. Nothing is changed in the compiler behaviour.
16170 (Process_Body_Clauses): Handle properly use clauses whose prefix is
16171 a package renaming.
16172 (Install_Limited_With_Clauses): Do not install non-limited view when it
16173 is still incomplete.
16175 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16176 Gary Dismukes <dismukes@adacore.com>
16178 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16179 when capturing size information, instead of base type, which for a
16180 formal array type will be the unconstrained type.
16181 (Analyze_Formal_Object_Declaration): Add check for illegal default
16182 expressions for a formal in object of a limited type.
16183 (Instantiate_Object): Ditto.
16184 (Check_Formal_Package_Instance): Skip entities that are formal objects,
16185 because they were defaulted in the formal package and no check applies
16187 (Check_Formal_Package_Instance): Extend conformance check to other
16188 discrete types beyond Integer.
16189 (Process_Default): Copy directly the unmatched formal. A generic copy
16190 has already been performed in Analyze_Formal_Package.
16191 (Analyze_Associations): If a formal subprogram has no match, check for
16192 partial parametrization before looking for a default, to prevent
16194 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16195 not set the instantiation environment before analyzing the actuals.
16196 Fixes regression on 8515-003 with implementation of AI-133.
16197 Set_Instance_Env checks whether the generic unit is a predefined
16198 unit, in which case the instance must be analyzed with the latest Ada
16199 mode. This setting must take place after analysis of the actuals,
16200 because the actuals must be analyzed and frozen in the Ada mode extant
16201 outside of the current instantiation.
16202 (Save_Env, Restore_Env): Preserve and restore the configuration
16203 parameters so that predefined units can be compiled in the proper Ada
16205 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16206 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16207 and Is_Abstract_Type.
16208 (Analyze_Formal_Package): For better error recovery, Add exception
16209 handler to catch Instantion_Error, which can be raised in
16210 Analyze_Associations
16212 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16213 Bob Duff <duff@adacore.com>
16214 Gary Dismukes <dismukes@adacore.com>
16216 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16217 prefix type is a discriminated subtype of the type of the formal.
16218 (Analyze_Allocator): Collect all coextensions regardless of the context.
16219 Whether they can be allocated statically is determined in exp_ch4.
16220 (Analyze_Selected_Component): If the prefix is a limited view and the
16221 non-limited view is available, use the non-limited one.
16222 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16223 therefore illegal), suggest a qualified expression rather than a type
16224 conversion, because a type conversion would be illegal in this context.
16225 (Anayze_Allocator): Trace recursively all nested allocators so that all
16226 coextensions are on the corresponding list for the root. Do no mark
16227 coextensions if the root allocator is within a declaration for a stack-
16228 allocated object, because the access discriminants will be allocated on
16230 (Analyze_Call): Remove restriction on calls to limited functions for the
16231 cases of generic actuals for formal objects, defaults for formal objects
16232 and defaults for record components.
16233 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16234 element list. Their expansion is delayed until the enclosing allocator
16235 is processed and its finalization list constructed.
16236 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16237 for an operation with the given name among the primitive operations of
16238 the corresponding record type.
16239 (Analyze_Selected_Component): If the prefix is a task type that
16240 implements an interface, and there is no entry with the given name,
16241 check whether there is another primitive operation (e.g. a function)
16243 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16244 properly the indexing of a function call written in prefix form, where
16245 the function returns an array type, and all parameters of the function
16246 except the first have defaults.
16247 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16248 the original operands, rather than relocating them, for efficiency and
16249 to work properly when an operand is overloaded.
16250 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16251 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16252 (Analyze_Selected_Component): If the prefix is a private extension, only
16253 scan the visible components, not those of the full view.
16254 (Try_Primitive_Operation): If the operation is a procedure, collect all
16255 possible interpretations, as for a function, because in the presence of
16256 classwide parameters several primitive operations of the type can match
16257 the given arguments.
16259 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16260 Robert Dewar <dewar@adacore.com>
16262 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16263 tag-indeterminate call to an abstract function, when the left-hand side
16265 (Analyze_Loop_Statement): Improve detection of infinite loops
16267 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16268 Thomas Quinot <quinot@adacore.com>
16270 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16271 out of Analyze_Package_Declaration, because processing must be applied
16272 to package bodies as well, for deferred constants completed by pragmas.
16273 (Analyze_Package_Declaration): When the package declaration being
16274 analyzed does not require an explicit body, call Check_Completion.
16275 (May_Need_Implicit_Body): An implicit body is required when a package
16276 spec contains the declaration of a remote access-to-classwide type.
16277 (Analyze_Package_Body): If the package contains RACWs, append the
16278 pending subprogram bodies generated by exp_dist at the end of the body.
16279 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16280 Is_Abstract_Subprogram and Is_Abstract_Type.
16281 (Preserve_Full_Attributes): The full entity list is not an attribute
16282 that must be preserved from full to partial view.
16284 * sem_dist.adb (Add_RAS_Dereference_TSS):
16285 Change primitive name to _Call so it cannot clash with any legal
16286 identifier, and be special-cased in Check_Completion.
16287 Mark the full view of the designated type for the RACW associated with
16288 a RAS as Comes_From_Source to get proper view switching when installing
16289 private declarations.
16290 Provite a placeholder nested package body along with the nested spec
16291 to have a place for Append_RACW_Bodies to generate the calling stubs
16292 and stream attributes.
16294 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16295 Robert Dewar <dewar@adacore.com>
16297 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16298 that is a limited view, check the non-limited view if available.
16299 (Undefined): Refine error message for missing with of Text_IO
16300 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16301 to distinguish real missing with cases.
16302 Fix format of all missing with messages
16303 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16304 renaming as body when renamed entity is abstract.
16306 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16307 Javier Miranda <miranda@adacore.com>
16309 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16310 predicate recursive, to handle complex expressions on literals whose
16311 spurious ambiguity comes from the abstract interpretation of some
16313 (Interface_Present_In_Ancestor): Add support to concurrent record
16315 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16316 Is_Abstract_Subprogram and Is_Abstract_Type.
16318 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16319 Javier Miranda <miranda@adacore.com>
16321 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16322 dereference of a local object R created as a reference to another
16323 object O, use the access level of O.
16324 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16325 rather than local Same_Formal_Type, to check whether protected operation
16326 overrides an inherited one.
16327 (Same_Formal_Type): New predicate, used when matching signatures of
16328 overriding synchronized operations, to handle the case when a formal
16329 has a type that is a generic actual.
16330 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16331 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16332 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16333 syntactic ambiguities involving indexing of function calls that return
16335 (Abstract_Interface_List): New subprogram that returns the list of
16336 abstract interfaces associated with a concurrent type or a
16337 concurrent record type.
16338 (Interface_Present_In_Parent): New subprogram used to check if a
16339 given type or some of its parents implement a given interface.
16340 (Collect_Abstract_Interfaces): Add support for concurrent types
16341 with interface types.
16342 (Has_Abstract_Interfaces): Add support for concurrent types with
16344 (Is_Parent): New subprogram that determines whether E1 is a parent
16345 of E2. For a concurrent type its parent is the first element of its
16346 list of interface types; for other types this function provides the
16347 same result than Is_Ancestor.
16348 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16349 (Collect_Synchronized_Interfaces): Removed because the subprogram
16350 Collect_Abstract_Interfaces provides this functionality.
16351 (Collect_Abstract_Interfaces): Minor update to give support to
16352 concurrent types and thus avoid undesired code duplication.
16353 (Get_Subprogram_Entity): Handle entry calls.
16354 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16356 (Enter_Name): Do not give -gnatwh hiding warning for record component
16357 entities, they never result in hiding.
16359 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16360 Robert Dewar <dewar@adacore.com>
16362 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16363 to chain nested components that are allocators for access discriminants
16364 of the enclosing object.
16365 Add N_Push and N_Pop nodes
16366 New field Exception_Label added
16367 (Local_Raise_Statements): New field in N_Exception_Handler_Node
16368 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16369 (Is_Coextension): New flag for allocators, to mark allocators that
16370 correspond to access discriminants of dynamically allocated objects.
16371 (N_Block_Statement): Document the fact that the corresponding entity
16372 can be an E_Return_Statement.
16373 (Is_Coextension): New flag for allocators.
16374 Remove all code for DSP option
16376 * sprint.ads, sprint.adb: Display basic information for class_wide
16377 subtypes. Add handling of N_Push and N_Pop nodes
16379 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16381 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16382 before propagating exception.
16384 2007-04-06 Olivier Hainque <hainque@adacore.com>
16386 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16387 an address always within the call instruction from a return address.
16389 2007-04-06 Olivier Hainque <hainque@adacore.com>
16390 Eric Botcazou <botcazou@adacore.com>
16392 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16393 expression with a COMPOUND_EXPR including the call instead of emitting
16394 the call directly here.
16395 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16396 high bound is constant and the slice is empty. Tidy.
16397 (tree_transform, case N_Op_Not): Handle properly the case where the
16398 operation applies to a private type whose full view is a modular type.
16399 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16400 Address_Clause, use the associated Expression as the GNAT tree
16401 representing the choice value to ensure the corresponding GCC tree is
16402 of the proper kind.
16403 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16404 instead of just the operands, as the base GCC stabilize_reference does.
16405 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16406 requested; otherwise fail.
16407 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16409 2007-04-06 Thomas Quinot <quinot@adacore.com>
16411 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16412 implementation of UI_Div.
16413 (UI_Div): Reimplement as a call to UI_Div_Rem.
16414 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16415 remainder, avoiding the cost of a multiplication and a subtraction.
16416 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16417 provides both quotient and remainder in a single computation.
16418 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16419 functions for uint.
16420 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16421 is undefined if the given n is not inversible.
16423 2007-04-06 Olivier Hainque <hainque@adacore.com>
16425 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16426 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16429 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16430 Olivier Hainque <hainque@adacore.com>
16432 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16433 when updating the contents of the old pointer to an unconstrained array.
16434 (end_subprog_body): Set error_gnat_node to Empty.
16435 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16436 (unchecked_convert): For subtype to base type conversions, require that
16437 the source be a subtype if it is an integer type.
16438 (builtin_decls): New global, vector of available builtin functions.
16439 (gnat_pushdecl): Add global builtin function declaration nodes to the
16440 builtin_decls list.
16441 (gnat_install_builtins): Adjust comments.
16442 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16443 calling gnat_pushdecl, so that it knows when it handed a builtin
16444 function declaration node.
16445 (builtin_decl_for): Search the builtin_decls list.
16447 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16449 * s-stchop-vxworks.adb:
16450 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16452 2007-04-06 Robert Dewar <dewar@adacore.com>
16453 Arnaud Charlet <charlet@adacore.com>
16455 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16457 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16459 Add mention of -Sev (set initialize_scalars option from environment
16460 variable at run time) in gnatbind usage message.
16462 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16464 * fname-uf.ads: Minor comment fix
16466 * osint.ads: Change pragma Elaborate to Elaborate_All
16468 * par-load.adb: Add documentation.
16470 * sem_cat.ads, sem_cat.adb: Minor code reorganization
16472 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16474 * s-secsta.ads: Extra comments
16476 * s-soflin.ads: Minor comment fixes
16478 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16480 * s-wchcon.ads: Minor comment addition
16482 * treepr.adb: Minor change in message
16483 (Print_Name,Print_Node): Make these debug printouts more robust: print
16484 "no such..." instead of crashing on bad input.
16486 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
16488 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16489 instead of gnat_signed_or_unsigned_type.
16490 * utils.c (gnat_signed_or_unsigned_type): Remove.
16491 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16492 * gigi.h (gnat_signed_or_unsigned_type): Remove
16494 2007-03-09 Roger Sayle <roger@eyesopen.com>
16496 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16497 fold with the result of buildN.
16498 * decl.c (gnat_to_gnu_entity): Likewise.
16499 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16500 * utils.c (finish_record_type, merge_sizes, max_size, convert):
16502 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16503 nonbinary_modular_operation, build_binary_op, build_unary_op,
16504 build_cond_expr): Likewise.
16506 * utils.c (convert): Use fold_build1 when casting values to void.
16507 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16508 fold_convert instead of convert when appropriate.
16510 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16512 * Make-lang.in: Add install-pdf target as copied from
16513 automake v1.10 rules.
16515 2007-02-28 Andreas Schwab <schwab@suse.de>
16517 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16518 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16519 (doc/gnat-style.info): Likewise.
16521 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
16523 * gnat-style.texi: Standardize title page.
16524 * gnat_rm.texi: Likewise.
16525 * gnat_ugn.texi: Likewise.
16527 2007-02-25 Mark Mitchell <mark@codesourcery.com>
16529 * decl.c (annotate_value): Adjust for refactoring of tree_map
16532 2007-02-24 Mark Mitchell <mark@codesourcery.com>
16534 * decl.c (annotate_value): Adjust for refactoring of tree_map
16537 2007-02-21 Ed Schonberg <schonberg@adacore.com>
16540 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16541 untagged derived type, add hidden components to keep discriminant
16542 layout consistent, when a given discriminant of the derived type
16543 constraints several discriminants of the parent type.
16545 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
16546 Sandra Loosemore <sandra@codesourcery.com>
16548 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
16549 build the call expression.
16550 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16551 * utils.c (max_size) <tcc_exceptional>: Delete.
16552 <tcc_vl_exp>: New case.
16553 <tcc_expression>: Delete CALL_EXPR subcase.
16554 (build_global_cdtor): Use build_call_nary instead of build3.
16555 * utils2.c (build_call_1_expr): Likewise.
16556 (build_call_2_expr): Likewise.
16557 (build_call_0_expr): Likewise.
16558 (build_call_alloc_dealloc): Likewise.
16560 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16562 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16563 get_action_description_for): Replace _Unwind_Word with _uleb128_t
16564 and _Unwind_SWord with _sleb128_t.
16566 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
16568 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16569 * decl.c: Include gt-ada-decl.h.
16570 (annotate_value_cache): New.
16571 (annotate_value): Use it instead of TREE_COMPLEXITY.
16573 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
16575 * misc.c, utils2.c: Fix comment typos.
16577 2007-01-24 Roger Sayle <roger@eyesopen.com>
16579 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16580 TREE_CONSTANT_OVERFLOW.
16581 (allocatable_size_p, annotate_value): Likewise.
16582 * trans.c (gnat_to_gnu): Likewise.
16583 * utils.c (unchecked_convert): Likewise.
16584 * utils2.c (build_simple_component_ref): Likewise.
16586 2007-01-23 Richard Guenther <rguenther@suse.de>
16589 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16590 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16591 (gnatboot3): Likewise.
16592 (GNATBIND): Do not define.
16593 * Makefile.in (GNATBIND): Do not define.
16595 2007-01-08 Richard Guenther <rguenther@suse.de>
16597 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16598 * trans.c (gnat_to_gnu): Likewise.
16600 2006-12-07 Geoffrey Keating <geoffk@apple.com>
16602 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16603 * adaint.c: Likewise.
16605 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
16607 Merge from gimple-tuples-branch:
16608 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
16610 * ada-tree.h (lang_tree_node): Handle gimple tuples.
16611 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16612 GIMPLE_MODIFY_STMT.
16614 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
16616 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16617 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16620 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
16623 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16624 if the initializer takes into account the padding.
16626 2006-11-11 Richard Guenther <rguenther@suse.de>
16628 * trans.c (maybe_stabilize_reference): Remove handling of
16629 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16631 2006-11-05 Arnaud Charlet <charlet@adacore.com>
16634 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16635 (To_Target_Priority): New function.
16637 2006-10-31 Robert Dewar <dewar@adacore.com>
16639 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16640 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16641 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16642 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16643 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16644 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16645 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16646 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16647 a-szbzha.adb: Minor reformatting. Fix header.
16649 * a-numaux-x86.adb: Add parentheses for use of unary minus
16650 * a-ngcefu.adb: Supply missing parentheses for unary minus
16651 * a-ngcoty.adb: Add parens for use of unary minus
16652 * a-ngelfu.adb: Add missing parens for unary minus
16653 * a-tifiio.adb: Add parentheses for uses of unary minus
16655 2006-10-31 Robert Dewar <dewar@adacore.com>
16656 Bob Duff <duff@adacore.com>
16657 Ed Schonberg <schonberg@adacore.com>
16659 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16660 with multiplying operator.
16661 (Expected_Type_Is_Any_Real): New function to determine from the Parent
16662 pointer whether the context expects "any real type".
16663 (Resolve_Arithmetic_Op): Do not give an error on calls to the
16664 universal_fixed "*" and "/" operators when they are used in a context
16665 that expects any real type. Also set the type of the node to
16666 Universal_Real in this case, because downstream processing requires it
16667 (mainly static expression evaluation).
16668 Reword some continuation messages
16669 Add some \\ sequences to continuation messages
16670 (Resolve_Call): Refine infinite recursion case. The test has been
16671 sharpened to eliminate some false positives.
16672 Check for Current_Task usage now includes entry barrier, and is now a
16673 warning, not an error.
16674 (Resolve): If the call is ambiguous, indicate whether an interpretation
16675 is an inherited operation.
16676 (Check_Aggr): When resolving aggregates, skip associations with a box,
16677 which are priori correct, and will be replaced by an actual default
16678 expression in the course of expansion.
16679 (Resolve_Type_Conversion): Add missing support for conversion from
16680 a class-wide interface to a tagged type. Minor code cleanup.
16681 (Valid_Tagged_Converion): Add support for abstact interface type
16683 (Resolve_Selected_Component): Call Generate_Reference here rather than
16684 during analysis, and use May_Be_Lvalue to distinguish read/write.
16685 (Valid_Array_Conversion): New procedure, abstracted from
16686 Valid_Conversion, to incorporate accessibility checks for arrays of
16687 anonymous access types.
16688 (Valid_Conversion): For a conversion to a numeric type occurring in an
16689 instance or inlined body, no need to check that the operand type is
16690 numeric, since this has been checked during analysis of the template.
16691 Remove legacy test for scope name Unchecked_Conversion.
16693 * sem_res.ads: Minor reformatting
16695 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16696 (PE_Current_Task_In_Entry_Body): New exception code
16697 (SE_Restriction_Violation): Removed, not used
16699 * a-except.ads: Update comments.
16701 * types.h, types.ads: Add definition for Validity_Check
16702 (PE_Current_Task_In_Entry_Body): New exception code
16703 (SE_Restriction_Violation): Removed, not used
16705 2006-10-31 Thomas Quinot <quinot@adacore.com>
16707 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16710 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16711 Jose Ruiz <ruiz@adacore.com>
16713 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16714 part of Ada.Calendar: all subprogram raise Unimplemented.
16715 (Split_W_Offset): Temp function body, raising Unimplemented
16717 * a-calend.ads, a-calend-vms.ads:
16718 Add imported variable Invalid_TZ_Offset used to designate targets unable
16719 to support time zones.
16720 (Unimplemented): Temporary function raised by the body of new
16722 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16723 unit provides handling of leap seconds and is used by the new Ada 2005
16724 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16725 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16726 version returns an extra value which is the offset to UTC.
16728 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16729 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16730 (Split_W_Offset): New function body.
16731 (Time_Of): When a date is close to UNIX epoch, compute the time for
16732 that date plus one day (that amount is later substracted after
16733 executing mktime) so there are no problems with time zone adjustments.
16735 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16737 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16738 a-catizo.ads, a-catizo.adb: New files.
16740 * impunit.adb: Add new Ada 2005 entries
16742 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16743 Rename all occurences of "__gnat_localtime_r" to
16744 "__gnat_localtime_tzoff".
16745 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16746 zone data and calculate the GMT offset.
16747 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16748 Use the field "tm_gmtoff" to extract the GMT offset.
16749 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16750 the external variable "timezone" to calculate the GMT offset.
16752 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16753 Jose Ruiz <ruiz@adacore.com>
16755 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16756 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16757 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16758 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16759 System.Any_Priority to a POSIX priority on the target.
16761 * system-linux-ia64.ads:
16762 Extend range of Priority types on Linux to use the whole range made
16763 available by the system.
16765 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16766 function maps from System.Any_Priority to a POSIX priority on the
16768 (PTHREAD_PRIO_PROTECT): Set real value.
16769 (PTHREAD_PRIO_INHERIT): Now a function.
16770 (SIGCPUFAIL): New signal.
16771 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16772 are documented as reserved by the OS.
16774 * system-aix.ads: Use the full range of priorities provided by the
16777 * s-taprop-posix.adb: Call new function To_Target_Priority.
16778 (Set_Priority): Take into account Task_Dispatching_Policy and
16779 Priority_Specific_Dispatching pragmas when determining if Round Robin
16780 must be used for scheduling the task.
16782 * system-linux-x86_64.ads, system-linux-x86.ads,
16783 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16784 the whole range made available by the system.
16786 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16787 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16788 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16789 when deallocating the TCB in order to avoid potential references to
16791 (Set_Priority): Take into account Task_Dispatching_Policy and
16792 Priority_Specific_Dispatching pragmas when determining if Round Robin
16793 or FIFO within priorities must be used for scheduling the task.
16795 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16796 the Thread field (to be used internally by the run-time system) and the
16797 kernel-level task id in the LWP field (to be used by the debugger).
16798 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16799 instance, and propagate the current task options to the spawned task.
16800 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16801 (Initialize): Set Round Robin dispatching when the corresponding pragma
16804 2006-10-31 Robert Dewar <dewar@adacore.com>
16806 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16807 system-linux-hppa.ads, system-hpux-ia64.ads,
16808 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16809 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16810 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16811 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16812 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16813 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16814 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16815 Default_Bit_Order) to kill constant condition warnings for references
16818 2006-10-31 Vincent Celier <celier@adacore.com>
16819 Eric Botcazou <ebotcazou@adacore.com>
16821 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16822 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16823 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16824 Ext_To, when building the library file name
16826 * mlib-tgt-vxworks.adb: ditto.
16827 (Get_Target_Suffix): Add support for x86 targets.
16829 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16831 * mlib-tgt-darwin.adb:
16832 Use Append_To, instead of Ext_To, when building the library file name
16833 (Flat_Namespace): New global variable.
16834 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16835 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16836 (Link_Shared_Libgcc): Delete.
16837 (Build_Dynamic_Library): Adjust for above changes.
16839 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16841 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16843 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16844 (Initialize): Add type conversions required by above change.
16846 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16848 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16849 (getpid): New body for this function that uses the underlying taskIdSelf
16850 function for VxWorks 5 and VxWorks 6 in kernel mode.
16851 (unsigned_int): New type, modular to allow logical bit operations.
16852 (taskOptionsGet): New imported function.
16854 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16855 field to be compliant with the type used by the corresponding operating
16858 2006-10-31 Pascal Obry <obry@adacore.com>
16859 Eric Botcazou <ebotcazou@adacore.com>
16860 Vincent Celier <celier@adacore.com>
16862 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16863 ASCII version of the registry API. This is needed as the GNAT runtime
16864 is now UNICODE by default.
16866 (get_gcc_version): Do not hardcode the return value.
16867 (__gnat_file_time_name): On Windows properly set the default returned
16868 value to -1 which corresponds to Invalid_Time.
16869 (__gnat_fopen): New routine. A simple wrapper on all plateforms
16870 except on Windows where it does conversion for unicode support.
16871 (__gnat_freopen): Idem.
16872 (__gnat_locate_exec_on_path): If environment variable PATH does not
16873 exist, return a NULL pointer
16875 * adaint.h: (__gnat_fopen): Declare.
16876 (__gnat_freopen): Likewise.
16878 * mingw32.h (_tfreopen): Define this macro here for older MingW
16880 Activate the unicode support on platforms using a MingW runtime
16881 version 3.9 or newer.
16883 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16884 This is needed for proper unicode support on Windows.
16887 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16888 Nicolas Setton <setton@adacore.com>
16889 Olivier Hainque <hainque@adacore.com>
16890 Gary Dismukes <dismukes@adacore.com>
16892 * gigi.h: (tree_code_for_record_type): Declare.
16893 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16894 (get_global_renaming_pointers): Rename to
16895 invalidate_global_renaming_pointers.
16896 (static_ctors): Delete.
16897 (static_dtors): Likewise.
16898 (gnat_write_global_declarations): Declare.
16899 (create_var_decl): Adjust descriptive comment to indicate that the
16900 subprogram may return a CONST_DECL node.
16901 (create_true_var_decl): Declare new function, similar to
16902 create_var_decl but forcing the creation of a VAR_DECL node.
16903 (get_global_renaming_pointers): Declare.
16904 (add_global_renaming_pointer): Likewise.
16906 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16908 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16909 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16911 (gnat_to_gnu_entity): Remove From_With_Type from computation for
16913 <E_Access_Type>: Use the Non_Limited_View as the full view of the
16914 designated type if the pointer comes from a limited_with clause. Make
16915 incomplete designated type if it is in the main unit and has a freeze
16917 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16918 Underlying_Full_View similarly. Return earlier if the full view already
16919 has an associated tree.
16920 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16921 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16922 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16923 reference type built for objects with an address clause.
16924 Use create_true_var_decl with const_flag set for
16925 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16927 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16928 for Character and Wide_Character types. This info is read by the
16929 dwarf-2 writer, and is needed to be able to use the command "ptype
16930 character" in the debugger.
16931 (gnat_to_gnu_entity): When generating a type representing
16932 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16933 so that debug writers can distinguish it from ordinary integers.
16934 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16935 addition to TREE_READONLY to assert the constantness of variables for
16936 elaboration purposes.
16937 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16938 parameters to call new Einfo function First_Formal_With_Extras.
16939 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16940 protected type with its corresponding discriminant, to obtain a usable
16942 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16943 for a multiple elaboration of the "equivalent" type.
16944 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16945 into record_global_renaming_pointer.
16946 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16947 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16948 <E_Array_Subtype>: Likewise.
16949 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16950 incomplete subtypes and incomplete subtypes of incomplete types visible
16951 through a limited with clause.
16952 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16953 the base index type for the maximum size of the array only if they are
16955 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16956 expression into a SAVE_EXPR if stabilization failed.
16958 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16959 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16960 by lower level compilation passes.
16961 (gnat_genericize): New function, lowering a function body to GENERIC.
16962 Turn the type of RESULT_DECL into a real reference type if the decl
16963 has been marked DECL_BY_REFERENCE, and adjust references to the latter
16965 (gnat_genericize_r): New function. Tree walking callback for
16967 (convert_from_reference, is_byref_result): New functions. Helpers for
16969 (create_type_decl): Call gnat_pushdecl before calling
16970 rest_of_decl_compilation, to make sure that field TYPE_NAME of
16971 type_decl is properly set before calling the debug information writers.
16972 (write_record_type_debug_info): The heuristics which compute the
16973 alignment of a field in a variant record might not be accurate. Add a
16974 safety test to make sure no alignment is set to a smaller value than
16975 the alignment of the field type.
16976 (make_dummy_type): Use the Non_Limited_View as the underlying type if
16977 the type comes from a limited_with clause. Do not loop on the full view.
16978 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16979 (dummy_node_table): New global variable, moved from decl.c.
16980 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16981 (save_gnu_tree): Use above macros.
16982 (get_gnu_tree): Likewise.
16983 (present_gnu_tree): Likewise.
16984 (init_dummy_type): New function, moved from decl.c. Use above macros.
16985 (make_dummy_type): Likewise.
16986 (tree_code_for_record_type): New function extracted from make_dummy_type
16987 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16988 (static_ctors): Change it to a vector, make static.
16989 (static_dtors): Likewise.
16990 (end_subprog_body): Adjust for above change.
16991 (build_global_cdtor): Moved from trans.c.
16992 (gnat_write_global_declarations): Emit global constructor and
16993 destructor, and call cgraph_optimize before emitting debug info for
16994 global declarations.
16995 (global_decls): New global variable.
16996 (gnat_pushdecl): Store the global declarations in global_decls, for
16998 (gnat_write_global_declarations): Emit debug information for global
17000 (create_var_decl_1): Former create_var_decl, with an extra argument to
17001 state whether the creation of a CONST_DECL is allowed.
17002 (create_var_decl): Behavior unchanged. Now a wrapper around
17003 create_var_decl_1 allowing CONST_DECL creation.
17004 (create_true_var_decl): New function, similar to create_var_decl but
17005 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
17006 (create_field_decl): Do not always mark the field as addressable
17007 if its type is an aggregate.
17008 (global_renaming_pointers): New static variable.
17009 (add_global_renaming_pointer): New function.
17010 (get_global_renaming_pointers): Likewise.
17012 * misc.c (gnat_dwarf_name): New function.
17013 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
17014 (gnat_post_options): Add comment about structural alias analysis.
17015 (gnat_parse_file): Do not call cgraph_optimize here.
17016 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
17018 * trans.c (process_freeze_entity): Don't abort if we already have a
17019 non dummy GCC tree for a Concurrent_Record_Type, as it might
17020 legitimately have been elaborated while processing the associated
17021 Concurrent_Type prior to this explicit freeze node.
17022 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
17023 exception handler volatile if it is of variable size.
17024 (process_type): Remove bypass for types coming from a limited_with
17026 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
17027 actual, convert the corresponding gnu_actual to the real destination
17028 type when necessary.
17029 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
17030 originally TREE_READONLY but whose elaboration cannot be performed
17032 Part of fix for F504-021.
17033 (tree_transform, subprogram cases): Change loops on formal parameters to
17034 call new Einfo function First_Formal_With_Extras.
17035 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
17036 stemming from type conversion for the lhs.
17037 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
17038 number of bits per unit for components of records.
17039 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
17040 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
17041 with At_End_Proc after the SJLJ EH cleanup.
17042 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17044 (elaborate_all_entities): Do not retest type_annotate_only.
17045 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17046 result type of an abstract subprogram, which may be an itype associated
17047 with an anonymous access result (related to AI-318-02).
17048 (build_global_cdtor): Move to utils.c.
17049 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17050 this choice is not a null tree nor an integer constant.
17051 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17052 on the body of elaboration routines instead of mark_unvisited.
17053 (add_stmt): Do not mark the tree.
17054 (add_decl_expr): Tweak comment.
17055 (mark_unvisited): Delete.
17056 (unshare_save_expr): New static function.
17057 (call_to_gnu): Issue an error when making a temporary around a
17058 procedure call because of non-addressable actual parameter if the
17059 type of the formal is by_reference.
17060 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17061 after building the elaboration routine.
17063 2006-10-31 Bob Duff <duff@adacore.com>
17065 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17066 as finalization-started, so we can raise Program_Error on 'new'.
17068 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17069 collection has already started.
17071 * s-finimp.ads (Collection_Finalization_Started): Added new special
17072 flag value for indicating that a collection's finalization has started.
17074 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17075 create a task whose master has already waited for dependent tasks.
17077 2006-10-31 Robert Dewar <dewar@adacore.com>
17079 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17081 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17082 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17083 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17084 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17085 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17086 a-except-2005.ads: Add pragma Preelaborable_Warning
17088 2006-10-31 Robert Dewar <dewar@adacore.com>
17089 Jose Ruiz <ruiz@adacore.com>
17091 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17093 * ali.adb (Get_Name): Properly handle scanning of wide character names
17094 encoded with brackets notation.
17095 (Known_ALI_Lines): Add S lines to this list.
17096 (Scan_ALI): Acquire S (priority specific dispatching) lines.
17097 New flag Elaborate_All_Desirable in unit table
17099 * ali.ads (Priority_Specific_Dispatching): Add this range of
17100 identifiers to be used for Priority_Specific_Dispatching table entries.
17101 (ALIs_Record): Add First_Specific_Dispatching and
17102 Last_Specific_Dispatching that point to the first and last entries
17103 respectively in the priority specific dispatching table for this unit.
17104 (Specific_Dispatching): Add this table for storing each S (priority
17105 specific dispatching) line encountered in the input ALI file.
17106 New flag Elaborate_All_Desirable in unit table
17108 * bcheck.adb: (Check_Configuration_Consistency): Add call to
17109 Check_Consistent_Dispatching_Policy.
17110 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17111 verifying that the use of Priority_Specific_Dispatching,
17112 Task_Dispatching_Policy, and Locking_Policy is consistent across the
17115 * bindgen.adb: (Public_Version_Warning): function removed.
17116 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17117 required information from ALI files in order to initialize the table
17118 containing the specific dispatching policy.
17119 (Gen_Adainit_Ada): Generate the variables required for priority specific
17120 dispatching entries (__gl_priority_specific_dispatching and
17121 __gl_num_specific_dispatching).
17122 (Gen_Adainit_C): Generate the variables required for priority specific
17123 dispatching entries (__gl_priority_specific_dispatching and
17124 __gl_num_specific_dispatching).
17125 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17127 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17128 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17130 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17131 a call to gnat_set_globals.
17132 Generate a string containing settings from
17133 Priority_Specific_Dispatching pragma entries.
17134 (Gen_Object_Files_Options): Do not include the runtime libraries when
17135 pragma No_Run_Time is specified.
17137 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17138 consistency with s-intman-posix.adb.
17139 (__gnat_error_handler, case FreeBSD): Account for the fact that the
17140 handler is installed with SA_SIGINFO.
17141 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17142 FreeBSD ZCX support, copied from Linux version.
17143 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17144 sigfillset, and sigemptyset so the routines defined by MaRTE.
17145 (__gl_priority_specific_dispatching): Add this variable that stores the
17146 string containing priority specific dispatching policies in the
17148 (__gl_num_specific_dispatching): Add this variable that indicates the
17149 highest priority for which a priority specific dispatching pragma
17151 (__gnat_get_specific_dispatching): Add this routine that returns the
17152 priority specific dispatching policy, as set by a
17153 Priority_Specific_Dispatching pragma appearing anywhere in the current
17154 partition. The input argument is the priority number, and the result
17155 is the upper case first character of the policy name.
17156 (__gnat_set_globals): Now a dummy function.
17157 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17158 mechargs instead of sigargs, as the latter can be retrieved from the
17159 former and sigargs is not what we want on ia64.
17160 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17162 (__gnat_adjust_context_for_raise, ia64-vms): New function.
17163 (tasking_error): Remove unused symbol.
17164 (_abort_signal): Move this symbol to the IRIX specific part since this
17165 is the only target that uses this definition.
17166 (Check_Abort_Status): Move this symbol to the IRIX specific part since
17167 this is the only target that uses this definition.
17168 (Lock_Task): Remove unused symbol.
17169 (Unlock_Task): Remove unused symbol.
17171 * lib-writ.adb (Write_ALI): Output new S lines for
17172 Priority_Specific_Dispatching pragmas.
17173 Implement new flag BD for elaborate body desirable
17175 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17176 (Specific_Dispatching): Add this table for storing the entries
17177 corresponding to Priority_Specific_Dispatching pragmas.
17178 Document new BD flag for elaborate body desirable
17180 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17183 2006-10-31 Javier Miranda <miranda@adacore.com>
17185 * a-tags.ads, a-tags.adb:
17186 (Predefined_DT): New function that improves readability of the code.
17187 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17188 Inherit_DT): Use the new function Predefined_DT to improve code
17190 (Register_Interface_Tag): Update assertion.
17191 (Set_Interface_Table): Update assertion.
17192 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17193 determining progenitor interfaces in Tags.
17194 (Inherit_CPP_DT): New subprogram.
17196 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17197 analysis of the thunk code.
17198 (Expand_Interface_Conversion): Handle run-time conversion of
17199 access to class wide types.
17200 (Expand_Dispatching_Call): When generating the profile for the
17201 subprogram itype for a dispatching operation, properly terminate the
17202 formal parameters chaind list (set the Next_Entity of the last formal
17204 (Collect_All_Interfaces): Removed. This routine has been moved to
17205 sem_util and renamed as Collect_All_Abstract_Interfaces.
17206 (Set_All_DT_Position): Hidden entities associated with abstract
17207 interface primitives are not taken into account in the check for
17208 3.9.3(10); this check is done with the aliased entity.
17209 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17210 interfacing with CPP by default.
17211 (Expand_Interface_Conversion): Add missing support for static conversion
17212 from an interface to a tagged type.
17213 (Collect_All_Interfaces): Add new out formal containing the list of
17214 abstract interface types to cleanup the subprogram Make_DT.
17215 (Make_DT): Update the code to generate the table of interfaces in case
17216 of abstract interface types.
17217 (Is_Predefined_Dispatching_Alias): New function that returns true if
17218 a primitive is not a predefined dispatching primitive but it is an
17219 alias of a predefined dispatching primitive.
17220 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17221 compiling under full ABI compatibility mode we avoid the generation of
17222 calls to run-time services that fill the dispatch tables because under
17223 this mode we currently inherit the dispatch tables in the IP subprogram.
17224 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17225 (Expand_Interface_Conversion): Use an address as the type of the formal
17226 of the internally built function that handles the case in which the
17227 target type is an access type.
17229 2006-10-31 Robert Dewar <dewar@adacore.com>
17231 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17233 2006-10-31 Robert Dewar <dewar@adacore.com>
17235 * bindusg.ads, bindusg.adb:
17236 Change to package and rename procedure as Display, which
17237 now ensures that it only outputs usage information once.
17239 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17241 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17244 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17247 2006-10-31 Robert Dewar <dewar@adacore.com>
17248 Ed Schonberg <schonberg@adacore.com>
17250 * treepr.adb: Use new subtype N_Membership_Test
17252 * checks.ads, checks.adb: Add definition for Validity_Check
17253 (Range_Or_Validity_Checks_Suppressed): New function
17254 (Ensure_Valid): Test Validity_Check suppressed
17255 (Insert_Valid_Check): Test Validity_Check suppressed
17256 (Insert_Valid_Check): Preserve Do_Range_Check flag
17257 (Validity_Check_Range): New procedure
17258 (Expr_Known_Valid): Result of membership test is always valid
17259 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17260 by themselves. Disabling those checks must also be done for task types,
17261 where discriminants may be used for the bounds of entry families.
17262 (Apply_Address_Clause_Check): Remove side-effects if address expression
17263 is non-static and is not the name of a declared constant.
17264 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17265 Code cleanup and new error messages.
17266 (Enable_Range_Check): Test for some cases of suppressed checks
17267 (Generate_Index_Checks): Suppress index checks if index checks are
17268 suppressed for array object or array type.
17269 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17270 length check failure, even if checks are off.
17271 (Ensure_Valid): Do not generate a check on an indexed component whose
17272 prefix is a packed boolean array.
17273 * checks.adb: (Alignment_Checks_Suppressed): New function
17274 (Apply_Address_Clause_Check): New procedure, this is a completely
17275 rewritten replacement for Apply_Alignment_Check
17276 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17277 we request a discriminal value only in case of discriminants.
17278 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17279 assignments where the target subtype is unconstrained and the target
17280 object is a parameter or dereference (other aliased cases are known
17281 to be unconstrained).
17283 2006-10-31 Robert Dewar <dewar@adacore.com>
17285 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17286 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17287 vms_conv.adb: Fix bad table increment values (much too small)
17289 * table.adb (Realloc): Make sure we get at least some new elements
17290 Defends against silly small values for table increment
17292 2006-10-31 Robert Dewar <dewar@adacore.com>
17293 Ed Schonberg <schonberg@adacore.com>
17294 Bob Duff <duff@adacore.com>
17296 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17297 entities. Move other fields around to make this possible
17298 (Is_Derived_Type): Add missing call to Is_Type.
17299 (Extra_Formals): New function for subprograms, entries, subprogram
17301 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17302 (First_Formal_With_Extras): New function for subprogs, entries, subp
17304 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17305 Add node information for E_Return_Statement.
17306 (Elaborate_Body_Desirable): New flag
17307 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17308 to be Is_Inherently_Limited_Type, because return-by-reference has
17309 no meaning in Ada 2005.
17310 (E_Return_Statement): New entity kind.
17311 (Return_Applies_To): Field of E_Return_Statement.
17312 (Is_Return_Object): New flag in object entities.
17313 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17314 (Must_Have_Preelab_Init): New flag
17315 (Known_To_Have_Preelab_Init): New flag
17316 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17317 (Is_Visible_Formal): New flag on entities in formal packages.
17318 (Low_Bound_Known): New flag
17319 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17321 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17322 output when Id is an incomplete subtype.
17324 2006-10-31 Robert Dewar <dewar@adacore.com>
17326 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17327 Avoid abbreviation Creat
17328 (Finalize): List all sources in extended mail source if -gnatl
17330 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17331 (Finalize): Implement new -gnatl=xxx switch to output listing to file
17332 (Set_Specific_Warning_On): New procedure
17333 (Set_Specific_Warning_Off): New procedure
17334 Add implementation of new insertion \\
17335 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17336 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17338 (Error_Msg_Internal): Make sure that we set Last_Killed to
17339 True when a message from another package is suppressed.
17340 Implement insertion character ~ (insert string)
17341 (First_Node): Minor adjustments to get better placement.
17344 Implement new -gnatl=xxx switch to output listing to file
17347 Implement new -gnatl=xxx switch to output listing to file
17349 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17350 (Commands_To_Stdout): New flag
17351 Implement new -gnatl=xxx switch to output listing to file
17352 New switch Dump_Source_Text
17353 (Warn_On_Deleted_Code): New warning flag for -gnatwt
17354 Define Error_Msg_Line_Length
17355 (Warn_On_Assumed_Low_Bound): New switch
17357 * osint.ads, osint.adb
17358 (Normalize_Directory_Name): Fix bug.
17359 Implement new -gnatl=xxx switch to output listing to file
17360 (Concat): Removed, replaced by real concatenation
17361 Make use of concatenation now allowed in compiler
17362 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17363 we find the 'lib' or 'bin' directory even when the tool has been
17364 invoked with a relative path.
17365 (Executable_Name): New function taking string parameters.
17367 * osint-c.ads, osint-c.adb:
17368 Implement new -gnatl=xxx switch to output listing to file
17370 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17373 Implement new -gnatl=xxx switch to output listing to file
17374 Recognize new -gnatL switch
17375 (no longer keep in old warning about old style usage)
17376 Use concatenation to simplify code
17377 Recognize -gnatjnn switch
17378 (Scan_Front_End_Switches): Clean up handling of -gnatW
17379 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17381 2006-10-31 Robert Dewar <dewar@adacore.com>
17383 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17384 (Set_Specific_Warning_Off): New procedure
17385 (Warning_Specifically_Suppressed): New function
17386 (Validate_Specific_Warnings): New procedure
17387 (Output_Msg_Text): Complete rewrite to support -gnatjnn
17389 * err_vars.ads: Implement insertion character ~ (insert string)
17391 2006-10-31 Bob Duff <duff@adacore.com>
17392 Ed Schonberg <schonberg@adacore.com>
17394 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17395 the parent part is a build-in-place function call, generate assignments.
17396 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17397 are build-in-place function calls.
17398 (Replace_Self_Reference): New subsidiary of
17399 Make_OK_Assignment_Statement, to replace an access attribute that is a
17400 self-reference into an access to the appropriate component of the
17401 target object. Generalizes previous mechanism to handle self-references
17402 nested at any level.
17403 (Is_Self_Referential_Init): Remove, not needed.
17404 (Is_Self_Referential_Init): New predicate to simplify handling of self
17405 referential components in record aggregates.
17406 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17407 check for presence of entity before checking for self-reference.
17408 (Has_Default_Init_Comps): Return True if a component association is a
17409 self-reference to the enclosing type, which can only come from a
17410 default initialization.
17411 (Make_OK_Assignment_Statement): If the expression is of the form
17412 Typ'Acc, where Acc is an access attribute, the expression comes from a
17413 default initialized self-referential component.
17414 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17415 that has been derived from several abstract interfaces we must also
17416 initialize the tags of the secondary dispatch tables.
17418 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17419 Thomas Quinot <quinot@adacore.com>
17420 Javier Miranda <miranda@adacore.com>
17421 Robert Dewar <dewar@adacore.com>
17424 (Expand_Access_To_Protected_Op): If the context indicates that an access
17425 to a local operation may be transfered outside of the object, create an
17426 access to the wrapper operation that must be used in an external call.
17427 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17428 target, pass the Valid attribute applied to a floating-point prefix on
17429 to the back end without expansion.
17430 (Storage_Size): Use the new run-time function Storage_Size to retrieve
17431 the allocated storage when it is specified by a per-object expression.
17432 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17433 Nothing to do here, the attribute has been rewritten during semantic
17435 (Expand_Attribute_Reference): Handle expansion of the new Priority
17437 (Find_Fat_Info): Handle case of universal real
17438 (Expand_Access_To_Protected_Op): Fix use of access to protected
17439 subprogram from inside the body of a protected entry.
17440 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17441 'Access and 'Unrestricted_Access, to transform the attribute reference
17442 into a fat pointer.
17443 (Is_Constrained_Aliased_View): New predicate to help determine whether a
17444 subcomponent's enclosing variable is aliased with a constrained subtype.
17445 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17446 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17447 an aliased prefix must be known to be constrained in order to use True
17448 for the attribute value, and now it's possible for some aliased views
17449 to be unconstrained.
17451 2006-10-31 Robert Dewar <dewar@adacore.com>
17453 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17454 (Expand_Entity_Reference): Correct error of not handling subprogram
17455 formals in current_value processing.
17457 2006-10-31 Javier Miranda <miranda@adacore.com>
17458 Robert Dewar <dewar@adacore.com>
17459 Ed Schonberg <schonberg@adacore.com>
17460 Gary Dismukes <dismukes@adacore.com>
17462 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17463 register in the final list objects containing class-wide interfaces;
17464 otherwise we incorrectly register the tag of the interface in the final
17466 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17467 generate the wrapper if the parent primitive is abstract. This is
17468 required to report the correct error message.
17469 (Expand_N_Subtype_Indication): Do validity checks on range
17470 (Clean_Task_Names): If an initialization procedure includes a call to
17471 initialize a task (sub)component, indicate that the procedure will use
17472 the secondary stack.
17473 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17474 compatibility for interfacing with CPP by default.
17475 (Expand_N_Object_Declaration): Only build an Adjust call when the
17476 object's type is a nonlimited controlled type.
17477 * exp_ch3.adb: Add with and use of Exp_Ch6.
17478 (Expand_N_Object_Declaration): Check for object initialization that is a
17479 call to build-in-place function and apply Make_Build_In_Place_Call_In_
17480 Object_Declaration to the call.
17481 (Freeze_Type): When the designated type of an RACW was not frozen at the
17482 point where the RACW was declared, validate the primitive operations
17483 with respect to E.2.2(14) when it finally is frozen.
17484 (Build_Initialization_Call,Expand_Record_Controller): Rename
17485 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17486 return-by-reference has no meaning in Ada 2005.
17487 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17488 to register tag of the immediate ancestor interfaces in the
17489 run-time structure.
17490 (Init_Secondary_Tags): Moved to the specification to allow the
17491 initialization of extension aggregates with abstract interfaces.
17492 (Build_Master_Renaming): Make public, for use by function declarations
17493 whose return type is an anonymous access type.
17494 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17495 Insert_List_Before_And_Analyze after the generation of the specs
17496 associated with null procedures.
17497 (Expand_Tagged_Root): Update documentation in its specification.
17498 (Init_Secondary_Tags): Update documentation.
17499 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17500 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17501 then generate code to inherit the contents of the dispatch table
17502 directly from the ancestor.
17503 (Expand_Record_Controller): Insert controller component after tags of
17504 implemented interfaces.
17505 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17506 create null procedure overridings when null procedures are inherited
17508 (Make_Null_Procedure_Specs): New procedure to generate null procedure
17509 declarations for overriding null primitives inherited from interfaces.
17510 (Is_Null_Interface_Procedure): New function in
17511 Make_Null_Procedure_Specs.
17512 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17513 immediate ancestor of a tagged type is an abstract interface type we
17514 must generate the specification of the predefined primitives associated
17515 with controlled types (because the dispatch table of the ancestor is
17516 null and hence these entries cannot be inherited). This is required to
17517 elaborate well the dispatch table.
17519 2006-10-31 Javier Miranda <miranda@adacore.com>
17520 Ed Schonberg <schonberg@adacore.com>
17521 Bob Duff <duff@adacore.com>
17522 Gary Dismukes <dismukes@adacore.com>
17523 Robert Dewar <dewar@adacore.com>
17525 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17527 (Expand_N_In): Do validity checks on range
17528 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17529 (Expand_N_Allocator): For "new T", if the object is constrained by
17530 discriminant defaults, allocate the right amount of memory, rather than
17531 the maximum for type T.
17532 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17533 when the allocator is initialized by a build-in-place call, since the
17534 allocator is already rewritten as a reference to the function result,
17535 and this prevents an unwanted duplication of the function call.
17536 Add with and use of Exp_Ch6.
17537 (Expand_Allocator_Expresssion): Check for an allocator whose expression
17538 is a call to build-in-place function and apply
17539 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17540 untagged designated types).
17541 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17542 optimization if source or target is biased.
17543 (Expand_N_Allocator): Add comments for case of an allocator within a
17544 function that returns an anonymous access type designating tasks.
17545 (Expand_N_Allocator): apply discriminant checks for access
17546 discriminants of anonymous access types (AI-402, AI-416)
17548 2006-10-31 Bob Duff <duff@adacore.com>
17549 Robert Dewar <dewar@adacore.com>
17550 Gary Dismukes <dismukes@adacore.com>
17551 Ed Schonberg <schonberg@adacore.com>
17553 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17555 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17556 (Expand_N_Assignment_Statement): Call
17557 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17558 build-in-place function call. Currently, this can happen only for
17559 assignments that come from aggregates.
17560 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17561 in order to alleviate the upward compatibility introduced by AI-318.
17562 (Expand_N_Extended_Return_Statement): Add support for handling the
17563 return object as a build-in-place result.
17564 (Expand_Non_Function_Return): Implement simple return statements nested
17565 within an extended return.
17566 (Enable_New_Return_Processing): Turn on the new processing of return
17568 (Expand_Non_Function_Return): For a return within an extended return,
17569 don't raise Program_Error, because Sem_Ch6 now gives a warning.
17570 (Expand_N_Extended_Return_Statement): Implement AI-318
17571 (Expand_Simple_Function_Return): Ditto.
17572 (Expand_N_If_Statement): Handle new -gnatwt warning
17573 (Expand_N_Case_Statement): Handle new -gnatwt warning
17574 (Expand_N_Assignment): Handle assignment to the Priority attribute of
17575 a protected object.
17576 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17577 validity checking of assignments to elementary record components.
17578 (Expand_N_Return_Statement): return Class Wide types on the secondary
17579 stack independantly of their controlled status since with HIE runtimes,
17580 class wide types are not potentially controlled anymore.
17582 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17585 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17586 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17587 it expects a block, procedure, or task. The return statement will get
17588 turned into a block, and Expand_Cleanup_Actions will happen then.
17590 2006-10-31 Robert Dewar <dewar@adacore.com>
17591 Ed Schonberg <schonberg@adacore.com>
17592 Bob Duff <duff@adacore.com>
17593 Gary Dismukes <dismukes@adacore.com>
17595 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17597 (Expand_Inlined_Call): Tagged types are by-reference types, and
17598 therefore should be replaced by a renaming declaration in the expanded
17599 body, as is done for limited types.
17600 (Expand_Call): If this is a call to a function with dispatching access
17601 result, propagate tag from context.
17602 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17604 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17605 build-in-place when the right-hand side of an assignment is a
17606 build-in-place function call.
17607 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17608 of the explicit dereference of the allocator to the result subtype of
17609 the build-in-place function. This is needed to satisfy type checking
17610 in cases where the caller's return object is created by an allocator for
17611 a class-wide access type and the type named in the allocator is a
17613 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17614 conversion of the reference to the declared object to the result subtype
17615 of the build-in-place function. This is needed to satisfy type checking
17616 in cases where the declared object has a class-wide type. Also, in the
17617 class-wide case, change the type of the object entity to the specific
17618 result subtype of the function, to avoid passing a class-wide object
17619 without explicit initialization to the back end.
17620 (Register_Interface_DT_Entry): Moved outside the body of
17621 Freeze_Subprogram because this routine is now public; it is called from
17622 Check_Dispatching_Overriding to handle late overriding of abstract
17623 interface primitives.
17624 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17625 adding an implicit access actual on a call to a build-in-place function.
17626 (Expand_Actuals): Test for an actual parameter that is a call to a
17627 build-in-place function and apply
17628 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17629 (Is_Build_In_Place_Function): New function to determine whether an
17630 entity is a function whose calls should be handled as build-in-place.
17631 (Is_Build_In_Place_Function_Call): New function to determine whether an
17632 expression is a function call that should handled as build-in-place.
17633 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17634 calls to build-in-place functions as the initialization of an allocator.
17635 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17636 handling calls to build-in-place functions in contexts that do not
17637 involve init of a separate object (for example, actuals of subprogram
17639 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17640 handling calls to build-in-place functions as the initialization of an
17641 object declaration.
17642 (Detect_Infinite_Recursion): Add explicit parameter Process to
17643 instantiation of Traverse_Body to avoid unreferenced warning.
17644 (Check_Overriding_Inherited_Interfaces): Removed.
17645 (Register_Interface_DT_Entry): Code cleanup.
17646 (Register_Predefined_DT_Entry): Code cleanup.
17647 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17648 inlined statements if within a transient scope.
17649 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17650 formal parameters with occurrences of actuals in inlined body, establish
17651 visibility on the proper view of the actual's subtype for the body's
17653 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17654 compatibility mode and we have an imported CPP subprogram because
17655 for now we assume that imported CPP primitives correspond with
17656 objects whose constructor is in the CPP side (and therefore we
17657 don't need to generate code to register them in the dispatch table).
17658 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17659 aligned selected component.
17660 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17661 the actual of an in-mode parameter is a type conversion.
17662 (Expand_Actuals): If the call does not come from source and the actual
17663 is potentially misaligned, let gigi handle it rather than rejecting the
17664 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17665 Class Wide types as returning by reference independantly of their
17666 controlled status since with HIE runtimes class wide types are not
17667 potentially controlled anymore.
17669 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17671 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17672 references that are private components of the protected object.
17673 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17674 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17675 instantiation to deal with warnings.
17676 (Initialize_Protection): If expression for priority is non-static, use
17677 System_Priority as its expected type, in case the expression has not
17680 2006-10-31 Robert Dewar <dewar@adacore.com>
17682 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17683 initialization of Homonym_Len.
17684 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17685 names from fully qualified name. Fixes problem of duplicate
17686 external names differing only in the presence of such a block name.
17688 2006-10-31 Thomas Quinot <quinot@adacore.com>
17689 Pablo Oliveira <oliveira@adacore.com>
17691 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17692 subprogram Ids, even if they are not yet assigned.
17693 (Build_Subprogram_Id): It is now this function that will take care of
17694 calling Assign_Subprogram_Ids if necessary.
17695 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17696 should be done only once they are assigned.
17697 (Build_From_Any_Function, case of tagged types): Add missing call to
17699 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17700 type for an RACW type.
17701 (Add_RACW_Features): When processing an RACW declaration for which the
17702 designated type is already frozen, enforce E.2.2(14) rules immediately.
17703 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17704 special reordering of controlling formals.
17706 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17707 associated stub type for an RACW type.
17709 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17711 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17712 fixed-point operations in an integer context, i.e. as operands of a
17713 conversion to an integer type, indicate that result must be rounded.
17715 2006-10-31 Robert Dewar <dewar@adacore.com>
17717 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17718 cases, pass the encoding method, since it is now required by the run
17721 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17722 assumption that Str'First = 1.
17723 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17724 it on to the Value_Wide_Wide_Character call.
17725 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17726 properly handles a string of the form quote-encoded_wide_char-quote.
17728 * s-wchcnv.adb: Minor reformatting
17730 2006-10-31 Javier Miranda <miranda@adacore.com>
17732 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17733 run-time membership test to ensure that the constructed object
17734 implements the target abstract interface.
17736 2006-10-31 Robert Dewar <dewar@adacore.com>
17738 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17739 Machine_Attribute pragma internally to implement the user pragma.
17740 Add processing for pragma Interface so that it is now completely
17741 equivalent to pragma Import.
17743 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17744 so that it can be applied to all entities, including record components
17745 and enumeration literals.
17746 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17747 priority ranges are correct, verify compatibility against task
17748 dispatching and locking policies, and if everything is correct an entry
17749 is added to the table containing priority specific dispatching entries
17750 for this compilation unit.
17751 (Delay_Config_Pragma_Analyze): Delay processing
17752 Priority_Specific_Dispatching pragmas because when processing the
17753 pragma we need to access run-time data, such as the range of
17754 System.Any_Priority.
17755 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17756 Allow pragma Unreferenced as a context item
17757 Add pragma Preelaborable_Initialization
17758 (Analyze_Pragma, case Interface): Interface is extended so that it is
17759 now syntactically and semantically equivalent to Import.
17760 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17761 insertion characters.
17762 Add handling for Pragma_Wide_Character_Encoding
17763 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17764 never supercedes a real restriction, and that a real restriction
17765 always supercedes a warning.
17766 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17769 2006-10-31 Bob Duff <duff@adacore.com>
17770 Ed Schonberg <schonberg@adacore.com>
17771 Robert Dewar <dewar@adacore.com>
17773 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17774 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17775 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17777 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17778 type of the function containing a return statement, because the
17779 Return_Type field was removed. We now use the Return_Applies_To field.
17781 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17782 (Build_Task_Image_Decl): If procedure is not called from an
17783 initialization procedure, indicate that function that builds task name
17784 uses the sec. stack. Otherwise the enclosing initialization procedure
17785 will carry the indication.
17786 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17787 N_Object_Declaration instead.
17788 (Kill_Dead_Code): New interface to implement -gnatwt warning for
17789 conditional dead code killed, and change implementation accordingly.
17790 (Insert_Actions): Add N_Return_Object_Declaration case.
17791 Correct comment to mention N_Extension_Aggregate node.
17792 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17793 attempts to save information for global variables which cannot be
17795 (Get_Current_Value_Condition): Handle conditions the other way round
17796 (constant on left). Also handle right operand of AND and AND THEN
17797 (Set_Current_Value_Condition): Corresponding changes
17798 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17799 (Get_Current_Value_Condition): Handle simple boolean operands
17800 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17801 (Get_Current_Value_Condition): If the variable reference is within an
17802 if-statement, does not appear in the list of then_statments, and does
17803 not come from source, treat it as being at unknown location.
17804 (Get_Current_Value_Condition): Enhance to allow while statements to be
17805 processed as well as if statements.
17806 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17808 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17809 of loop. This is safe now that we fixed Kill_Current_Values.
17810 (OK_To_Do_Constant_Replacement): Check whether current scope is
17811 Standard, before examining outer scopes.
17813 2006-10-31 Vincent Celier <celier@adacore.com>
17815 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17816 When True, apply VMS treatment to children of packages A, G, I and S.
17819 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17821 2006-10-31 Robert Dewar <dewar@adacore.com>
17822 Ed Schonberg <schonberg@adacore.com>
17824 * freeze.adb: Add handling of Last_Assignment field
17825 (Warn_Overlay): Supply missing continuation marks in error msgs
17826 (Freeze_Entity): Add check for Preelaborable_Initialization
17828 * g-comlin.adb: Add Warnings (Off) to prevent new warning
17830 * g-expect.adb: Add Warnings (Off) to prevent new warning
17832 * lib-xref.adb: Add handling of Last_Assignment field
17833 (Generate_Reference): Centralize handling of pragma Obsolescent here
17834 (Generate_Reference): Accept an implicit reference generated for a
17835 default in an instance.
17836 (Generate_Reference): Accept a reference for a node that is not in the
17837 main unit, if it is the generic body corresponding to an subprogram
17840 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17842 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17844 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17846 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17847 use clauses, to avoid messages on packages used to qualify, and also
17848 to avoid messages from obsolescent units.
17849 (Warn_On_Useless_Assignments): Don't generate messages for imported
17850 and exported variables.
17851 (Warn_On_Useless_Assignments): New procedure
17852 (Output_Obsolescent_Entity_Warnings): New procedure
17853 (Check_Code_Statement): New procedure
17855 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17856 Change name Is_Ada_2005 to Is_Ada_2005_Only
17857 (Last_Assignment): New field for useless assignment warning
17859 2006-10-31 Olivier Hainque <hainque@adacore.com>
17861 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17862 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17864 2006-10-31 Bob Duff <duff@adacore.com>
17865 Robert Dewar <dewar@adacore.com>
17866 Ed Schonberg <schonberg@adacore.com>
17868 * g-awk.adb (Default_Session, Current_Session): Compile this file in
17869 Ada 95 mode, because it violates the new rules for AI-318.
17871 * g-awk.ads: Use overloaded subprograms in every case where we used to
17872 have a default of Current_Session. This makes the code closer to be
17873 correct for both Ada 95 and 2005.
17875 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17876 code, relying on the fact that the compiler generates a warning
17877 instead of an error in -gnatg mode.
17879 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17880 E_Return_Statement entity kind.
17881 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17883 * par.adb (P_Interface_Type_Definition): Addition of one formal to
17884 report an error if the reserved word abstract has been previously found.
17885 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17887 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17888 parenthesized range attribute usage
17889 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17891 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17892 in the syntax for extended_return_statement. This is not in the latest
17893 RM, but the ARG is expected to issue an AI allowing this.
17894 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17895 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17896 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17897 P_Return_Statement): Parse the new syntax for extended_return_statement.
17899 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17900 Output_End_Missing): Add error-recovery code for the new
17901 extended_return_statement syntax; that is, the new E_Return entry on
17904 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17905 limited to nonlimited, because otherwise we violate the new Ada 2005
17906 rules about returning limited types in function Create_AST_Handler in
17909 * sem.adb (Analyze): Add cases for new node kinds
17910 N_Extended_Return_Statement and N_Return_Object_Declaration.
17912 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17913 type is in the same category as type of context before applying check,
17914 to prevent anomalies in instantiations.
17915 (Resolve_Aggregate): Remove test for limited components in aggregates.
17916 It's unnecessary in Ada 95, because if it has limited components, then
17917 it must be limited. It's wrong in Ada 2005, because limited aggregates
17919 (Resolve_Record_Aggregate): Move check for limited types later, because
17920 OK_For_Limited_Init requires its argument to have been resolved.
17921 (Get_Value): When copying the component default expression for a
17922 defaulted association in an aggregate, use the sloc of the aggregate
17923 and not that of the original expression, to prevent spurious
17924 elaboration errors, when the expression includes function calls.
17925 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17926 were missing. We also didn't handle qualified expressions. Now also
17927 allow function calls. Use new common routine OK_For_Limited_Init.
17928 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17929 with space can upper case letter).
17931 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17932 Has_Static_Discriminants flag
17933 (Record_Type_Declaration): Diagnose an attempt to declare an interface
17934 type with discriminants.
17935 (Process_Range_Expr_In_Decl): Do validity checks on range
17936 (Build_Discriminant_Constraints): Use updated form of
17937 Denotes_Discriminant.
17938 (Process_Subtype): If the subtype is a private subtype whose full view
17939 is a concurrent subtype, introduce an itype reference to prevent scope
17941 (Build_Derived_Record_Type, Collect_Interface_Primitives,
17942 Record_Type_Declaration): The functionality of the subprograms
17943 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17944 is now performed by a single routine.
17945 (Build_Derived_Record_Type): If the type definition includes an explicit
17946 indication of limitedness, then the type must be marked as limited here
17947 to ensure that any access discriminants will not be treated as having
17948 a local anonymous access type.
17949 (Check_Abstract_Overriding): Issue a detailed error message when an
17950 abstract subprogram was not overridden due to incorrect mode of its
17952 (Analyze_Private_Extension_Declaration): Add support for the analysis of
17953 synchronized private extension declarations. Verify that the ancestor is
17954 a limited or synchronized interface or in the generic case, the ancestor
17955 is a tagged limited type or synchronized interface and all progenitors
17956 are either limited or synchronized interfaces.
17957 Derived_Type_Declaration): Check for presence of private extension when
17958 dealing with synchronized formal derived types.
17959 Process_Full_View): Enchance the check done on the usage of "limited" by
17960 testing whether the private view is synchronized.
17961 Verify that a synchronized private view is completed by a protected or
17963 (OK_For_Limited_Init_In_05): New function.
17964 (Analyze_Object_Declaration): Move check for limited types later,
17965 because OK_For_Limited_Init requires its argument to have been resolved.
17966 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17967 in order to alleviate the upward compatibility introduced by AI-318.
17968 (Constrain_Corresponding_Record): If the constraint is for a component
17969 subtype, mark the itype as frozen, to avoid out-of-scope references to
17970 discriminants in the back-end.
17971 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17972 this subprogram against wrong sources.
17973 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17974 discriminant of limited type completed with a protected type, when the
17975 discriminant is used to constrain a private component of the type, and
17976 expansion is disabled.
17977 (Find_Type_Of_Object): Do not treat a return subtype that is an
17978 anonymous subtype as a local_anonymous_type, because its accessibility
17979 level is the return type of the enclosing function.
17980 (Check_Initialization): In -gnatg mode, turn the error "cannot
17981 initialize entities of limited type" into a warning.
17982 (OK_For_Limited_Init): Return true for generated nodes, since it
17983 sometimes violates the legality rules.
17984 (Make_Incomplete_Declaration): If the type for which an incomplete
17985 declaration is created happens to be the currently visible entity,
17986 preserve the homonym chain when removing it from visibility.
17987 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17988 inherited subprograms.
17989 (Access_Definition): If this is an access to function that is the return
17990 type of an access_to_function definition, context is a type declaration
17991 and the scope of the anonymous type is the current one.
17992 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17993 incomplete subtype to the set of private dependents of the original
17995 (Constrain_Discriminated_Type): Emit an error message whenever an
17996 incomplete subtype is being constrained.
17997 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17998 corresponding subtype of the full view of the original incomplete type.
17999 (Check_Incomplete): Properly detect invalid usage of incomplete types
18002 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18004 * g-catiio.ads, g-catiio.adb (Value): New function.
18005 Given an input String, try and parse a valid Time value.
18007 2006-10-31 Vincent Celier <celier@adacore.com>
18009 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
18010 Integer_Address arithmetic, as in Set_Valid.
18012 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18013 Robert Dewar <dewar@adacore.com>
18015 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
18016 handling executable extension manually and duplicating code.
18018 * make.adb: Implement new -S switch
18019 (Gnatmake): Use new function Osint.Executable_Name instead
18020 of handling executable extension manually.
18022 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
18023 is specified, the executable name ends with this suffix.
18024 Take advantage of Osint.Executable_Name instead of duplicating code.
18026 * switch-m.adb: Recognize new gnatmake -S switch
18028 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
18030 (Get_Target_Parameters): Set Executable_Extension_On_Target if
18033 * makeusg.adb: Add line for gnatmake -S switch
18035 2006-10-31 Vincent Celier <celier@adacore.com>
18037 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
18038 call it with -static-libgcc, as there are some platforms, such as
18039 Darwin, where one of these two switches is compulsory to link.
18041 2006-10-31 Vincent Celier <celier@adacore.com>
18043 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18044 instead of ADA_PROJECT_PATH, for the project path.
18045 (Gnatls): When displaying the project path directories, use host dir
18048 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18049 names in the project path, as absolute paths may correspond to
18050 multi-valued VMS logical names.
18052 2006-10-31 Vincent Celier <celier@adacore.com>
18054 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18055 absolute path name.
18056 (Locate_Regular_File): Ditto
18057 (Change_Dir): Remove, no longer used
18058 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18059 on Windows. Get it calling Get_Current_Dir.
18060 (OpenVMS): Remove imported boolean, no longer needed.
18061 (Normalize_Pathname)[VMS]: Do not resolve directory names.
18062 (Pid_To_Integer): New function to convert a Process_Id to Integer
18064 2006-10-31 Thomas Quinot <quinot@adacore.com>
18066 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18067 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18069 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18072 2006-10-31 Robert Dewar <dewar@adacore.com>
18074 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18075 initial letter o as a zero.
18077 2006-10-31 Robert Dewar <dewar@adacore.com>
18079 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18081 2006-10-31 Robert Dewar <dewar@adacore.com>
18083 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18085 (Layout_Variant_Record): Retrieve the discriminants from the entity
18086 rather than from the type definition, because in the case of a full
18087 type for a private type we need to take the discriminants from the
18089 (Layout_Component_List): When applying the Max operator to variants with
18090 a nonstatic size, check whether either operand is static and scale that
18091 operand from bits to storage units before applying Max.
18092 (Layout_Type): In VMS, if a C-convention access type has no explicit
18093 size clause (and does not inherit one in the case of a derived type),
18094 then the size is reset to 32 from 64.
18096 2006-10-31 Vincent Celier <celier@adacore.com>
18098 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18099 its file has already been loaded, according to the unit being loaded,
18100 not to the current value of Multiple_Unit_Index.
18102 2006-10-31 Thomas Quinot <quinot@adacore.com>
18103 Eric Botcazou <ebotcazou@adacore.com>
18104 Arnaud Charlet <charlet@adacore.com>
18106 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18107 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18109 (a-except.o): Pass it to the compiler.
18110 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18111 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18112 a-calend-mingw.adb version.
18114 * Makefile.rtl: Added s-dsaser.
18115 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18116 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18117 Ada.Dispatching.Round_Robin.
18118 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18120 * Make-lang.in: Remove all references to gt-ada-decl.h.
18121 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18123 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18124 Update dependencies.
18126 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18128 2006-10-31 Vincent Celier <celier@adacore.com>
18130 * mlib-utl.adb (Initialized): Remove, no longer used
18131 (Initialize): Remove, no longer used
18132 (Ar): If Ar_Exec is null, get the location of the archive builder and,
18133 if there is one, the archive indexer. Fail if the archive builder cannot
18135 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18138 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18140 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18141 Process_Body_Clauses): If the context of a body includes a use clause
18142 for P.Q then a with_clause for P in the same body is not redundant,
18143 even if the spec also has a with_clause on P.
18144 Add missing continuation mark to error msg
18145 (Build_Limited_Views): A limited view of a type is tagged if its
18146 declaration includes a record extension.
18147 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18148 node, even if the subunit has errors. This avoids malfunction by
18149 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18150 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18151 generation of obsolescent messages for with statements (cannot do
18152 this too early, or we cannot implement avoiding the messages in the
18153 case of obsolescent units withing obsolescent units).
18154 (Install_Siblings): If the with_clause is on a remote descendant of
18155 an ancestor of the current compilation unit, find whether there is
18156 a sibling child unit that is immediately visible.
18157 (Remove_Private_With_Clauses): New procedure, invoked after completing
18158 the analysis of the private part of a nested package, to remove from
18159 visibility the private with_clauses of the enclosing package
18161 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18162 now centralized in Generate_Reference.
18163 (Install_Limited_Context_Clauses): Remove superfluous error
18164 message associated with unlimited view visible through use
18165 and renamings. In addition, at the point in which the error
18166 is reported, we add the backslash to the text of the error
18167 to ensure that it is reported as a single error message.
18168 Use new // insertion for some continuation messages
18169 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18170 to create implicit with_clause for parent unit mentioned in original
18171 limited_with_clause.
18172 (Install_Limited_With_Unit): Set entity of parent identifiers if the
18173 unit is a child unit. For ASIS queries.
18174 (Analyze_Subunit): If the subunit appears within a child unit, make all
18175 ancestor child units directly visible again.
18177 2006-10-31 Robert Dewar <dewar@adacore.com>
18179 * par-ch10.adb (P_Context_Clause): Minor error message fix
18181 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18182 Javier Miranda <miranda@adacore.com>
18184 * par-ch12.adb: Grammar update and cleanup.
18185 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18186 support for synchronized derived type definitions.
18187 Add the new actual Abstract_Present to every call to
18188 P_Interface_Type_Definition.
18189 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18190 a formal object declaration with an access definition or a subtype mark
18191 with a null exclusion.
18192 (P_Generic_Association): Handle association with box, and others_choice
18193 with box, to support Ada 2005 partially parametrized formal packages.
18195 2006-10-31 Robert Dewar <dewar@adacore.com>
18196 Javier Miranda <miranda@adacore.com>
18198 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18199 (P_Type_Declaration): Remove barrier against the reserved word "limited"
18200 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18201 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18202 private extensions.
18203 (P_Type_Declaration): Add the new actual Abstract_Present to every call
18204 to P_Interface_Type_Definition.
18205 (P_Interface_Type_Definition): Addition of one formal to report an error
18206 if the reserved word abstract has been previously found.
18207 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18208 object renaming declaration with an access definition or subtype mark
18209 with a possible null exclusion.
18211 * par-ch9.adb: Minor error msg fix
18213 * par-load.adb: Add missing continuation mark to error msg
18215 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18217 2006-10-31 Vincent Celier <celier@adacore.com>
18219 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18220 unknown attribute in unknown package or in package that does not need
18222 (Parse_Package_Declaration): Do not issue warning for unknown package in
18225 2006-10-31 Vincent Celier <celier@adacore.com>
18227 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18228 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18231 2006-10-31 Vincent Celier <celier@adacore.com>
18233 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18234 on VMS, change "__" to '.' before checking the name.
18235 (Record_Ada_Source): Always add the source file name in the list of
18236 of sources, even if it is not the first time, as it is for another
18238 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18239 dot, instead of replacing only the first '_'.
18241 * prj-part.adb (Parse): Convert project file path to canonical form
18243 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18244 extended, the project id of the project extending it is recorded in its
18245 data, even when it has already been processed as an imported project.
18247 2006-10-31 Robert Dewar <dewar@adacore.com>
18249 * repinfo.adb (List_Entities): Don't list entities from renaming
18252 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18253 Robert Dewar <dewar@adacore.com>
18255 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18256 only a restriction warning is active for the given restriction. This is
18257 desirable because we do not want to modify code in the case where only
18259 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18260 causes overriding of real restrictions.
18261 Take advantage of new No_Restrictions constant.
18263 * raise.h: (__gnat_set_globals): Change profile.
18265 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18267 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18270 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18271 Move all the entities in obsolete package System.PolyORB_Interface to
18272 System.Partition_Interface.
18273 (RE_Storage_Size): New function in System.Tasking.
18274 (RE_Get_Ceiling): New entity.
18275 (RE_Set_Ceiling): New entity.
18276 (RO_PE_Get_Ceiling): New entity.
18277 (RO_RE_Set_Ceiling): New entity.
18278 (Inherit_CPP_DT): New entity
18280 2006-10-31 Robert Dewar <dewar@adacore.com>
18282 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18283 starting with a digit.
18285 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18286 Thomas Quinot <quinot@adacore.com>
18287 Javier Miranda <miranda@adacore.com>
18288 Gary Dismukes <dismukes@adacore.com>
18290 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18291 properly an attempt to apply Unchecked_Access to a protected operation.
18292 (OK_Self_Reference): New subprogram to check the legality of an access
18293 attribute whose prefix is the type of an enclosing aggregate.
18294 Generalizes previous mechanism to handle attribute references nested
18295 arbitrarily deep within the aggregate.
18296 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18297 can appear in an aggregate if this is a default-initialized aggregate
18298 for a self-referential type.
18299 (Resolve_Attribute, case Access): Ditto.
18300 Add support for new implementation defined attribute Stub_Type.
18301 (Eval_Attribute, case Attribute_Stub_Type): New case.
18302 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18303 (Stream_Attribute_Available): Implement using new subprogram from
18304 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18305 Has_Specified_Stream_Attribute flag.
18306 Disallow Storage_Size and Storage_Pool for access to subprogram
18307 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18308 access types of return subtypes in extended return statements. Remove
18309 accessibility checks on anonymous access types when Unchecked_Access is
18311 (Analyze_Attribute): Add support for the use of 'Class to convert
18312 a class-wide interface to a tagged type.
18313 Add support for the attribute Priority.
18314 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18315 whether the designated type is discriminated with a constrained partial
18316 view and require static matching in that case.
18317 Add local variable Des_Btyp. The Designated_Type
18318 of an access to incomplete subtype is either its non-limited view if
18319 coming from a limited with or its etype if regular incomplete subtype.
18321 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18322 Fix predicate to identify and allow cases of (expander-generated)
18323 references to tag of designated object of a RACW.
18324 (Validate_Static_Object_Name): In Ada 2005, a formal object is
18325 non-static, and therefore cannot appear as a primary in a preelaborable
18327 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18328 Has_Read_Write_Attributes.
18329 (Has_Read_Write_Attributes): Reimplement in termes of
18330 Has_Stream_Attribute_Definition.
18331 (Missing_Read_Write_Attributes): When checking component types in a
18332 record, unconditionally call Missing_Read_Write_Attributes recursively
18333 (remove guard checking for Is_Record_Type / Is_Access_Type).
18335 2006-10-31 Robert Dewar <dewar@adacore.com>
18337 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18338 useless assignments here and conditionalize it on absence of exception
18340 (Analyze_Exception_Handlers): Small code reorganization of error
18341 detection code, for new handling of formal packages.
18343 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18344 Hristian Kirtchev <kirtchev@adacore.com>
18346 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18347 that has been constant-folded, preserve information of original tree,
18349 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18350 generated private extension declaration if the formal derived type is
18351 synchronized. Carry synchronized present over to the generated private
18353 (Validate_Derived_Type_Instance): Ensure that the actual of a
18354 synchronized formal derived type is a synchronized tagged type.
18355 (Instantiate_Formal_Package): When creating the instantiation used to
18356 validate the actual package of a formal declared without a box, check
18357 whether the formal itself depends on a prior actual.
18358 (Instantiate_Formal_Subprogram): Create new entities for the defining
18359 identifiers of the formals in the renaming declaration, for ASIS use.
18360 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18361 a renaming declaration or a subtype declaration for an actual in an
18362 instance, capture location information of declaration in generic, for
18364 (Instantiate_Formal_Package): Add comments on needed additional tests.
18365 AI-317 (partial parametrization) is fully implemented.
18366 (Validate_Private_Type_Instance): Add check for actual which
18367 must have preelaborable initialization
18368 Use new // insertion for some continuation messages
18369 (Analyze_Formal_Object_Declaration): Change usage of Expression to
18370 Default_Expression. Add type retrieval when the declaration has an
18371 access definition. Update premature usage of incomplete type check.
18372 (Check_Access_Definition): New subsidiary routine. Check whether the
18373 current compilation version is Ada 05 and the supplied node has an
18375 (Instantiate object): Alphabetize local variables. Handle the creation
18376 of new renaming declarations with respect to the kind of definition
18377 used - either an access definition or a subtype mark. Guard against
18378 unnecessary error message in the context of anonymous access types after
18379 they have been resolved. Add check for required null exclusion in a
18380 formal object declaration.
18381 (Switch_View): A private subtype of a non-private type needs to be
18382 switched (the base type can have been switched without its private
18383 dependents because of the last branch of Check_Private_View.
18384 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18386 (Instantiate_Type): Emit an error message whenever a class-wide type of
18387 a tagged incomplete type is used as a generic actual.
18388 (Find_Actual_Type): Extend routine to handle a component type in a child
18389 unit that is imported from a formal package in a parent.
18390 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18391 agree on constrainedness, rather than checking against ultimate ancestor
18392 (Instantiate_Subprogram_Body): Create a cross-reference link to the
18393 generic body, for navigation purposes.
18395 2006-10-31 Robert Dewar <dewar@adacore.com>
18396 Thomas Quinot <quinot@adacore.com>
18398 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18400 (New_Stream_Subprogram): When processing an attribute definition clause
18401 for a stream-oriented subprogram, record an entity node occurring at
18402 the point of clause to use for checking the visibility of the clause,
18403 as defined by 8.3(23) as amended by AI-195.
18404 (New_Stream_Subprogram): New procedure, factoring behaviour from both
18405 New_Stream_Function and New_Stream_Procedure.
18406 (New_Stream_Function, New_Stream_Procedure): Removed.
18407 (Analyze_Attribute_Definition_Clause, case Address): Check new
18408 Alignment_Check check
18410 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18411 Javier Miranda <miranda@adacore.com>
18412 Robert Dewar <dewar@adacore.com>
18414 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18415 generate the same errors compiling under -gnatc.
18416 (Try_Object_Operation): If no candidate interpretation succeeds, but
18417 there is at least one primitive operation with the right name, report
18418 error in call rather than on a malformed selected component.
18419 (Analyze_Selected_Component): If the prefix is an incomplete type from
18420 a limited view, and the full view is available, use the full view to
18421 determine whether this is a prefixed call to a primitive operation.
18422 (Operator_Check): Verify that a candidate interpretation is a binary
18423 operation before checking the type of its second formal.
18424 (Analyze_Call): Add additional warnings for function call contexts not
18426 (Analyze_Allocator): Move the check for "initialization not allowed for
18427 limited types" after analyzing the expression. This is necessary,
18428 because OK_For_Limited_Init looks at the structure of the expression.
18429 Before analysis, we don't necessarily know what sort of expression it
18430 is. For example, we don't know whether F(X) is a function call or an
18431 indexed component; the former is legal in Ada 2005; the latter is not.
18432 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18433 were missing. We also didn't handle qualified expressions. Now also
18434 allow function calls. Use new common routine OK_For_Limited_Init.
18435 (Analyze_Type_Conversion): Do not perform some legality checks in an
18436 instance, because the error message will be redundant or spurious.
18437 (Analyze_Overloaded_Selected_Component): Do not do style check when
18438 setting an entity, since we do not know it is the right entity yet.
18439 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18440 (Analyze_Overloaded_Selected_Component): Same change
18441 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18442 since regular incomplete subtypes are transformed into corresponding
18443 subtypes of their full views.
18444 (Complete_Object_Operation): Treat name of transformed subprogram call
18445 as coming from source, for browsing purposes.
18446 (Try_Primitive_Operation): If formal is an access parameter, compare
18447 with base type of object to determine whether it is a primitive
18449 (Operator_Check): If no interpretation of the operator matches, check
18450 whether a use clause on any candidate might make the operation legal.
18451 (Try_Class_Wide_Operation): Check whether the first parameter is an
18452 access type whose designated type is class-wide.
18454 2006-10-31 Robert Dewar <dewar@adacore.com>
18455 Ed Schonberg <schonberg@adacore.com>
18456 Gary Dismukes <dismukes@adacore.com>
18458 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18459 warn on infinite loops.
18460 Add \\ to some continuation messages
18461 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18462 (Process_Bounds): If the bounds are integer literals that result from
18463 constant-folding, and they carry a user-defined type, preserve that type
18464 rather than treating this as an integer range.
18465 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18466 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18467 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18468 left hand side of assignment.
18469 (Analyze_Assignment): Add suport to manage assigments to the attribute
18470 priority of a protected object.
18471 (Check_Possible_Current_Value_Condition): Allow fully qualified names
18472 not just identifiers.
18473 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18474 or AND THEN for possible tracking.
18475 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18476 case of while loops so we can track values in the loop body.
18478 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18479 Hristian Kirtchev <kirtchev@adacore.com>
18480 Bob Duff <duff@adacore.com>
18482 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18483 procedure cannot be a protected operation (it is a basic_declaration,
18484 not a subprogram_declaration).
18485 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18486 Subp. Add logic for entry processing.
18487 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18488 Determine whether an entry or subprogram of a protected or task type
18489 override an inherited primitive of an implemented interface.
18490 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18491 Update the actual used in calls to Check_Overriding_Indicator.
18492 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18493 generate the proper reference to the parent unit, for cross-reference.
18494 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18496 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18497 (Add_Extra_Formal): Revise procedure to allow passing in associated
18498 entity, scope, and name suffix, and handle setting of the new
18499 Extra_Formals field.
18500 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18501 pass new parameters. Add support for adding the new extra access formal
18502 for functions whose calls are treated as build-in-place.
18503 (Analyze_A_Return_Statement): Correct casing in error message.
18504 Move Pop_Scope to after Analyze_Function_Return, because an extended
18505 return statement really is a full-fledged scope. Otherwise, visibility
18506 doesn't work right. Correct use of "\" for continuation messages.
18507 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18508 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18509 the node doesn't get properly marked as analyzed.
18510 (Analyze_Subprogram_Body): If subprogram is a function that returns
18511 an anonymous access type that denotes a task, build a Master Entity
18513 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18514 proper usage of null exclusion in a result definition.
18515 (Process_Formals): Code cleanup and new error message.
18516 (Process_Formals): Detect incorrect application of null exclusion to
18518 (Conforming_Types): Handle conformance between [sub]types and itypes
18519 generated for entities that have null exclusions applied to them.
18520 (Maybe_Primitive_Operation): Add an additional type retrieval when the
18521 base type is an access subtype. This case arrises with null exclusions.
18522 (New_Overloaded_Entity): Do not remove the overriden entity from the
18523 homonym chain if it corresponds with an abstract interface primitive.
18524 (Process_Formals): Replace membership test agains Incomplete_Kind with a
18525 call to the synthesized predicate Is_Incomplete_Type.
18526 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18528 (Analyze_Subprogram_Declaration): Check that abstract interface
18529 primitives are abstract or null.
18530 (Analyze_Subprogram_Specification): Remove previous check for abstract
18531 interfaces because it was not complete.
18532 (Has_Interface_Formals): Removed.
18534 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18535 Javier Miranda <miranda@adacore.com>
18537 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18538 of Analyze_Package_Body, to create Itype references for anonymous
18539 access types created in the package declaration, whose designated types
18540 may have only a limited view.
18541 (Analyze_Package_Specification): For the private part of a nested
18542 package, install private_with_clauses of enclosing compilation unit if
18543 we are in its visible part.
18544 (Declare_Inherited_Private_Subprograms): Complete barrier
18545 to ensure that the primitive operation has an alias to some parent
18546 primitive. This is now required because, after the changes done for the
18547 implementation of abstract interfaces, the contents of the list of
18548 primitives has entities whose alias attribute references entities of
18549 such list of primitives.
18550 (Analyze_Package_Specification): Simplify code that handles parent units
18551 of instances and formal packages.
18552 (Uninstall_Declarations): Check the convention consistency among
18553 primitive overriding operations of a tagged record type.
18555 2006-10-31 Robert Dewar <dewar@adacore.com>
18556 Hristian Kirtchev <kirtchev@adacore.com>
18557 Javier Miranda <miranda@adacore.com>
18558 Ed Schonberg <schonberg@adacore.com>
18560 * sem_ch8.adb: Minor error msg rewording
18561 (Undefined): When checking for misspellings, invert arguments (to get
18562 expected and found set right)
18563 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18564 (Analyze_Generic_Renaming): Same fix
18565 (Use_One_Package): Do not take into account the internal entities of
18566 abstract interfaces during the analysis of entities that are marked
18567 as potentially use-visible.
18568 (Find_Type): Handle the case of an attribute reference for
18569 implementation defined attribute Stub_Type (simply let the analysis of
18570 the attribute reference rewrite it).
18571 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18572 type that appears in a Use_Type clause.
18573 (Analyze_Object_Renaming): Add support for renaming of the Priority
18575 (Find_Type): In Ada 2005, a task type can be used within its own body,
18576 when it appears in an access definition.
18577 (Analyze_Object_Renaming): Remove warning on null_exclusion.
18578 (Analyze_Object_Renaming): Introduce checks for required null exclusion
18579 in a formal object declaration or in a subtype declaration.
18580 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18581 (Check_Null_Exclusion): New local routine to
18582 Analyze_Subprogram_Renaming. Check whether the formals and return
18583 profile of a renamed subprogram have required null exclusions when
18584 their counterparts of the renaming already impose them.
18585 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18586 Determine whether an entity is inside a generic scope.
18587 (In_Open_Scope): First pass of documentation update.
18588 (Find_Expanded_Name): Add support for shadow entities associated with
18589 limited withed packages. This is required to handle nested packages.
18590 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18591 that makes a renaming of a limited withed package illegal.
18593 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18594 Ed Schonberg <schonberg@adacore.com>
18596 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18597 Check_Overriding_Indicator.
18598 (Analyze_Task_Definition): Ditto.
18599 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18600 (Check_Overriding_Indicator): To find overridden interface operation,
18601 examine only homonyms that have an explicit subprogram declaration, not
18602 inherited operations created by an unrelated type derivation.
18603 (Check_Overriding_Indicator): When checking for the presence of "null"
18604 in a procedure, ensure that the queried node is a procedure
18606 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18607 type when the formal is an access to variable.
18608 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18609 (Analyze_Task_Type): Same addition
18610 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18611 provide navigation capabilities for entries.
18613 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18614 Ed Schonberg <schonberg@adacore.com>
18615 Javier Miranda <miranda@adacore.com>
18616 Gary Dismukes <dismukes@adacore.com>
18618 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18619 inherited from an interface ancestor by another interface in the
18620 context of an instance as 'late'.
18621 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18622 of a call to a function that dispatches on access result.
18623 (Check_Dispatching_Operation): In case of late overriding of a primitive
18624 that covers abstract interface subprograms we register it in all the
18625 secondary dispatch tables associated with abstract interfaces.
18626 (Check_Dispatching_Call): Add check that a dispatching call is not made
18627 to a function with a controlling result of a limited type. This is a
18628 current implementation restriction.
18629 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18630 (Check_Dispatching_Operation): Do no emit a warning if the controlling
18631 argument is an interface type that is a generic formal.
18632 (Is_Interface_Subprogram): Removed.
18633 (Check_Dispatching_Operation): If the subprogram is not a dispatching
18634 operation, check the formals to handle the case in which it is
18635 associated with an abstract interface type.
18637 2006-10-31 Robert Dewar <dewar@adacore.com>
18638 Ed Schonberg <schonberg@adacore.com>
18640 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18641 Add new calls to this procedure during traversal
18642 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18643 another unit if expansion is disabled.
18645 2006-10-31 Robert Dewar <dewar@adacore.com>
18647 * sem_eval.adb (Compile_Time_Compare): Make use of information from
18648 Current_Value in the conditional case, to evaluate additional
18649 comparisons at compile time.
18651 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18652 Hristian Kirtchev <kirtchev@adacore.com>
18653 Javier Miranda <miranda@adacore.com>
18655 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18656 subprogram type to provide better diagnostics in case of ambiguity.
18657 (Covers): Handle coverage of formal and actual anonymous access types in
18658 the context of generic instantiation.
18659 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18660 abstract interface types; this is required to handle concurrent types
18661 with discriminants and abstract interface types.
18662 (Covers): Include type coverage of both regular incomplete subtypes and
18663 incomplete subtypes of incomplete type visibles through a limited with
18666 2006-10-31 Robert Dewar <dewar@adacore.com>
18667 Hristian Kirtchev <kirtchev@adacore.com>
18668 Ed Schonberg <schonberg@adacore.com>
18670 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18671 messages for entities in packages which are not used.
18672 (Collect_Synchronized_Interfaces): New procedure.
18673 (Overrides_Synchronized_Primitive): New function.
18674 (Denotes_Discriminant): Extend predicate to apply to task types.
18675 Add missing continuation marks in error msgs
18676 (Unqualify): New function for removing zero or more levels of
18677 qualification from an expression. There are numerous places where this
18678 ought to be used, but we currently only deal properly with zero or one
18680 (In_Instance); The analysis of the actuals in the instantiation of a
18681 child unit is not within an instantiation, even though the parent
18682 instance is on the scope stack.
18683 (Safe_To_Capture_Value): Exclude the case of variables that are
18685 (Check_Obsolescent): Removed
18686 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18687 is an aliased view, even when rewritten as a reference to the target
18688 object in an assignment.
18689 (Get_Subprogram_Entity): New function
18690 (Known_To_Be_Assigned): New function
18691 (Type_Access_Level): Compute properly the access level of a return
18692 subtype that is an anonymous access type.
18693 (Explain_Limited_Type): Correct use of "\" for continuation messages.
18694 (Is_Transfer): The new extended_return_statement causes a transfer of
18696 (Has_Preelaborable_Initialization): New function
18697 (Has_Null_Exclusion): New function. Given a node N, determine whether it
18698 has a null exclusion depending on its Nkind.
18699 Change Is_Lvalue to May_Be_Lvalue
18700 (May_Be_Lvalue): Extensive additional code to deal with subprogram
18701 arguments (IN parameters are not Lvalues, IN OUT parameters are).
18702 (Safe_To_Capture_Value): Extend functionality so it can be used for
18703 the current value condition case.
18704 (Has_Compatible_Alignment): New function
18705 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18706 objects to handle the Ada 2005 case, where aliasedness no longer implies
18707 that the object is constrained. In particular, for dereferenced names,
18708 the designated object must be assumed to be unconstrained.
18709 (Kill_Current_Values): Properly deal with the case where we encounter
18710 a loop in the scope chain.
18711 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18713 (Compile_Time_Constraint_Error): Improve error message in error case
18715 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18716 associated with entities of abstract interface primitives.
18717 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18719 2006-10-31 Robert Dewar <dewar@adacore.com>
18721 * s-osinte-tru64.adb:
18722 Mark Asm statements Volatile to prevent warnings (seems a
18723 reasonable change anyway)
18726 * s-mastop-irix.adb: Add Volatile to Asm statements
18727 Suppresses warning, and seems appropriate in any case
18729 * s-osinte-vms.adb: Add Volatile to Asm statement
18731 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18733 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18735 Add call to Check_Code_Statement
18737 2006-10-31 Robert Dewar <dewar@adacore.com>
18738 Ed Schonberg <schonberg@adacore.com>
18739 Bob Duff <duff@adacore.com>
18741 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18742 Synchronized_Present): Add Formal_Derived_Type_Definition and
18743 Private_Extension_Declaration to the list of assertions.
18744 (Is_Entry_Barrier_Function): New flag
18745 (Has_Self_Reference): New flag on aggregates, to indicate that they
18746 contain a reference to the enclosing type, inserted through a default
18748 (Next_Rep_Item): Move from Node4 to Node5.
18749 (Entity): Add this field for N_Attribute_Definition_Clause.
18750 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18751 (N_Return_Object_Declaration): Remove this node kind. We now use
18752 N_Object_Declaration instead.
18753 (Actual_Designated_Subtype): Move to a different place to make room in
18754 N_Extended_Return_Statement.
18755 (Procedure_To_Call): Move to a different place to make room in
18756 N_Extended_Return_Statement.
18757 (Return_Type): Removed this field to make room in return statements
18759 (Return_Statement_Entity): New field in return statements, in part to
18760 replace Return_Type, and in part to support the fact that return
18761 statements are now pushed on the scope stack during semantic analysis.
18762 (Return_Object_Declarations): New field to support extended return
18764 (N_Extended_Return_Statement): New node for extended_return_statement
18766 (N_Return_Object_Declaration): New node for part of
18767 extended_return_statement nonterminal. Needed because all the necessary
18768 fields won't fit in N_Extended_Return_Statement.
18769 Generic_associations now carry the Box_Present flag, to indicate a
18770 default for an actual in a partially parametrized formal package.
18772 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18773 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18774 and for the new predefined dispatching policies: EDF_Across_Priorities,
18775 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18776 Introduce new name Stub_Type for implementation defined attribute.
18777 Add pragma Preelaborable_Initialization
18778 Add entry for Priority attribute.
18779 Add Pragma_Wide_Character_Encoding
18780 (Get_Convention_Name): Given a convention id, this function returns the
18781 corresponding name id from the names table.
18783 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18784 Robert Dewar <dewar@adacore.com>
18785 Bob Duff <duff@adacore.com>
18787 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18788 print null exclusion twice in the case of an access definition,
18789 Implement new -gnatL switch
18790 Remove N_Return_Object_Declaration. We now use
18791 N_Object_Declaration instead. Implement the case for
18792 N_Extended_Return_Statement. Alphabetize the cases.
18793 Add cases for new nodes N_Extended_Return_Statement and
18794 N_Return_Object_Declaration. The code is not yet written.
18795 Update the output for N_Formal_Object_Declaration
18796 and N_Object_Renaming_Declaration.
18797 (Write_Itype): Account for the case of a modular integer subtype whose
18798 base type is private.
18800 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18802 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18803 Remove elaboration code, now done in the binder.
18805 * s-rident.ads: Make this unit Preelaborate.
18806 (No_Restrictions): New constant used to clean up code and follow
18807 preelaborate constraints.
18810 Add System.Restrictions dependence, referenced directly from the
18811 binder generated file.
18813 2006-10-31 Gary Dismukes <dismukes@adacore.com>
18815 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18816 True when AAMP extended floating-point is in use (48-bit). Change type
18817 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18818 the two byte array types on AFloat. Change type of IV_Ilf overlay
18819 variable from Byte8 to ByteLF. Add appropriate initializations of
18820 floating-point overlays for AAMP cases.
18822 2006-10-31 Javier Miranda <miranda@adacore.com>
18824 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18825 (Get_Ceiling): New subprogram that returns
18826 the ceiling priority of the protected object.
18827 (Set_Ceiling): New subprogram that sets the new ceiling priority of
18828 the protected object.
18830 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18832 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18834 2006-10-31 Jose Ruiz <ruiz@adacore.com>
18836 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18837 requeuing to the same protected object to give higher priority tasks
18838 the opportunity to execute.
18840 2006-10-31 Robert Dewar <dewar@adacore.com>
18842 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18843 add more precise check for the character sequence that follows '[' to
18844 avoid possible confusion in case if '[' is the last character of a
18846 (Scan_Wide): Always allow brackets encoding
18848 2006-10-31 Olivier Hainque <hainque@adacore.com>
18850 * s-stchop.ads: make this unit preelaborate. This is desirable in
18851 general and made mandatory by the use of this unit by s-taprop which
18852 is itself preelaborate.
18854 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18855 Td_Events component.
18857 2006-10-31 Vincent Celier <celier@adacore.com>
18859 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18862 2006-10-31 Vincent Celier <celier@adacore.com>
18864 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18866 2006-10-31 Vincent Celier <celier@adacore.com>
18868 * makegpr.adb (Check_Compilation_Needed): Take into account path names
18870 (Check_Compilation_Needed): When checking a C or C++ source, do not
18871 resolve symbolic links.
18872 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18873 When not in verbose mode and Ellipse is True, display "..." for the
18874 first argument with Display set to False.
18875 (Build_Global_Archive): Always set Display True for the first object
18876 file. Call Display_Command with Ellipse set to True.
18878 2006-10-31 Matt Heaney <heaney@adacore.com>
18880 * a-crbtgo.ads: Commented each subprogram
18882 * a-crbtgo.adb: Added reference to book from which algorithms were
18885 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18886 indicate which child.
18887 (Generic_Conditional_Insert): changed parameter name from "Success" to
18889 (Generic_Unconditional_Insert_With_Hint): improved algorithm
18891 * a-coorse.adb (Replace_Element): changed parameter name in call to
18892 conditional insert operation.
18894 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18896 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18899 * a-ciorse.adb (Replace_Element): changed parameter name in call to
18900 conditional insert operation.
18902 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18905 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18906 instead of mode inout.
18908 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18910 (Generic_Read): preserve existing buckets array if possible
18911 (Generic_Write): don't send buckets array length anymore
18913 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18914 instead of mode inout.
18916 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18917 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18919 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18920 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18921 (Replace_Element): local operation is now an instantiation
18923 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18924 check current length.
18925 (Generic_Replace_Element): new operation
18927 2006-10-31 Doug Rupp <rupp@adacore.com>
18929 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18930 Call TBK$SYMBOLIZE without omitting parameters.
18932 2006-10-31 Vincent Celier <celier@adacore.com>
18934 * symbols-processing-vms-ia64.adb,
18935 symbols-processing-vms-alpha.adb (Process): Do not include symbols
18936 that come from generic instantiations in bodies.
18938 2006-10-31 Pat Rogers <rogers@adacore.com>
18940 * a-rttiev.ads, a-rttiev.adb:
18941 This is a significant redesign primarily for the sake of automatic
18942 timer task termination but also to fix a design flaw.
18943 Therefore we are now using an RTS lock, instead of a protected
18944 object, to provide mutual exclusion to the queue of pending events
18945 and the type Timing_Event is no longer a protected type.
18947 2006-10-31 Robert Dewar <dewar@adacore.com>
18948 Cyrille Comar <comar@adacore.com>
18949 Ben Brosgol <brosgol@adacore.com>
18951 * debug.adb: Update flags documentation
18953 * gnat_ugn.texi: Add documentation for new -gnatwq switch
18954 Clean up documentation for several other warning switches
18955 Clarify how task stack size can be specified with various
18956 versions of Windows.
18957 Add note that -gnatVo includes ranges including loops
18958 Add documentation for -gnatL switch
18959 Add note on elaboration warning for initializing variables
18960 Add documentation for new -gnatwt warning switch
18961 Document new form of pragma Warnings (On|Off, string)
18962 Add comment on use of pragma Warnings to control warnings
18963 Add documentation for -gnatjnn switch
18964 Modify section on interfacing with C for VMS 64-bit.
18965 Add doc for -gnatVe/E
18966 Add documentation of new warning flags -gnatww/-gnatwW
18967 Add warnings about address clause overlays to list of warnings
18968 (Exception Handling Control): Document that the option --RTS must be
18969 used consistently for gcc and gnatbind.
18970 Clarify that inlining is not always possible
18971 Update documentation on pragma Unchecked_Union.
18974 Add documentation for new extended version of pragma Obsolescent
18975 Add documentation for implementation defined attribute 'Stub_Type.
18976 Add note on use of Volatile in asm statements
18977 Add documentation on use of pragma Unreferenced in context clause
18978 Document new form of pragma Warnings (On|Off, pattern)
18979 Document pragma Wide_Character_Encoding
18980 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18981 enforced if code generation is active.
18982 Add section on pragma Suppress to document GNAT specific check
18984 Clarify difference between No_Dispatching_Calls & No_Dispatch.
18985 Add documentation for pragma Restrictions (No_Elaboration_Code)
18988 Add comments on layout of subprogram local variables in the
18989 presence of nested subprograms.
18991 * ug_words: Resync.
18993 * elists.ads: Minor reformatting
18994 Node returns Node_Or_Entity_Id (doc change only)
18996 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18998 * g-arrspl.ads (Create): Update comments.
19000 * sem.ads: Add details on the handling of the scope stack.
19002 * usage.adb: Update documentation.
19004 * validsw.ads, validsw.adb:
19005 Add definition of Validity_Check_Components and implement -gnatVe/E
19007 * vms_data.ads: Add missing VMS qualifiers.
19009 * s-addope.ads: Add documentation on overflow and divide by zero
19011 2006-10-31 Robert Dewar <dewar@adacore.com>
19012 Thomas Quinot <quinot@adacore.com>
19013 Arnaud Charlet <charlet@adacore.com>
19015 * fmap.adb: Put routines in alpha order
19017 * g-boumai.ads: Remove redundant 'in' keywords
19019 * g-cgi.adb: Minor reformatting
19021 * g-cgi.ads: Remove redundant 'in' keywords
19023 * get_targ.adb: Put routines in alpha order
19025 * prj-attr.ads: Minor reformatting
19027 * s-atacco.ads: Minor reformatting
19029 * scn.adb: Put routines in alpha order
19031 * sinput-l.adb: Minor comment fix
19033 * sinput-p.adb: Minor comment fix
19035 * s-maccod.ads: Minor reformatting
19037 * s-memory.adb: Minor reformatting
19039 * s-htable.adb: Fix typo in comment.
19041 * s-secsta.adb: Minor comment update.
19043 * s-soflin.adb: Minor reformatting
19046 Add comment about odd qualification in Storage_Offset declaration
19049 Remove unnecessary 'in' keywords for formal parameters.
19051 * treeprs.adt: Minor reformatting
19053 * urealp.adb: Put routines in alpha order
19055 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19058 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19060 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19062 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19063 workaround as on other platforms.
19065 * g-eacodu-vms.adb: Remove redundant 'in' keywords
19066 * g-expect-vms.adb: Remove redundant 'in' keywords
19068 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19069 clear error message if the list-of-files file cannot be opened.
19071 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19072 equality operator is always visible.
19074 * lang.opt: Woverlength-strings: New option.
19077 Update copyright, since nmake.ads and nmake.adb have changed.
19079 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19080 (Binder_Output_Time_Stamps_Set): removed.
19081 (Old_Binder_Output_Time_Stamp): idem.
19082 (New_Binder_Output_Time_Stamp): idem.
19083 (Recording_Time_From_Last_Bind): idem.
19084 (Recording_Time_From_Last_Bind): Make constant.
19086 * output.ads, output.adb (Write_Str): Allow LF characters
19087 (Write_Spaces): New procedure
19089 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19091 * inline.adb: Minor reformatting
19093 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19095 * s-mastop-vms.adb: Remove redundant 'in' keywords
19097 * s-osprim-vms.adb: Remove redundant 'in' keywords
19099 * s-trafor-default.adb: Remove redundant 'in' keywords
19101 * 9drpc.adb: Remove redundant 'in' keywords
19103 * s-osinte-mingw.ads: Minor reformatting
19105 * s-inmaop-posix.adb: Minor reformatting
19107 * a-direio.ads: Remove quotes from Compile_Time_Warning message
19109 * a-exexda.adb: Minor code reorganization
19111 * a-filico.adb: Minor reformatting
19113 * a-finali.adb: Minor reformatting
19115 * a-nudira.ads: Remove quote from Compile_Time_Warning message
19117 * a-numeri.ads: Minor reformatting
19119 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19121 * exp_pakd.ads: Fix obsolete comment
19123 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19124 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19125 Probably not a bug, but certainly neater and more efficient.
19127 * a-tienio.adb: Minor reformatting
19129 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19130 Avoid assuming low bound of string is 1.
19132 * gnatbind.adb: Change Bindusg to package and rename procedure as
19133 Display, which now ensures that it only outputs usage information once.
19134 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19136 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19139 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19141 (Match): Add pragma Assert to ensure that Matches'First is zero
19143 * g-regpat.ads (Match): Document that Matches lower bound must be zero
19145 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19146 documented preconditions (also kills warnings about bad indexes).
19148 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19150 (Build_Import_Library): Ditto;
19152 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19154 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19156 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19157 lower bound of choice table is 1.
19159 * sem_case.ads (Analyze_Choices): Document that lower bound of
19162 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19165 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19166 and add appropriate Assert pragma to suppress warnings.
19168 * atree.h, atree.ads, atree.adb
19169 Change Elist24 to Elist25
19170 Add definitions of Field28 and Node28
19171 (Traverse_Field): Use new syntactic parent table in sinfo.
19173 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19175 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19177 * exp_tss.adb: Put routines in alpha order
19179 * fe.h: Remove redundant declarations.
19181 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19183 * utils.c (builtin_function): Rename to gnat_builtin_function.
19184 Move common code to add_builtin_function.
19185 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19186 gnat_builtin_function.
19187 * gigi.h (builtin_function): Rename to gnat_builtin_function.
19188 Change the signature.
19190 2006-10-16 Brooks Moses <bmoses@stanford.edu>
19192 * Makefile.in: Add TEXI2PDF definition.
19193 * Make-lang.in: Add "ada.pdf" target.
19195 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
19197 * decl.c, utils.c: Fix comment typos.
19198 * utils.c: Fix a typo.
19200 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
19202 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19203 on "pure" Ada subprograms if SJLJ exceptions are used.
19204 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19205 on the declaration node of JMPBUF_SAVE.
19206 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19207 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19208 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19210 2006-08-20 Laurent Guerby <laurent@guerby.net>
19213 g-socket.adb (Bind_Socket): Call Set_Address.
19215 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19218 * decl.c (same_discriminant_p): New static function.
19219 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19220 subtype and we have discriminants, fix up the COMPONENT_REFs
19221 for the discriminants to make them reference the corresponding
19222 fields of the parent subtype after it has been built.
19224 2006-09-15 Roger Sayle <roger@eyesopen.com>
19227 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19228 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19230 2006-09-13 Olivier Hainque <hainque@adacore.com>
19233 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19234 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19235 let the common gimplifier code make and propagate a temporary copy.
19236 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19237 out/in-out actuals and defer setting the addressable/readonly bits
19240 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19243 * decl.c (components_to_record): Defer emitting debug info for the
19244 record type associated with the variant until after we are sure to
19247 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19250 * gigi.h (gnat_internal_attribute_table): Declare.
19251 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19252 * utils.c (gnat_internal_attribute_table): New global variable.
19253 (builtin_function): Always call decl_attributes on the builtin.
19254 (handle_const_attribute): New static function.
19255 (handle_nothrow_attribute): Likewise.
19257 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19259 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19261 2006-06-23 Olivier Hainque <hainque@adacore.com>
19263 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19264 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19266 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
19267 Eric Botcazou <ebotcazou@adacore.com>
19270 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19271 check-gnat into check-acats.
19273 2006-06-17 Karl Berry <karl@gnu.org>
19275 * gnat-style.texi (@dircategory): Use "Software development"
19276 instead of "Programming", following the Free Software Directory.
19278 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19281 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19283 2006-06-06 Laurent Guerby <laurent@guerby.net>
19286 mlib-utl.adb: Use Program_Name.
19288 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
19290 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19291 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19292 trans.c, utils.c: Fix comment typos. Follow spelling
19294 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19297 2006-05-19 Nicolas Setton <setton@adacore.com>
19299 * misc.c (gnat_dwarf_name): New function.
19300 (LANG_HOOKS_DWARF_NAME): Define to it.
19302 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19304 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19305 (ada/misc.o): Likewise.
19306 (ada/utils.o): Likewise.
19308 2006-04-08 Aurelien Jarno <aurel32@debian.org>
19310 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19311 * s-osinte-kfreebsd-gnu.ads: New file.
19313 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19315 * Make-lang.in: Rename docdir to gcc_docdir.
19317 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19319 * gigi.h (get_ada_base_type): Delete.
19320 * utils2.c (get_ada_base_type): Likewise.
19321 * trans.c (convert_with_check): Operate in the real base type.
19323 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19325 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19327 2006-03-02 Richard Sandiford <richard@codesourcery.com>
19329 * utils.c (create_var_decl): Use have_global_bss_p when deciding
19330 whether to make the decl common.
19332 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19334 * Make-lang.in (Ada): Remove.
19335 (.PHONY): Remove Ada
19337 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19339 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19340 aggregate, check the interpretations of the other operand to find one
19341 that may be a boolean array.
19343 (Analyze_Selected_Component): Fix flow-of-control typo in case where
19344 the prefix is a private extension.
19346 2006-02-17 Eric Botcazou <botcazou@adacore.com>
19349 * utils2.c (find_common_type): If both input types are BLKmode and
19350 have the same constant size, keep using the first one.
19352 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19354 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19356 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19358 2006-02-17 Jose Ruiz <ruiz@adacore.com>
19360 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19361 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19362 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19363 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19364 Abort_Defer/Undefer pairs to avoid the possibility of a task being
19365 aborted while owning a lock.
19367 2006-02-17 Javier Miranda <miranda@adacore.com>
19368 Robert Dewar <dewar@adacore.com>
19370 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19371 through an access to class-wide interface we force the displacement of
19372 the pointer to the allocated object to reference the corresponding
19373 secondary dispatch table.
19374 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19375 if Long_Shifts are supported on the target, even if 64 bit divides
19376 are not supported (configurable run time mode).
19377 (Expand_N_Type_Conversion): Do validity check if validity checks on
19378 operands are enabled.
19379 (Expand_N_Qualified_Expression): Do validity check if validity checks
19380 on operands are enabled.
19382 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19384 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19385 must be materialized when the renamed expression is an explicit
19388 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19390 * freeze.adb (Statically_Discriminated_Components): Return false if
19391 the bounds of the type of the discriminant are not static expressions.
19393 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19394 the bounds of the discriminant type are not static.
19396 2006-02-17 Robert Dewar <dewar@adacore.com>
19398 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19399 then we close To if it is valid.
19401 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19403 * init.c (facility_resignal_table): new array
19404 (__gnat_default_resignal_p): enhance default predicate to resignal if
19405 VMS condition has one of the predefined facility codes.
19407 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19409 * Makefile.in: Use VMS64 specialized versions of several units in
19410 Interfaces.C hierarchy to be compatible with HP C default size choices.
19411 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19413 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19415 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19416 instantiation, the corresponding entity is the related_instance of the
19417 wrapper package created for the instance.
19419 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19421 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19422 the current instance is nested within another instance in a child unit.
19424 2006-02-17 Javier Miranda <miranda@adacore.com>
19425 Ed Schonberg <schonberg@adacore.com>
19427 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19428 type we cannot inherit the primitive operations; we inherit the
19429 Corresponding_Record_Type (which has the list of primitive operations).
19430 (Check_Anonymous_Access_Types): When creating anonymous access types for
19431 access components, use Rewrite in order to preserve the tree structure,
19433 (Analyze_Object_Declaration): For limited types with access
19434 discriminants with defaults initialized by an aggregate, obtain
19435 subtype from aggregate as for other mutable types.
19436 (Derived_Type_Declaration): If the derived type is a limited interface,
19437 set the corresponding flag (Is_Limited_Record is not sufficient).
19439 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19441 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19442 to inline a function that returns an unconstrained type, the return
19443 expression must be the first variable declared in the body of the
19446 2006-02-17 Javier Miranda <miranda@adacore.com>
19448 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19449 abstract interface type, the static analysis is not enough to know if
19450 the interface is implemented or not by the source tagged type. Hence
19451 we must pass the work to the expander to generate the required code to
19452 evaluate the conversion at run-time.
19453 (Resolve_Equality_Op): Do not apply previous
19454 transformation if expansion is disasbled, to prevent anomalies when
19455 locating global references in a generic unit.
19457 2006-02-17 Vincent Celier <celier@adacore.com>
19459 * snames.ads, snames.adb: New standard names for new project attributes:
19460 archive_builder, archive_indexer, compiler_pic_option,
19461 config_body_file_name, config_body_file_name_pattern,
19462 config_file_switches, config_file_unique, config_spec_file_name,
19463 config_spec_file_name_pattern, default_builder_switches,
19464 default_global_compiler_switches, default_language,
19465 dependency_file_kind, global_compiler_switches, include_path,
19466 include_path_file, language_kind, linker_executable_option,
19467 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19468 roots, runtime_project.
19470 2006-02-17 Matthew Heaney <heaney@adacore.com>
19472 * a-convec.ads, a-convec.adb:
19473 (operator "&"): handle potential overflow for large index types
19474 (Insert): removed Contraint_Error when using large index types
19475 (Insert_Space): removed Constraint_Error for large index types
19476 (Length): moved constraint check from Length to Insert
19478 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19479 as not null access.
19480 Explicit raise statements now include an exception message.
19481 (operator "&"): handle potential overflow for large index types
19482 (Insert): removed Contraint_Error when using large index types
19483 (Insert_Space): removed Constraint_Error for large index types
19484 (Length): moved constraint check from Length to Insert
19486 2006-02-17 Robert Dewar <dewar@adacore.com>
19488 * s-wchcnv.adb: Document handling of [ on output (we do not change
19489 this to ["5B"] and the new comments say why not.
19492 Add note for -gnatVo that this now includes the cases of type
19493 conversions and qualified expressions.
19494 Add comments on handling of brackets encoding for Text_IO
19496 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
19497 Thomas Quinot <quinot@adacore.com>
19498 Robert Dewar <dewar@adacore.com>
19499 Javier Miranda <miranda@adacore.com>
19501 * expander.adb: Fix typo in comment
19503 * exp_pakd.adb: Fix typo
19504 Minor comment reformatting.
19506 * g-dyntab.adb: Minor reformatting
19508 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19509 aliased subprograms to look for the abstract interface subprogram.
19511 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
19513 * env.c (__gnat_setenv): Use size_t.
19514 (__gnat_unsetenv): Likewise.
19515 (__gnat_clearenv): Likewise.
19517 2006-02-16 Arnaud Charlet <charlet@adacore.com>
19519 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19521 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19523 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19524 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19525 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19526 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19527 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19528 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19529 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19530 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19531 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19534 2006-02-13 Jose Ruiz <ruiz@adacore.com>
19536 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19537 protection against race conditions is not needed.
19538 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19540 (Set_Specific_Handler): Add mutual exclusive access to the specific
19542 (Specific_Handler): Add mutual exclusive access for retrieving the
19545 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19548 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19549 Fall_Back_Handler and Specific_Handler.
19551 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19552 termination handlers.
19553 Set two different owerflow depending on the maximal stack size.
19555 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19556 protection against race conditions is not needed when executing the
19557 task termination handler.
19559 2006-02-13 Robert Dewar <dewar@adacore.com>
19561 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19562 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19563 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19564 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19565 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19566 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19567 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19568 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19569 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19570 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19571 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19572 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19573 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19574 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19575 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19576 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19577 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19578 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19579 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19580 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19581 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19582 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19583 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19584 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19585 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19586 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19587 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19588 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19589 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19590 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19591 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19592 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19593 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19594 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19597 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19599 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19600 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19601 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19602 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19603 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19604 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19605 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19606 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19607 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19609 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19611 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19612 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19613 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19614 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19615 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19616 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19617 replaced by anonymous access type.
19618 (pthread_sigmask): Now take an access sigset_t
19620 * s-osinte-hpux.ads: Ditto.
19621 (pthread_mutex_t, pthread_cond_t): Update definitions to support
19622 properly 32 and 64 bit ABIs.
19624 2006-02-13 Pascal Obry <obry@adacore.com>
19626 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19627 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19628 s-taprop-linux.adb, s-taprop-solaris.adb,
19629 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19630 adjustement is already done when calling this routine.
19632 2006-02-13 Pascal Obry <obry@adacore.com>
19634 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19635 table to take advantage of the 16 priority levels available on Windows
19636 2000 and XP. On NT4 there are only 7 priority levels, this is properly
19637 supported by this new mapping.
19639 2006-02-13 Nicolas Setton <setton@adacore.com>
19641 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19642 (get_encoding): New subprogram. Extracts the encodings from an encoded
19645 2006-02-13 Pascal Obry <obry@adacore.com>
19646 Nicolas Roche <roche@adacore.com>
19647 Arnaud Charlet <charlet@adacore.com>
19649 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19651 (__gnat_try_lock): Add unicode support by using a specific section on
19653 (__gnat_get_current_dir): Idem.
19654 (__gnat_open_read): Idem.
19655 (__gnat_open_rw): Idem.
19656 (__gnat_open_create): Idem.
19657 (__gnat_create_output_file): Idem.
19658 (__gnat_open_append): Idem.
19659 (__gnat_open_new): Idem.
19660 (__gnat_file_time_name): Idem.
19661 (__gnat_set_file_time_name): Idem.
19662 (__gnat_stat): Idem.
19663 (win32_no_block_spawn): Idem.
19664 (__gnat_locate_exec_on_path): Idem.
19665 (__gnat_opendir): New routine.
19666 (__gnat_closedir): Idem.
19667 (__gnat_readdir): Add new parameter length (pointer to int). Update
19668 implementation to use it and add specific Win32 code for Unicode
19670 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19671 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19672 (convert_addresses): Do not define this dummy routine on VMS.
19674 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19675 runtime Unicode support will be activated.
19676 (S2WS): String to Wide-String conversion. This version just copy a
19677 string in non Unicode version.
19678 (WS2S): Wide-String to String conversion. This version just copy a
19679 string in non Unicode version.
19681 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19682 (Open): Now import __gnat_opendir from adaint.c.
19683 (Read): Change the implementation to support unicode characters. It is
19684 not possible to use strlen() on Windows as this version supports only
19685 standard ASCII characters. So the length of the directory entry is now
19686 returned from the imported __gnat_readdir routine.
19687 Update copyright notice.
19689 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19690 (opendir): Moved to adaint.c.
19692 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19693 (Get_Directory): Fix wrong indexing.
19694 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19695 __gnat_getenv from env.c
19696 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19699 * env.h, env.c: New file.
19701 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19702 adaint.c by __gnat_getenv from env.c
19704 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19705 adaint.c by __gnat_getenv from env.c
19707 * Make-lang.in: Add env.o in the list of C object needed by gnat1
19709 Update dependencies.
19711 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19712 Olivier Hainque <hainque@adacore.com>
19713 Eric Botcazou <ebotcazou@adacore.com>
19715 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19717 * gigi.h (value_factor_p): Add prototype and description, now public.
19719 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19720 promotion for field with rep clause if the associated size was proven
19722 Expand comments describing attempts to use a packable type.
19723 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19724 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19725 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19726 necessary since these are not different types and pointers may
19727 actually designate any subtype in this hierarchy.
19728 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19729 discriminants but put them into record only if not Unchecked_Union;
19730 pass flag to components_to_record showing Unchecked_Union.
19731 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19732 components before variants; don't set TYPE_UNCHECKED_UNION_P.
19733 (components_to_record): New argument UNCHECKED_UNION.
19734 Remove special case code for Unchecked_Union and instead use main code
19735 with small changes.
19738 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19739 variable with the expression being built, only its inner field.
19741 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19742 emit_sequence_entry_statements.
19743 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19744 (establish_gnat_vms_condition_handler): Move before
19745 Subprogram_Body_to_gnu.
19746 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19747 for a subprogram if it has a foreign convention or is exported.
19748 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19749 substituted for a CONST_DECL.
19750 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19751 Etype to assoc_to_constructor.
19752 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19753 discriminants of Unchecked_Union.
19754 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19755 don't need cluttering preprocessor directives.
19756 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19757 condition handler as current in the compiled function.
19758 (body_with_handlers_p): New function. Tell whether a given sequence of
19759 statements node is attached to a package or subprogram body and involves
19760 exception handlers possibly nested within inner block statements.
19761 (emit_sequence_entry_statements): New function, to emit special
19762 statements on entry of sequences when necessary. Establish GNAT
19763 condition handler in the proper cases for VMS.
19764 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19765 emit_sequence_entry_statements.
19767 * utils2.c (find_common_type): If both input types are BLKmode and
19768 have a constant size, use the smaller one.
19769 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19772 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19774 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19775 (convert, case UNION_TYPE): Remove special treatment for unchecked
19779 (update_pointer_to): Update variants of pointer types to unconstrained
19780 arrays by attaching the list of fields of the main variant.
19782 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19783 Robert Dewar <dewar@adacore.com>
19785 * a-exexpr.adb, a-exexpr-gcc.adb
19786 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19787 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19788 Remove code unused for exception propagation for the compiler itself
19789 from a-except.adb and update to still share separate packages.
19791 * a-except.ads, a-except.adb: Ditto.
19792 Add comments that this version is now used only by the compiler and
19793 other basic tools. The full version that includes the Ada 2005 stuff
19794 is in separate files a-except-2005.ads/adb. The reason is that we do
19795 not want to cause bootstrap problems with compilers not recognizing
19797 Add exception reason code PE_Implicit_Return
19798 Add new exception reason code (Null Exception_Id)
19800 * a-except-2005.adb, a-except-2005.ads: New files.
19802 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19804 * s-wchcon.adb: New file.
19806 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19807 (traceback.o deps): Likewise.
19808 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19809 Activate build of GMEM instrumentation library on VMS targets.
19810 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19811 Use a-except-2005.ads/adb for all run-time library builds unless
19812 specified otherwise.
19813 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19814 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19815 Use s-parame.adb on all native platforms.
19816 Use s-parame-vxworks.adb on all vxworks platforms.
19817 Add env.c env.h in LIBGNAT_SRCS
19818 Add env.o in LIBGNAT_OBJS
19819 (GNATMAKE_OBJS): Remove ctrl_c.o object.
19820 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19821 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19822 supports VxWorks 6 RTPs.
19823 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19824 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19826 * types.h, types.ads (Terminate_Program): New exception
19827 Add comment on modifying multiple versions of a-except.adb when the
19828 table of exception reasons is modified.
19829 Add exception reason code PE_Implicit_Return
19830 Add new exception reason code (Null Exception_Id)
19832 * clean.adb (Initialize): Get the target parameters before checking
19833 if target is OpenVMS. Move the OpenVMS specific code here from package
19834 body elaboration code.
19836 2006-02-13 Thomas Quinot <quinot@adacore.com>
19837 Vincent Celier <celier@adacore.com>
19838 Robert Dewar <dewar@adacore.com>
19840 * ali-util.adb (Get_File_Checksum): Update to account for change in
19841 profile of Initialize_Scanner.
19843 * gprep.adb (Gnatprep): Update to account for change in profile of
19844 Initialize_Scanner.
19845 (Process_One_File): Same.
19847 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19848 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19849 that behaviour using the new Unit information recorded in the source
19850 files table, rather than going through all units every time.
19851 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19852 (Get_Source_Unit): Same.
19854 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19855 change in profile of Initialize_Scanner.
19856 (Prepare_To_Preprocess): Same.
19858 * lib.ads: Fix typo in comment (templace -> template).
19860 * prj-part.adb (Parse_Single_Project): Update to account for change in
19861 profile of Initialize_Scanner.
19863 * scn.adb (Initialize_Scanner): Account for change in profile of
19864 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19865 Also record the association of the given Source_File_Index to the
19866 corresponding Unit_Number_Type.
19868 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19870 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19871 Remove Unit formal for generic scanner: this formal
19872 is only relevant to Scn (the scanner instance used to parse Ada source
19873 files), not to other instances. Update comment accordingly.
19874 (Scan): Use new function Snames.Is_Keyword_Name.
19876 * sinfo-cn.adb: Fix typo in comment.
19878 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19881 * sinput.ads (Source_File_Record): New component Unit, used to capture
19882 the unit identifier (if any) associated to a source file.
19884 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19885 Unit in Source_File_Record.
19887 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19888 in profile of Initialize_Scanner.
19890 * scans.adb (Initialize_Ada_Keywords): New procedure
19892 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19893 Ada keywords in the Namet table, without the need to call
19894 Initialize_Scanner.
19896 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19897 (Is_Keyword_Name): New function
19899 * snames.ads: Add subtype Configuration_Pragma_Names
19900 Add pragma Ada_2005 (synonym for Ada_05)
19901 (Is_Keyword_Name): New function
19903 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19905 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19907 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19910 * a-stwima.adb (To_Set): Add extra check when N = 0.
19912 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19914 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19916 * s-parame-mingw.adb, s-parame-linux.adb,
19917 s-parame-solaris.adb: Removed, replaced by s-parame.adb
19919 * s-parame-vxworks.ads: Fix typo.
19921 * s-parame-vxworks.adb: New file.
19923 * s-parame.adb: Version now used by all native platforms.
19924 (Default_Stack_Size): Use 2 megs for default stack size and use
19925 __gl_default_stack_size when available.
19926 (Minimum_Stack_Size): Use 12K.
19928 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19929 (Create_Task): Refine implementation taking advantage of the XP stack
19930 size support. On XP, we now create the thread using the flag
19931 STACK_SIZE_PARAM_IS_A_RESERVATION.
19933 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19935 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19936 XP and 0 on older Windows versions.
19938 * interfac-vms.ads: Removed, no longer used.
19940 2006-02-13 Matthew Heaney <heaney@adacore.com>
19942 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
19943 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
19944 a-cohase.adb: All explicit raise statements now include an exception
19947 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19948 (Update_Element_Preserving_Key): renamed op to just Update_Element.
19949 Explicit raise statements now include an exception message
19951 * a-cihase.ads, a-cohase.ads: Removed comment.
19953 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19954 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19955 a-szbzha.adb, a-szfzha.ads: New files.
19957 2006-02-13 Matthew Heaney <heaney@adacore.com>
19959 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19962 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19964 * lang.opt: Wvariadic-macros: New option.
19965 Wold-style-definition: Likewise.
19966 Wmissing-format-attribute: Likewise.
19968 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19969 -Wold-style-definition and -Wmissing-format-attribute.
19971 2006-02-13 Robert Dewar <dewar@adacore.com>
19973 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19975 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19977 2006-02-13 Nicolas Roche <roche@adacore.com>
19979 * a-envvar.adb, a-envvar.ads: New files.
19981 2006-02-13 Douglas Rupp <rupp@adacore.com>
19983 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19985 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19987 2006-02-13 Pat Rogers <rogers@adacore.com>
19989 * a-rttiev.adb, a-rttiev.ads: New files.
19991 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19993 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19994 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
19996 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19998 2006-02-13 Robert Dewar <dewar@adacore.com>
20000 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
20001 sem_case.adb: Minor code reorganization (not Present should be No)
20003 2006-02-13 Geert Bosch <bosch@adacore.com>
20004 Gary Dismukes <dismukes@adacore.com>
20006 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
20007 0, since the lower bound of the actual string may be greater than one.
20010 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
20011 layout is requested.
20013 2006-02-13 Vincent Celier <celier@adacore.com>
20015 * back_end.adb (Scan_Compiler_Arguments): Check if
20016 Search_Directory_Present is True and, if it is, add the argument in
20017 the source search directory path.
20019 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
20020 Search_Directory_Present to True.
20022 2006-02-13 Joel Brobecker <brobecke@adacore.com>
20024 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
20025 volatile, to tell the compiler to preserve this variable at any level
20027 (Gen_Versions_Ada): Temporarily work around codegen bug.
20029 2006-02-13 Vincent Celier <celier@adacore.com>
20031 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
20032 gcc to link with option -shared-libgcc.
20033 (Gnatlink): Remove duplicate switches -shared-libgcc
20035 2006-02-13 Robert Dewar <dewar@adacore.com>
20037 * gnatvsn.ads (Current_Year): New constant, used to easily update
20038 copyright on all GNAT tools.
20040 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
20043 2006-02-13 Robert Dewar <dewar@adacore.com>
20045 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20046 after hyphen (small aesthetic change useful for a range of numbers
20048 Suppress range checks for a couple of assignments which otherwise
20049 cause validity checks with validity checking turned on.
20051 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20052 Improvement in error message for object.
20053 (Rep_Item_Too_Late): Remove '!' in warning message.
20055 2006-02-13 Robert Dewar <dewar@adacore.com>
20056 Eric Botcazou <ebotcazou@adacore.com>
20058 * err_vars.ads: Suppress range checks for a couple of assignments
20059 which otherwise cause validity checks with validity checking turned on.
20062 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20063 Make message unconditional if it is a warning.
20064 (Error_Msg_NEL): Always output warning messages.
20065 Suppress range checks for a couple of assignments which otherwise
20066 cause validity checks with validity checking turned on.
20068 * errout.ads (Message Insertion Characters): Document that '!' is
20069 implied by '?' in error messages.
20071 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20072 (Gnat1drv): Use a goto to end of main subprogram instead of
20073 Exit_Program (E_Success) so that finalization can occur normally.
20075 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20077 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20080 2006-02-13 Vincent Celier <celier@adacore.com>
20082 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20083 Unchecked_Conversion functions.
20084 (Modification_Time): Use direct conversion of OS_Time to Calendar time
20085 when OpenVMS returns False.
20087 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20088 a-dirval.adb (OpenVMS): New Boolean function
20090 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20091 Thomas Quinot <quinot@adacore.com>
20093 * checks.adb (Build_Discriminant_Checks): If the expression being
20094 checks is an aggregate retrieve the values of its discriminants to
20095 generate the check, rather than creating a temporary and a reference
20097 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20098 (Install_Null_Excluding_Check): Ditto
20099 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20100 not for the renamed object, so that the actual itype is attached in the
20103 2006-02-13 Robert Dewar <dewar@adacore.com>
20104 Vincent Celier <celier@adacore.com>
20106 * debug.adb: Eliminate numeric switches for binder/gnatmake
20108 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20109 switches for the compiler.
20110 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20111 (Scan_Make_Switches): When failing with an illegal switch, output an
20112 error message with the full switch.
20113 Eliminate numeric switches for binder/gnatmake
20115 * switch.ads, switch.adb (Bad_Switch): New procedure
20117 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20118 Remove 0-9 as debug flag character possibilities
20119 -d is now controlling the primary stack size when its value is a
20120 positive. Also add checks against invalid values, and support for kb,
20121 mb. Ditto for -D switch.
20123 2006-02-13 Robert Dewar <dewar@adacore.com>
20124 Serguei Rybin <rybin@adacore.com>
20126 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20127 save/restore routines.
20128 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20129 were not always properly handled previously.
20130 Since we are changing the tree format anyway, also get rid of the
20131 junk obsolete Immediate_Errors flag.
20132 (Tree_Read): Change the way of reading Tree_Version_String - now we
20133 read the version string from the tree even if its length is not the
20134 same as the length of the version string computed from Gnatvsn.
20135 (Search_Directory_Present): New Boolean flag for the compiler.
20136 Define Tree_Version_String as a dynamic string.
20137 (Default_Stack_Size): new variable, used to handle switch -d.
20140 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20141 only for main unit.
20142 Add pragma Ada_2005 (synonym for Ada_05)
20143 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20144 were not always properly handled previously.
20146 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20147 explicit Ada_95 to Ada_2005.
20149 2006-02-13 Javier Miranda <miranda@adacore.com>
20150 Robert Dewar <dewar@adacore.com>
20151 Ed Schonberg <schonberg@adacore.com>
20153 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20154 against errors in the source program: a private types for which the
20155 corresponding full type declaration is missing and pragma CPP_Virtual
20157 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20158 (Is_Known_Null): New flag
20159 (Has_Pragma_Pure): New flag
20160 (No_Return): Present in all entities, set only for procedures
20161 (Is_Limited_Type): A type whose ancestor is an interface is limited if
20162 explicitly declared limited.
20163 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20164 entities. Only used for component marked Is_Tag. If present it stores
20165 the Offset_To_Top function used to provide this value in tagged types
20166 whose ancestor has discriminants.
20168 * exp_ch2.adb: Update status of new Is_Known_Null flag
20170 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20172 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20173 the categorization sense if Is_Pure was set by pragma Pure_Function.
20175 2006-02-13 Quentin Ochem <ochem@adacore.com>
20176 Olivier Hainque <hainque@adacore.com>
20178 * bindusg.adb: Updated documentation for -d and -D switches.
20180 * raise.h (__gnat_set_globals): added new parameter for
20181 Default_Stack_Size.
20183 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20184 (__gnat_handle_vms_condition): Adjust context before raise.
20185 (__gnat_install_handler): Restore the global vector setup for GCC
20186 versions before 3.4, as the frame based circtuitry is not available
20188 (__gnat_set_globals): added a parameter default_stack_size
20189 (__gl_default_stack_size): new variable.
20191 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20193 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20194 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20195 does not exist in the Ada RM.
20196 (Compatible_Int_Bounds): Determine whether two integer range bounds
20197 are of equal length and have the same start and end values.
20198 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20199 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20200 aggregate when it is part of an object declaration.
20201 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
20202 constrains discriminants of its parent, add explicitly the discriminant
20203 constraints of the ancestor by retrieving them from the
20204 stored_constraint of the parent.
20206 2006-02-13 Robert Dewar <dewar@adacore.com>
20208 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20209 attribute Mechanism_Code is applied to renamed subprogram, modify
20210 prefix to point to base subprogram.
20211 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20213 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20214 renamed subprograms so that the front-end must replace the prefix
20217 2006-02-13 Javier Miranda <miranda@adacore.com>
20218 Gary Dismukes <dismukes@adacore.com>
20220 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20221 availability of RE_Interface_Tag.
20222 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20223 (Freeze_Record_Type): Do not generate the tables associated with
20224 timed and conditional dispatching calls through synchronized
20225 interfaces if compiling under No_Dispatching_Calls restriction.
20226 When compiling for Ada 2005, for a nonabstract
20227 type with a null extension, call Make_Controlling_Function_Wrappers
20228 and insert the wrapper function declarations and bodies (the latter
20229 being appended as freeze actions).
20230 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20231 predefined primitives associated with timed and conditional
20232 dispatching calls through synchronized interfaces if we are
20233 compiling under No_Dispatching_Calls.
20234 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20235 service is available before generating a call.
20236 (Make_Controlling_Function_Wrappers): New procedure.
20237 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20238 access-to-limited-interfaces because they can be used to reference
20239 tasks that implement such limited interface.
20240 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20241 procedure spec and body of the Offset_To_Top function that is generated
20242 when the parent of a type with discriminants has secondary dispatch
20244 (Init_Secondary_Tags): Handle the case in which the parent of the type
20245 containing secondary dispatch tables has discriminants to generate the
20246 correct arguments to call Set_Offset_To_Top.
20247 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20249 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20250 Add Wide_[Wide_]Expanded_Name.
20251 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20252 the same functionality of Get_Prim_Op_Address but applied to predefined
20253 primitive operations because the pointers to the predefined primitives
20254 are now saved in a separate table.
20255 (Parent_Size): Modified to get access to the separate table of primitive
20256 operations or the parent type.
20257 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20258 functionality of Set_Prim_Op_Address but applied to predefined primitive
20260 (Set_Signature): New subprogram used to store the signature of a DT.
20261 (Displace): If the Offset_To_Top value is not static then call the
20262 function generated by the expander to get such value; otherwise use
20263 the value stored in the table of interfaces.
20264 (Offset_To_Top): The type of the actual has been changed to Address to
20265 give the correct support to tagged types with discriminants. In this
20266 case this value is stored just immediately after the tag field.
20267 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20268 offset_to_top value is static and hence pass this value to the run-time
20269 to store it in the table of interfaces, or else if this value is dynamic
20270 and then pass to the run-time the address of a function that is
20271 generated by the expander to provide this value for each object of the
20274 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20275 (Default_Prim_Op_Count): New entity
20276 (Get_Predefined_Prim_Op_Address): New entity
20277 (Set_Predefined_Prim_Op_Address): New entity
20278 (RE_Set_Signature): New entity
20280 2006-02-13 Thomas Quinot <quinot@adacore.com>
20281 Ed Schonberg <schonberg@adacore.com>
20283 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20284 Make_Adjust_Call done for a newly-allocated object.
20286 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20287 in a subprogram are wrapped in a cleanup block, indicate that the
20288 subprogram contains an inner block with an exception handler.
20289 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20290 Adjust call is for a newly-allocated object. In that case we must not
20291 assume that the finalization list chain pointers are correct (since they
20292 come from a bit-for-bit copy of the original object's pointers) so if
20293 the attach level would otherwise be zero (no change), we set it to 4
20294 instead to cause the pointers to be reset to null.
20296 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20297 reset chain pointers to null.
20299 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20301 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20302 string, and the context requires a loop for the assignment (e.g.
20303 because the left-hand side is packed), generate a unique name for the
20304 temporary that holds the string, to prevent spurious name clashes.
20306 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20307 Javier Miranda <miranda@adacore.com>
20308 Robert Dewar <dewar@adacore.com>
20309 Gary Dismukes <dismukes@adacore.com>
20311 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20312 return unconstrained arrays.
20314 (Expand_Call): An indirect call through an access parameter of a
20315 protected operation is not a protected call.
20316 Add circuit to raise CE in Ada 2005 mode following call
20317 to Raise_Exception.
20318 (Register_DT_Entry): Do nothing if
20319 the run-time does not give support to abstract interfaces.
20320 (Freeze_Subprogram): In case of dispatching operations, do not generate
20321 code to register the operation in the dispatch table if the source
20322 is compiled with No_Dispatching_Calls.
20323 (Register_Predefined_DT_Entry): Generate code that calls the new
20324 run-time subprogram Set_Predefined_Prim_Op_Address instead of
20325 Set_Prim_Op_Address.
20327 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20328 on array assignments if the right-hand side is a function call that has
20329 been inlined. Check is performed on the assignment in the block.
20330 (Process_Bounds): If bounds and range are overloaded, apply preference
20331 rule for root operations to disambiguate, and diagnose true ambiguity.
20332 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20333 a tag-indeterminate right-hand side even when Expander_Active is True.
20334 Needed to ensure that dispatching calls to T'Input are allowed and
20335 get the tag of the target class-wide object.
20337 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20338 an inherited primitive operation that already overrides several
20339 abstract interface primitives. For transitivity, the new entity must
20340 also override all the abstract interface primitives covered by the
20341 inherited overriden primitive.
20342 Emit warning if new entity differs from homograph in same scope only in
20343 that one has an access parameter and the other one has a parameter of
20344 a general access type with the same designated type, at the same
20345 position in the signature.
20346 (Make_Inequality_Operator): Use source locations of parameters and
20347 subtype marks from corresponding equality operator when creating the
20348 tree structure for the implicit declaration of "/=". This does not
20349 change anything in behaviour except that the decoration of the
20350 components of the subtree created for "/=" allows ASIS to get the
20351 string images of the corresponding identifiers.
20352 (Analyze_Return_Statement): Remove '!' in warning message.
20353 (Check_Statement_Sequence): Likewise.
20354 (Analyze_Subprogram_Body): For an access parameter whose designated type
20355 is an incomplete type imported through a limited_with clause, use the
20356 type of the corresponding formal in the body.
20357 (Check_Returns): Implicit return in No_Return procedure now raises
20358 Program_Error with a compile time warning, instead of beging illegal.
20359 (Has_Single_Return): Function returning unconstrained type cannot be
20360 inlined if expression in unique return statement is not an identifier.
20361 (Build_Body_To_Inline): It is possible to inline a function call that
20362 returns an unconstrained type if all return statements in the function
20363 return the same local variable. Subsidiary procedure Has_Single_Return
20364 verifies that the body conforms to this restriction.
20366 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20367 same type, and one of them is of an anonymous access type, convert
20368 the other operand to it, so that this is a valid binary operation for
20370 (Resolve_Type_Conversion): Handle subtypes of protected types and
20371 task types when accessing to the corresponding record type.
20372 (Resolve_Allocator): Add '\' in 2-line warning message.
20373 Remove '!' in warning message.
20374 (Resolve_Call): Add '\' in 2-line warning message.
20375 (Valid_Conversion): Likewise.
20376 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20377 resulting type may be an access type with an implicit dereference.
20378 Obtain the proper component from the designated type.
20379 (Make_Call_Into_Operator): Handle properly a call to predefined equality
20380 given by an expanded name with prefix Standard, when the operands are
20381 of an anonymous access type.
20382 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20383 Explicit_Dereference and Resolve_Selected_Component, to verify that the
20384 prefix of the expression is not of an incomplete type. Allows full
20385 diagnoses of all semantic errors.
20386 (Resolve_Actuals): If the actual is an allocator whose directly
20387 designated type is a class-wide interface we build an anonymous
20388 access type to use it as the type of the allocator. Later, when
20389 the subprogram call is expanded, if the interface has a secondary
20390 dispatch table the expander will add a type conversion to force
20391 the displacement of the pointer.
20392 (Resolve_Call): If a function that returns an unconstrained type is
20393 marked Inlined_Always and inlined, the call will be inlined and does
20394 not require the creation of a transient scope.
20395 (Check_Direct_Boolean_Op): Removed
20396 (Resolve_Comparison_Op): Remove call to above
20397 (Resolve_Equality_Op): Remove call to above
20398 (Resolve_Logical_Op): Inline above, since this is only call.
20399 (Valid_Conversion): Handle properly conversions between arrays of
20400 convertible anonymous access types.
20403 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20404 the literal in an unchecked conversion, because GCC 4.x needs a static
20405 value for a string bound.
20407 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20408 Hristian Kirtchev <kirtchev@adacore.com>
20410 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20411 components of the corresponding record, take into account component
20412 definitions that are access definitions.
20413 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20414 procedure is not considered a dispatching call and will be expanded
20417 2006-02-13 Javier Miranda <miranda@adacore.com>
20419 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20420 controlling argument of the dispatching call is an abstract interface
20421 class-wide type then we use it directly.
20422 Check No_Dispatching_Calls restriction.
20423 (Default_Prim_Op_Position): Remove the code that looks for the last
20424 entity in the list of aliased subprograms. This code was wrong in
20426 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20427 when the source is compiled with the No_Dispatching_Calls restriction.
20428 (Init_Predefined_Interface_Primitives): No need to inherit primitives
20429 if we are compiling with restriction No_Dispatching_Calls.
20430 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20431 subprograms if we are compiling under No_Dispatching_Calls restriction.
20432 (Make_DT): Generate a dispatch table with a single dummy entry if
20433 we are compiling with the No_Dispatching_Calls restriction. In
20434 addition, in this case we don't generate code that calls to the
20435 following run-time subprograms: Set_Type_Kind, Inherit_DT.
20436 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20437 of this subprogram if compiling with the No_Dispatching_Calls
20439 (Expand_Type_Conversion): Instead of using the actual parameter,
20440 the argument passed as parameter to the conversion function was
20441 erroneously referenced by the expander.
20442 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20443 Set_Predefined_Primitive_Op_Address and Set_Signature.
20444 (Expand_Dispatching_Call): Generate call to
20445 Get_Predefined_Prim_Op_Address for predefined primitives.
20446 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20447 predefined primitives.
20448 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20449 primitives we reserve one dummy entry to ensure that the tag does not
20450 point to some memory that is associated with some other object. In
20451 addition, remove all the old code that generated the assignments
20452 associated with the signature of the dispatch table and replace them
20453 by a call to the new subprogram Set_Signature.
20454 (Set_All_DT_Position): Change the algorithm because now we have a
20455 separate dispatch table associated with predefined primitive operations.
20456 (Expand_Interface_Conversion): In case of non-static offset_to_top
20457 add explicit dereference to get access to the object after the call
20458 to displace the pointer to the object.
20459 (Expand_Interface_Thunk): Modify the generation of the actual used
20460 in the calls to the run-time function Offset_To_Top to fulfil its
20462 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20464 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20466 * exp_dist.adb (Copy_Specification): For access parameters, copy
20467 Null_Exclusion flag, which will have been set for stream subprograms
20470 2006-02-13 Pascal Obry <obry@adacore.com>
20472 * expect.c (__gnat_expect_portable_execvp): New implementation. The
20473 previous implementation was using the C runtime spawnve routine but
20474 the corresponding wait was using directly the Win32 API. This was
20475 causing some times a lock when waiting for an event using
20476 WaitForSingleObject in __gnat_waitpid. This new implementation uses
20477 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20478 API fixes this problem.
20480 2006-02-13 Robert Dewar <dewar@adacore.com>
20482 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20485 2006-02-13 Thomas Quinot <quinot@adacore.com>
20487 * exp_pakd.ads: Fix typos in comments.
20489 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20490 array reference that is an explicit dereference, mark the converted
20491 (packed) array reference as analyzed to prevent a forthcoming
20492 reanalysis from resetting its type to the original (non-packed) array
20495 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20496 Javier Miranda <miranda@adacore.com>
20497 Eric Botcazou <ebotcazou@adacore.com>
20499 * exp_util.ads, exp_util.adb (Find_Prim_Op,
20500 Is_Predefined_Primitive_Operation): When
20501 searching for the predefined equality operator, verify that operands
20502 have the same type.
20503 (Is_Predefined_Dispatching_Operation): Remove the code that looks
20504 for the last entity in the list of aliased subprograms. This code
20505 was wrong in case of renamings.
20506 (Set_Renamed_Subprogram): New procedure
20507 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20508 Exp_Type constant computed when entering this subprogram.
20509 (Known_Null): New function
20510 (OK_To_Do_Constant_Replacement): New function
20511 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20512 (Side_Effect_Free): An attribute reference 'Input is not free of
20513 side effect, unlike other attributes that are functions. (from code
20515 (Remove_Side_Effects): Expressions that involve packed arrays or records
20516 are copied at the point of reference, and therefore must be marked as
20517 renamings of objects.
20518 (Is_Predefined_Dispatching_Operation): Return false if the operation is
20519 not a dispatching operation.
20522 (Remove_Side_Effects): Lift enclosing type conversion nodes for
20523 elementary types in all cases.
20525 2006-02-13 Javier Miranda <miranda@adacore.com>
20527 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20528 task types when accessing to the corresponding record type.
20529 Remove '!' in warning message.
20531 2006-02-13 Olivier Hainque <hainque@adacore.com>
20533 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20534 to avoid useless and space inefficient overalignments on targets where
20535 Max_Alignment is larger than 16.
20537 2006-02-13 Pascal Obry <obry@adacore.com>
20539 * g-catiio.adb (Sec_Number): New type used to compute the number of
20540 seconds since 1-1-1970.
20541 (Image) [Natural]: The parameter was an Integer, as we can't deal with
20542 negative numbers (years, months...) it is better to have a Natural here.
20544 (Image) [Number]: Change parameter from Long_Integer to Number.
20545 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20546 overflow for dates past year 2038.
20548 2006-02-13 Matthew Heaney <heaney@adacore.com>
20550 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20553 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20555 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20557 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20558 finalization can occur normally.
20560 2006-02-13 Vincent Celier <celier@adacore.com>
20562 * gnatcmd.adb (Rules_Switches): New table
20563 (Add_To_Rules_Switches): New procedure
20564 (GNATCmd): For command CHECK, put all options following "-rules" in the
20565 Rules_Switches table. Append these -rules switches after the -cargs
20568 2006-02-13 Robert Dewar <dewar@adacore.com>
20570 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20571 These two cases were generating incorrect output, and if this unit
20572 was built with checks on, generated a discriminant mismatch constraint
20575 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20576 Robert Dewar <dewar@adacore.com>
20578 * lib-xref.adb (Get_Type_Reference): For a private type whose full
20579 view is an array type, indicate the component type as well, for
20580 navigation purposes.
20581 (Generate_Reference): Don't consider array ref on LHS to be a case
20582 of violating pragma Unreferenced.
20583 Do not give Ada 2005 warning except on real reference.
20585 2006-02-13 Vincent Celier <celier@adacore.com>
20587 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20588 main source, add switch -mdebug-main=_ada_ so that the executable can
20589 be debugged by the standard VMS debugger.
20590 (Gnatmake): Set No_Main_Subprogram to True when there is no main
20591 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20592 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20593 of the last source, as the binding and linking phases are never
20595 Set all executable obsolete when rebuilding a library.
20597 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20600 2006-02-13 Javier Miranda <miranda@adacore.com>
20603 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20604 code to improve the error message reported when the program has
20605 declarations of abstract interface types and it is not compiled with
20606 the -gnat05 switch.
20607 (P_Access_Definition): Reorganize the code to improve the error
20608 message reported when the new Ada 2005 syntax for anonymous
20609 access types is used and the program is not compiled with the
20612 2006-02-13 Robert Dewar <dewar@adacore.com>
20614 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20615 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20618 2006-02-13 Javier Miranda <miranda@adacore.com>
20620 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20621 against source containing syntax errors.
20623 2006-02-13 Vincent Celier <celier@adacore.com>
20625 * prj.adb (Reset): Initialize the first element of table Namings with
20626 the standard naming data.
20628 2006-02-13 Vincent Celier <celier@adacore.com>
20630 * prj.ads (Error_Warning): New enumeration type
20632 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20633 unknown, use the location of the project to report the error.
20634 (When_No_Sources): New global variable
20635 (Report_No_Ada_Sources): New procedure
20636 (Check): New parameter When_No_Sources. Set value of global variable
20638 (Find_Sources): Call Report_No_Ada_Sources when appropriate
20639 (Get_Sources_From_File): Ditto
20640 (Warn_If_Not_Sources): Better warning messages indicating the unit name
20643 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20644 Call Prj.Proc.Process with parameter When_No_Sources.
20646 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20647 Call Recursive_Check with parameter When_No_Sources.
20648 (Recursive_Check): New parameter When_No_Sources. Call itself and
20649 Prj.Nmsc.Check with parameter When_No_Sources.
20650 (Process): New parameter When_No_Sources. Call Check with parameter
20652 (Copy_Package_Declarations): New procedure to copy renamed parameters
20653 and setting the location of the declared attributes to the location
20654 of the renamed package.
20655 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20658 2006-02-13 Vincent Celier <celier@adacore.com>
20660 * prj-makr.adb (Make): Preserve the comments from the original project
20662 When removing nodes (attributes Source_Dirs, Source_Files,
20663 Source_List_File and package Naming), save the comments and attach the
20664 saved comments to the newly created nodes.
20665 Do not add a with clause for the naming package if one already exists.
20667 2006-02-13 Javier Miranda <miranda@adacore.com>
20668 Gary Dismukes <dismukes@adacore.com>
20669 Robert Dewar <dewar@adacore.com>
20671 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20673 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20674 aliased entities to look for the overriden abstract interface
20676 (Is_Interface_Subprogram): Complete documentation.
20677 (Check_Dispatching_Operation): Do not generate code to register the
20678 operation in the dispatch table if the source is compiled with
20679 restriction No_Dispatching_Calls.
20680 (Override_Dispatching_Operation): Check for illegal attempt to override
20681 No_Return procedure with procedure that is not No_Return
20682 (Check_Dispatching_Call): Suppress the check for an abstract operation
20683 when the original node of an actual is a tag-indeterminate attribute
20684 call, since the attribute, which must be 'Input, can never be abstract.
20685 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20686 call to the Input attribute (even when rewritten).
20687 (Propagate_Tag): Augment comment to indicate the possibility of a call
20688 to an Input attribute.
20690 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20691 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20693 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20694 No_Wide_Characters is no longer partition-wide
20695 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20698 2006-02-13 Douglas Rupp <rupp@adacore.com>
20700 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20702 2006-02-13 Javier Miranda <miranda@adacore.com>
20704 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20705 handles default-initialized components to keep separate the management
20706 of this feature but also avoid the unrequired resolution and
20707 expansion of components that do not have partially initialized
20709 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20710 (Check_Bounds): Likewise.
20711 (Check_Length): Likewise.
20713 2006-02-13 Javier Miranda <miranda@adacore.com>
20714 Ed Schonberg <schonberg@adacore.com>
20716 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20717 abstract interface type call analyze_and_resolve to expand the type
20718 conversion into the corresponding displacement of the
20719 reference to the base of the object.
20720 (Eval_Attribute, case Width): For systems where IEEE extended precision
20721 is supported, the maximum exponent occupies 4 decimal digits.
20722 (Accessibility_Message): Add '\' in 2-line warning message.
20723 (Resolve_Attribute): Likewise.
20724 (case Attribute_Access): Significantly revise checks
20725 for illegal access-to-subprogram Access attributes to properly enforce
20726 the rules of 3.10.2(32/2).
20727 Diagnose use of current instance with an illegal attribute.
20729 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20731 (Enclosing_Generic_Unit): New function to return a node's innermost
20732 enclosing generic declaration node.
20733 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20734 (Type_Access_Level): The accessibility level of anonymous acccess types
20735 associated with discriminants is that of the current instance of the
20736 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20737 (Compile_Time_Constraint_Error): Handle case of conditional expression.
20738 (Kill_Current_Values_For_Entity): New function
20739 (Enter_Name): Change formal type to Entity_Id
20741 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20742 Ed Schonberg <schonberg@adacore.com>
20743 Gary Dismukes <dismukes@adacore.com>
20745 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20746 Analyze_Compilation_Unit.
20747 Detect and warn on redundant with clauses detected in a package spec
20748 and/or body when -gnatwr is used.
20749 (Analyze_Context): Analyze config pragmas before other items
20750 (Install_Context_Items): Don't analyze config pragmas here
20751 (Install_Limited_Withed_Unit): Set limited entity of package in
20752 with_clause so that cross-reference information or warning messages on
20753 unused packages can be properly generated
20754 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20755 has Error_Posted set. Prevent infinite loops in illegal programs.
20756 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20757 to the point of the error test requiring the current unit to be private.
20758 This ensures that private with clauses are not exempted from the basic
20759 checking for being a descendant of the same library unit parent as a
20760 withed private descendant unit.
20761 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20762 handle private with clauses properly, as well as to account for cases
20763 where the withed unit is a public descendant of a private ancestor
20764 (in which case the current unit must be a descendant of the private
20765 ancestor's parent). The spec comments were updated accordingly. Also,
20766 the old error message in this subprogram was replaced with error
20767 messages that mirror the errors tested and reported by
20768 Check_Private_Child_Unit.
20769 Parameter and variable names improved for readability.
20770 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20771 private as the precondition for calling
20772 Check_Private_Limited_Withed_Unit since that subprogram has been
20773 revised to test public units as well as private units.
20775 2006-02-13 Thomas Quinot <quinot@adacore.com>
20776 Robert Dewar <dewar@adacore.com>
20777 Ed Schonberg <schonberg@adacore.com>
20778 Javier Miranda <miranda@adacore.com>
20780 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20781 that Scope_Stack.First = 1.
20782 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20783 were not always properly handled previously.
20784 (Formal_Entity): Complete rewrite, to handle properly some complex case
20785 with multiple levels of parametrization by formal packages.
20786 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20787 to the corresponding derived type declaration for proper semantics.
20789 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20790 (Check_Component): Enforce restriction on components of
20791 unchecked_unions: a component in a variant cannot contain tasks or
20793 (Unchecked_Union): Allow nested variants and multiple discriminants, to
20795 Add pragma Ada_2005 (synonym for Ada_05)
20796 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20797 were not always properly handled previously.
20798 Document that pragma Propagate_Exceptions has no effect
20799 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20800 (Set_Convention_From_Pragma): Check that if a convention is
20801 specified for a dispatching operation, then it must be
20802 consistent with the existing convention for the operation.
20803 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20804 longer required to specify an vtable-ptr component in the record. For
20805 compatibility reasons we leave the support for the previous definition.
20806 (Analyze_Pragma, case No_Return): Allow multiple arguments
20808 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20809 non-overrideen inherited operation with a controlling result as
20810 illegal only its implicit declaration comes from the derived type
20811 declaration of its result's type.
20812 (Check_Possible_Deferred_Completion): Relocate the object definition
20813 node of the subtype indication of a deferred constant completion rather
20814 than directly analyzing it. The analysis of the generated subtype will
20815 correctly decorate the GNAT tree.
20816 (Record_Type_Declaration): Check whether this is a declaration for a
20817 limited derived record before analyzing components.
20818 (Analyze_Component_Declaration): Diagnose record types not explicitly
20819 declared limited when a component has a limited type.
20820 (Build_Derived_Record_Type): Code reorganization to check if some of
20821 the inherited subprograms of a tagged type cover interface primitives.
20822 This check was missing in case of a full-type associated with a private
20824 (Constant_Redeclaration): Check that the subtypes of the partial and the
20825 full view of a constrained deferred constant statically match.
20826 (Mentions_T): A reference to the current type in an anonymous access
20827 component declaration must be an entity name.
20828 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20829 class_wide type to refer to full type, not to the incomplete one.
20830 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20831 available. Required to give support to the certified run-time.
20832 (Analyze_Component_Declaration): In case of anonymous access components
20833 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20834 (Process_Discriminants): For an access discriminant, use the
20835 discriminant specification as the associated_node_for_itype, to
20836 simplify accessibility checks.
20838 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20839 Javier Miranda <miranda@adacore.com>
20841 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20842 abstract interpretations on an operator, remove interpretations that
20843 yield Address or a type derived from it, if one of the operands is an
20845 (Try_Object_Operation.Try_Primitive_Operation,
20846 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20847 location when creating the new reference to a primitive or class-wide
20848 operation as a part of rewriting a subprogram call.
20849 (Try_Primitive_Operations): If context requires a function, collect all
20850 interpretations after the first match, because there may be primitive
20851 operations of the same type with the same profile and different return
20852 types. From code reading.
20853 (Try_Primitive_Operation): Use the node kind to choose the proper
20854 operation when a function and a procedure have the same parameter
20856 (Complete_Object_Operation): If formal is an access parameter and prefix
20857 is an object, rewrite as an Access reference, to match signature of
20858 primitive operation.
20859 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20860 by an expanded name with prefix Standard, when the operands are of an
20861 anonymous access type.
20862 (Remove_Abstract_Operations): If the operation is abstract because it is
20863 inherited by a user-defined type derived from Address, remove it as
20864 well from the set of candidate interpretations of an overloaded node.
20865 (Analyze_Membership_Op): Membership test not applicable to cpp-class
20868 2006-02-13 Bob Duff <duff@adacore.com>
20870 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20871 redundant use clauses.
20872 In particular, if the scope of two use clauses overlaps, but one is not
20873 entirely included in the other, we should not warn. This can happen
20874 with nested packages.
20875 (Analyze_Subprogram_Renaming): Protect the compiler against previously
20876 reported errors. The bug was reported when the compiler was built
20877 with assertions enabled.
20878 (Find_Type): If the node is a 'Class reference and the prefix is a
20879 synchronized type without a corresponding record, return the type
20882 2006-02-13 Javier Miranda <miranda@adacore.com>
20884 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20885 if this is the full-declaration associated with a private declaration
20886 that implement interfaces, then the private type declaration must be
20888 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20889 as aliased. The use of the 'access attribute is not available for such
20890 object (for this purpose the object should be explicitly marked as
20891 aliased, but being an anonymous type this is not possible).
20893 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20894 Robert Dewar <dewar@adacore.com>
20896 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20897 compilation unit is an elaboration scope.
20898 (Add_Task_Proc): Add '\' in 2-line warning message.
20899 (Activate_All_Desirable): Deal with case of unit with'ed by parent
20901 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20902 Javier Miranda <miranda@adacore.com>
20904 * sem_type.adb (Write_Overloads): Improve display of candidate
20906 (Add_One_Interp): Do not add to the list of interpretations aliased
20907 entities corresponding with an abstract interface type that is an
20908 immediate ancestor of a tagged type; otherwise we have a dummy
20909 conflict between this entity and the aliased entity.
20910 (Disambiguate): The predefined equality on universal_access is not
20911 usable if there is a user-defined equality with the proper signature,
20912 declared in the same declarative part as the designated type.
20913 (Find_Unique_Type): The universal_access equality operator defined under
20914 AI-230 does not cover pool specific access types.
20915 (Covers): If one of the types is a generic actual subtype, check whether
20916 it matches the partial view of the other type.
20918 2006-02-13 Thomas Quinot <quinot@adacore.com>
20920 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20921 line. This is necessary to allow In_Extended_Main_Unit to provide
20922 correct results for itypes while writing out expanded source.
20923 (Close_File): No need to update the source_index_table here since it's
20924 now done for each line.
20926 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20927 Robert Dewar <dewar@adacore.com>
20929 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20930 preserve the source unit where the itype is declared, and prevent a
20932 (Note_Implicit_Run_Time_Call): New procedure
20933 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20936 * sprint.ads: Document use of $ for implicit run time routine call
20938 2006-02-13 Quentin Ochem <ochem@adacore.com>
20940 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20943 2006-02-13 Bob Duff <duff@adacore.com>
20945 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20946 Scan_Unsigned, so we do not scan leading blanks and sign twice.
20947 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20948 raise Constraint_Error.
20950 * s-vallli.adb (Scan_Long_Long_Integer): Call
20951 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20952 do not scan leading blanks and sign twice.
20953 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20954 raise Constraint_Error.
20956 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20957 Scan_Long_Long_Unsigned): Split out most of the processing from
20958 Scan_Long_Long_Unsigned out into
20959 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20960 This prevents scanning leading blanks and sign twice.
20961 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20964 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20965 out most of the processing from Scan_Unsigned out into
20966 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20967 This prevents scanning leading blanks and sign twice.
20969 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20970 use with Modular'Value attribute.
20971 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20974 2006-02-13 Robert Dewar <dewar@adacore.com>
20976 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20978 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20980 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20981 (PPC VxWorks): Likewise.
20982 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20983 (forced_callee): Make non-inlinable and non-pure.
20984 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20986 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20987 Ben Brosgol <brosgol@adacore.com>
20988 Robert Dewar <dewar@adacore.com>
20990 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20992 Document that gnatbind -M option is for cross environments only.
20993 Added description of using gnatmem to trace gnat rtl allocs and deallocs
20994 Add note on use of $ to label implicit run time calls
20995 Add documentation for -gnatyI (check mode IN)
20996 Updated chapter on compatibility with HP Ada
20997 VMS-oriented edits.
20998 Ran spell and corrected errors
20999 Add documentation for gnatbind -d and rework documentation of -D
21001 Add subprogram/data elimination section.
21002 Minor editing of annex A.
21003 Add section for gnatcheck.
21004 Add documentation for restriction No_Dispatching_Calls
21005 Add documentation for pragma Ada_2005
21006 Remove mention of obsolete pragma Propagate_Exceptions
21007 Document that pragma Unreferenced can appear after DO in ACCEPT
21008 Clarify Pure_Function for library level units
21009 Mention Max/Min in connection with No_Implicit_Conditionals
21010 No_Wide_Characters restriction is no longer partition-wide
21011 Add a nice example for Universal_Literal_String attribute
21012 Document that pragma No_Return can take multiple arguments
21014 * ug_words: Added entry for gnatcheck
21016 * g-ctrl_c.ads (Install_Handler): Enhance comments
21018 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
21020 * g-trasym.ads: Add documentation on how to do off line symbolic
21021 traceback computation.
21023 * s-fatgen.adb: Add comments for Unaligned_Valid
21025 * stand.ads: Fix typo in comment
21027 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21029 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
21031 2006-02-06 Roger Sayle <roger@eyesopen.com>
21033 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
21035 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21038 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
21039 implementation that calls __main.
21041 2006-01-25 Peter O'Gorman <peter@pogma.com>
21044 * Makefile.in (GCC_LINK): Remove quotes.
21045 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21048 (powerpc-darwin): Pass -shared-libgcc when building shared library.
21050 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21053 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21055 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21057 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21059 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21061 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21064 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21066 * Make-lang.in: Update dependencies
21068 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21070 * Make-lang.in: Add rule for ada/exp_sel.o
21072 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21074 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21076 2005-12-09 Arnaud Charlet <charlet@adacore.com>
21078 * gnatvsn.ads (Library_Version): Bump to version 4.2
21079 (ASIS_Version_Number): Bumped.
21081 2005-12-09 Doug Rupp <rupp@adacore.com>
21083 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21084 Ada bind file prefix on VMS from b$ to b__.
21085 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21088 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21089 Targparm.OpenVMS_On_Target.
21090 (Object_Suffix): Initialize with target object suffix.
21091 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21093 * butil.adb: Change some Hostparm.OpenVMS checks to
21094 Targparm.OpenVMS_On_Target.
21096 * clean.adb: Change some Hostparm.OpenVMS checks to
21097 Targparm.OpenVMS_On_Target.
21098 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21099 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21100 Ada bind file prefix on VMS from b$ to b__.
21102 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21103 --GCC so that Get_Target_Parameters can find system.ads.
21104 (Gnatlink): Call Get_Target_Parameters in mainline.
21105 Initialize standard packages for Targparm.
21106 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21107 (Process_Args): Also Check for object files with target object
21109 (Make_Binder_File_Names): Create with target object extension.
21110 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21113 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21114 Targparm.OpenVMS_On_Target.
21115 ({declaration},Build_Library,Check_Library): Change Ada bind file
21116 prefix on VMS from b$ to b__.
21118 * osint-b.adb: Change some Hostparm.OpenVMS checks to
21119 Targparm.OpenVMS_On_Target.
21120 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21123 * targext.c: New file.
21125 * Makefile.in: add support for vxworks653 builds
21126 (../../vxaddr2line): gnatlink with targext.o.
21127 (TOOLS_LIBS): Move targext.o to precede libgnat.
21128 (init.o, initialize.o): Minor clean up in dependencies.
21129 (GNATLINK_OBJS): Add targparm.o, snames.o
21130 Add rules fo building targext.o and linking it explicitly with all
21132 Also add targext.o to gnatlib.
21134 * Make-lang.in: Add rules for building targext.o and linking it in
21135 with gnat1 and gnatbind.
21136 Add entry for exp_sel.o.
21138 * osint.adb Change some Hostparm.OpenVMS checks to
21139 Targparm.OpenVMS_On_Target.
21140 (Object_File_Name): Use target object suffix.
21142 * osint.ads (Object_Suffix): Remove, no longer used.
21143 (Target_Object_Suffix): Initialize with target object suffix.
21145 * rident.ads: Add special exception to license.
21147 * targparm.adb (Get_Target_Parameters): Set the value of
21148 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21150 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21152 * targparm.ads: Add special exception to license.
21154 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21156 (Copy_File): Make sure from file is closed if error on to file
21157 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21159 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21160 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21162 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21163 target object suffix.
21165 2005-12-09 Jose Ruiz <ruiz@adacore.com>
21166 Quentin Ochem <ochem@adacore.com>
21167 Florian Villoing <villoing@adacore.com>
21169 * a-taster.ads, a-taster.adb: New files.
21171 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21172 link to the version that does nothing. This way the task termination
21173 routine is not executed twice for the environment task when finishing
21174 because of an unhandled exception.
21176 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21177 handler because of an unhandled exception.
21179 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21180 System.Tasking.Utilities instead of that in System.Tasking.Stages.
21182 * s-finimp.adb (initialization code): Modify the soft link for the
21183 finalization of the global list instead of Adafinal.
21185 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21186 non-tasking version of the soft link for task termination. We do
21187 nothing since if we are using the non-tasking version it
21188 means that the task termination functionality is not used.
21189 (Null_Finalize_Global_List): Add this null version for the procedure
21190 in charge of finalizing the global list for controlled objects.
21191 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21192 instead for handling run-time termination in a more flexible way.
21193 (Adafinal_NT): This new procedure will take care of finalizing the
21194 global list for controlled objects if needed, but no tasking
21197 * s-tarest.adb (Task_Lock): Do not try to lock again the
21198 Global_Task_Lock if we already own it. Otherwise, we get blocked in
21199 some run-time operations.
21200 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21201 until all nested locks have been released.
21202 (Task_Wrapper): Call the fall-back task termination handler. It
21203 applies to all tasks but the environment task.
21204 (Finalize_Global_Tasks): Add the call for the task termination
21205 procedure for the environment task.
21206 (Task_Wrapper): suppress warnings around declaration of
21207 Secondary_Stack_Address.
21209 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21210 moved to the Common_ATCB record.
21211 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21212 Common_ATCB record.
21213 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21214 Common_ATCB record.
21216 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21217 Fall_Back_Handler, and Specific_Handler.
21219 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21220 defined in Ada.Task_Termination, to avoid circular dependencies.
21221 (Termination_Handler): Redefine this type here, alredy defined in
21222 Ada.Task_Termination, for avoiding circular dependencies.
21223 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21224 for storing task termination handlers. In addition,
21225 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21226 Common_ATCB because it is used by both the regular and the restricted
21228 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21229 Common_ATCB because it is used by both the regular and the restricted
21231 (Common_ATCB): Added a dynamic task analyzer field.
21233 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21234 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21235 (Task_Wrapper): Call the task termination handler. It applies to all
21236 tasks but the environment task.
21237 (Finalize_Global_Tasks): Call the task termination procedure for the
21238 environment task. The call to Finalize_Global_List is now performed
21239 using the soft links mechanism.
21240 (Task_Wrapper): added dynamic stack analysis.
21242 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21243 potentially blocking operations has been moved from
21244 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21245 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21246 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21247 this run-time check.
21249 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21250 of task termination procedure.
21251 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21252 link for the task termination procedure.
21254 * bindusg.adb: (Bindusg): Added documentation for -u option.
21256 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21257 (Get_Main_C): Add handling of dynamic stack analysis.
21258 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21260 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21261 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21262 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21264 * opt.ads: Added flags used by dynamic stack measurement.
21265 (Max_Line_Length): Remove (not used anymore)
21267 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21268 (Standart_Output): new subprogram
21269 (Set_Output): new subprogram
21270 (Put): now uses the value of Current_Out to know if the output has to be
21271 send to stderr or stdout.
21273 * s-stausa.ads: Complete implementation.
21275 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21277 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21278 list of Ada 05 files.
21279 (GNAT Library Units): Add AltiVec files.
21281 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21282 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21283 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21285 2005-12-09 Nicolas Setton <setton@adacore.com>
21287 * adaint.c (__gnat_locate_regular_file): Return immediately if
21288 file_name is empty.
21290 2005-12-09 Javier Miranda <miranda@adacore.com>
21291 Hristian Kirtchev <kirtchev@adacore.com>
21293 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21294 to the specification because the frontend generates code that uses this
21296 (Set_Interface_Table): Add missing assertion.
21297 Update documentation describing the run-time structure.
21298 (Displace): New subprogram that displaces the pointer to the object
21299 to reference one of its secondary dispatch tables.
21300 (IW_Membership): Modified to use the new table of interfaces.
21301 (Inherit_TSD): Modified to use the new table of interfaces.
21302 (Register_Interface_Tag): Use the additional formal to fill the
21303 contents of the new table of interfaces.
21304 (Set_Interface_Table): New subprogram that stores in the TSD the
21305 pointer to the table of interfaces.
21306 (Set_Offset_To_Top): Use the additional formal to save copy of
21307 the offset value in the table of interfaces.
21308 Update structure of GNAT Primary and Secondary dispatch table diagram.
21309 Add comment section on GNAT dispatch table prologue.
21310 (Offset_To_Signature): Update the constant value of the Signature field.
21311 (Dispatch_Table): Update comment on hidden fields in the prologue.
21312 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21313 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21314 the type of formal parameter T to Tag, introduce additional assertions.
21315 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21317 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21319 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21320 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21321 record component containing the tag of the secondary dispatch table we
21322 have to use the Offset_To_Top run-time function to get this information;
21323 otherwise if the pointer to the base of the object has been displace
21324 we get a wrong value if we use the 'position attribute.
21326 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21327 all the calls to Expand_Interface_Thunk.
21328 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21329 interfaces; hence the call to Set_Interface_Table was clearly wrong.
21330 (Collect_All_Interfaces): Modify the internal subprogram Collect to
21331 ensure that the interfaces implemented by the ancestors are placed
21332 at the header of the generated list.
21333 (Expand_Interface_Conversion): Handle the case in which the displacement
21334 associated with the interface conversion is not statically known. In
21335 this case we generate a call to the new run-time subprogram Displace.
21336 (Make_DT): Generate and fill the new table of interfaces.
21337 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21338 Get_Tagged_Kind and Set_Tagged_Kind.
21339 (Tagged_Kind): New function that determines the tagged kind of a type
21340 with respect to limitedness and concurrency and returns a reference to
21342 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21343 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21344 primary dispatch table for a type.
21345 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21346 secondary dispatch table respectively of a tagged type.
21348 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21349 (Expand_Interface_Conversion): New subprogram to indicate if the
21350 displacement of the type conversion is statically known.
21351 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21353 * rtsfind.ads (RE_Offset_To_Top): New entity
21354 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21355 accessible to users.
21356 (Re_Displace): New entity
21357 (RE_Interface_Data): New entity
21358 (RE_Set_Interface_Data): New_Entity
21359 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21360 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21361 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21362 RE_TK_Tagged, RE_TK_Task.
21364 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21365 Init_Secondary_Tags_Internal to allow its use with interface types and
21366 also to generate the code for the new additional actual required
21367 by Set_Offset_To_Top.
21368 (Build_Init_Statements): In case of components associated with abstract
21369 interface types there is no need to generate a call to its IP.
21370 (Freeze_Record_Type): Generate Select Specific Data tables only for
21372 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21373 the bodies and specifications of the predefined primitive operations
21374 dealing with dispatching selects and abort, 'Callable, 'Terminated only
21375 for concurrent types.
21377 * exp_sel.ads, exp_sel.adb: New files.
21379 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21380 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21381 properly protected objects and attach handler in the case of the
21382 restricted profile.
21383 Move embeded package Select_Expansion_Utilities into a separate external
21385 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21386 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21387 (Build_K, Build_S_Assignment): New subprograms, part of the select
21388 expansion utilities.
21389 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21390 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21391 where the trigger is a dispatching procedure of a limited tagged type.
21393 2005-12-09 Olivier Hainque <hainque@adacore.com>
21395 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21396 pointer initialization values. Make a SAVE_EXPR instead. Add comments
21397 about the use and expansion of SAVE_EXPRs in the various possible
21398 renaming handling cases.
21399 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21400 abusing DECL_FCONTEXT.
21402 2005-12-09 Matthew Heaney <heaney@adacore.com>
21404 * a-convec.adb (Merge): Added assertions to check whether vector params
21407 * a-coinve.adb (Merge): Added assertions to check whether vector params
21410 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21412 (Cursor'Read): raises PE
21414 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21415 to its default value.
21417 * a-cihama.adb: Manually check whether cursor's key and elem are
21420 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21421 (Merge): Assert that target and source lists are in order
21422 (Swap): Declare non-const temporaries, to pass to Splice
21424 * a-cdlili.ads: (Splice): Changed param name and param mode
21426 * a-cdlili.adb: (Splice): Changed param name and param mode
21427 (Merge): Assert that target and source lists are in order
21428 (Swap): Declare non-const temporaries, to pass to Splice
21430 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21431 (Write): declare Stream param as not null
21433 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21434 an exception message.
21436 2005-12-09 Thomas Quinot <quinot@adacore.com>
21437 Robert Dewar <dewar@adacore.com>
21439 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21440 which is the absolute maximum length we can support.
21442 * frontend.adb: For the processing of configuration pragma files,
21443 remove references to Opt.Max_Line_Length, which is not checked anymore.
21445 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21448 * scn.adb, scng.adb:
21449 Always check line length against the absolute supported maximum,
21450 Hostparm.Max_Line_Length.
21452 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21453 value for the maximum line length is Max_Line_Length (not
21454 Column_Number'Last).
21455 Minor error msg update
21456 (Set_Style_Check_Options): New interface returning error msg
21457 Minor code reorganization (processing for 'M' was out of alpha order)
21459 * switch-c.adb: New interface for Set_Style_Check_Options
21461 * stylesw.ads (Set_Style_Check_Options): New interface returning error
21464 2005-12-09 Javier Miranda <miranda@adacore.com>
21466 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21467 with IP subprogram were only supported if there were limited types.
21469 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21470 records with IP subprogram were only supported if there were limited
21473 2005-12-09 Olivier Hainque <hainque@adacore.com>
21474 Eric Botcazou <ebotcazou@adacore.com>
21476 * trans.c (tree_transform, emit_check): Adjust calls to
21477 build_call_raise, passing the now expected GNAT_NODE argument.
21479 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21480 source line information than what the current global locus indicates
21483 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21484 field has overflowed.
21485 (build_call_raise): Add a GNAT_NODE argument to convey better source
21486 line information than what the current global locus indicates when
21488 (build_component_ref): Adjust call to build_call_raise.
21490 2005-12-09 Pascal Obry <obry@adacore.com>
21492 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21493 the iterator is quitting iteration on parent directory.
21495 2005-12-09 Javier Miranda <miranda@adacore.com>
21497 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21498 and the assignment to a class-wide object, before the assignment we
21499 generate a run-time check to ensure that the tag of the Target is
21500 covered by the tag of the source.
21502 2005-12-09 Robert Dewar <dewar@adacore.com>
21504 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21505 parameter in call to Image_Wide_Character.
21507 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21508 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21509 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21510 annoying FFFE/FFFF inconsistency.
21512 2005-12-09 Robert Dewar <dewar@adacore.com>
21513 Javier Miranda <miranda@adacore.com>
21514 Ed Schonberg <schonberg@adacore.com>
21516 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21517 of type conversion.
21518 (Find_Interface): New subprogram that given a tagged type and one of its
21519 component associated with the secondary table of an abstract interface
21520 type, return the entity associated with such abstract interface type.
21521 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21522 base type to create anonymous subtype, because entity may be a locally
21523 declared subtype or generic actual.
21524 (Find_Interface): New subprogram that given a tagged type and one of its
21525 component associated with the secondary table of an abstract interface
21526 type, return the entity associated with such abstract interface type.
21528 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21529 conversion cannot be handled at compile time. In this case we pass this
21530 information to the expander to generate the appropriate code.
21532 2005-12-09 Robert Dewar <dewar@adacore.com>
21533 Ed Schonberg <schonberg@adacore.com>
21534 Gary Dismukes <dismukes@adacore.com>
21535 Javier Miranda <miranda@adacore.com>
21536 Hristian Kirtchev <kirtchev@adacore.com>
21538 * einfo.adb (Itype_Printed): New flag
21539 (Is_Limited_Type): Derived types do not inherit limitedness from
21540 interface progenitors.
21541 (Is_Return_By_Reference_Type): Predicate does not apply to limited
21544 * einfo.ads (Itype_Printed): New flag
21545 Move Is_Wrapper_Package to proper section
21546 Add missing Inline for Is_Volatile
21548 * output.ads, output.adb (Write_Erase_Char): New procedure
21549 (Save/Restore_Output_Buffer): New procedures
21550 (Save/Restore_Output_Buffer): New procedures
21552 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21553 Add missing support for anonymous access type
21554 (Write_Id): Insert calls to Write_Itype
21555 (Write_Itype): New procedure to output itypes
21557 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21558 use of "limited" in declaration.
21560 * sinfo.ads, sinfo.adb:
21561 Formal derived types can carry an explicit "limited" indication.
21563 * sem_ch3.adb: Add with and use of Targparm.
21564 (Create_Component): If Frontend_Layout_On_Target is True and the
21565 copied component does not have a known static Esize, then reset
21566 the size and positional fields of the new component.
21567 (Analyze_Component_Declaration): A limited component is
21568 legal within a protected type that implements an interface.
21569 (Collect_Interfaces): Do not add to the list the interfaces that
21570 are implemented by the ancestors.
21571 (Derived_Type_Declaration): If the parent of the full-view is an
21572 interface perform a transformation of the tree to ensure that it has
21573 the same parent than the partial-view. This simplifies the job of the
21574 expander in order to generate the correct object layout, and it is
21575 needed because the list of interfaces of the full-view can be given in
21577 (Process_Full_View): The parent of the full-view does not need to be
21578 a descendant of the parent of the partial view if both parents are
21580 (Analyze_Private_Extension_Declaration): If declaration has an explicit
21581 "limited" the parent must be a limited type.
21582 (Build_Derived_Record_Type): A derived type that is explicitly limited
21583 must have limited ancestor and progenitors.
21584 (Build_Derived_Type): Ditto.
21585 (Process_Full_View): Verify that explicit uses of "limited" in partial
21586 and full declarations are consistent.
21587 (Find_Ancestor_Interface): Remove function.
21588 (Collect_Implemented_Interfaces): New procedure used to gather all
21589 implemented interfaces by a type.
21590 (Contain_Interface): New function used to check whether an interface is
21592 (Find_Hidden_Interface): New function used to determine whether two
21593 lists of interfaces constitute a set equality. If not, the first
21594 differing interface is returned.
21595 (Process_Full_View): Improve the check for the "no hidden interface"
21596 rule as defined by AI-396.
21598 2005-12-09 Robert Dewar <dewar@adacore.com>
21600 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21601 types, not on record subtypes.
21602 (Freeze_Entity): Code cleanup. Add barrier to the loop
21603 that generates the references for primitive operations. This allows to
21604 remove an unnecessary exception handler.
21605 Code reformatting and comment clean ups.
21607 2005-12-09 Vincent Celier <celier@adacore.com>
21609 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21610 If GNAT CHECK is called with a project file, but with no
21611 source on the command line, call gnatcheck with all the compilable
21612 sources of the project.
21613 Take into account the new command Check, for gnatcheck. Treat as for
21614 other ASIS tools: take into account project, specific package Check and
21616 For ASIS tools, add the switches in package Compiler for
21617 the invocation of the compiler.
21619 * prj-attr.adb: Add package Check and its attributes
21621 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21623 * vms_conv.adb (Initialize): Change Params of command Check to
21625 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21626 Add data for new command Check
21628 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21630 Add qualifiers for Check command options
21631 (Command_Type): New command Check
21633 2005-12-09 Thomas Quinot <quinot@adacore.com>
21635 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21636 command line switch overruns the output buffer.
21638 2005-12-09 Robert Dewar <dewar@adacore.com>
21640 * sem_prag.adb: Processing for new pragma Complete_Representation
21641 (Analyze_Pragma, case Debug): Implement two argument form.
21643 * par-prag.adb: Entry for new pragma Complete_Representation
21644 (Prag, case Debug): Recognize two argument form of pragma Debug
21645 New interface for Set_Style_Check_Options.
21647 * sem_ch13.adb: Implement new pragma Complete_Representation.
21649 * snames.adb, snames.ads, snames.h: Entry for new pragma
21650 Complete_Representation.
21652 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21654 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21655 available user-specified stream attributes on limited parameters to
21656 also test the type directly rather than only its underlying type (for
21657 Ada 95) and, in the case of Ada 2005, to check that the user-specified
21658 attributes are visible at the point of the subprogram declaration.
21659 For Ada 2005, the error message is modified to indicate that the
21660 type's stream attributes must be visible (again, only for -gnat05).
21662 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21664 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21665 anonymous access types.
21667 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21668 matching of anonymous access types and anonymous access to subprogram
21669 types. 'R'M 4.9.1 (2/2).
21671 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21673 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21674 rule prematurely when operands are universal, remaining ambiguities
21675 will be removed during resolution.
21678 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21679 that are Ada 2005 functions.
21680 (Has_Abstract_Interpretation): Subsidiary to
21681 Remove_Conversions, to remove ambiguities caused by abstract operations
21682 on numeric types when operands are universal.
21684 2005-12-09 Robert Dewar <dewar@adacore.com>
21686 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21687 for case where spec is categorized.
21689 2005-12-09 Javier Miranda <miranda@adacore.com>
21691 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21692 types use the corresponding record type. This was not needed before
21693 the implementation of Ada 2005 synchronized types because
21694 concurrent types were never tagged types in Ada 95.
21696 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21698 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21699 first subtype of the type of the expression to verify that it is a
21702 2005-12-09 Robert Dewar <dewar@adacore.com>
21704 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21707 2005-12-09 Quentin Ochem <ochem@adacore.com>
21708 Robert Dewar <dewar@adacore.com>
21709 Ed Falis <falis@adacore.com>
21710 Florian Villoing <villoing@adacore.com>
21711 Thomas Quinot <quinot@adacore.com>
21712 Arnaud Charlet <charlet@adacore.com>
21714 * gnat_ugn.texi: Created section "Stack Related Tools"
21715 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21716 "Stack Related Tools"
21717 Added subsection "Static Stack Usage Analysis"
21718 Added subsection "Dynamic Stack Usage Analysis"
21719 Include documentation of itypes in sprint listing (-gnatG)
21720 Documented gnatbind -D switch (default sec stack size for fixed sec
21722 Added Interrupt_State and Persistent_BSS to list of configuration
21724 Add missing doc for maximum value of nnn in -gnatyMnnn
21726 * gnat_rm.texi: Document the AltiVec binding.
21727 Add documentation for pragma Complete_Representation
21728 Shortened an overly long line (> 79 chars)
21729 Clarify documentation of unchecked conversion in implementation
21731 Document two argument form of pragma Debug
21733 * types.ads (Column_Number): Update documentation.
21735 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21736 library level Finalize_Storage_Only objects (these are not attached to
21737 any finalization list).
21739 * system-mingw.ads: (Underlying_Priorities): Update comment.
21741 2005-12-09 Robert Dewar <dewar@adacore.com>
21743 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21744 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21745 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21746 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21747 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21748 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21749 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21750 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21753 2005-12-09 Robert Dewar <dewar@adacore.com>
21755 * s-vaflop-vms-alpha.adb: (Ne_F): New function
21756 (Ne_G): New function
21758 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21759 for tag assignment.
21760 (Rewrite_Comparison): Handle case where operation is not a comparison
21761 and ignore, and also handle type conversion case.
21763 2005-12-09 Thomas Quinot <quinot@adacore.com>
21765 * exp_aggr.ads: Fix typo in comment.
21766 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21768 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21770 * layout.adb: Replace various uses of byte by storage unit throughout.
21771 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21772 static size, convert to storage units before returning, to conform to
21775 2005-12-09 Matthew Gingell <gingell@adacore.com>
21777 * g-exctra.ads: Fix typo in comment.
21779 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21781 * utils.c: Minor reformatting.
21783 2005-12-09 Robert Dewar <dewar@adacore.com>
21786 Further comment fixes to make the status of the default file clear
21788 * s-bitops.adb: Clarify comment for Bits_Array
21790 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21792 * Make-lang.in (ada.install-normal): Remove.
21794 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21796 * Make-lang.in: Remove all dependencies on s-gtype.
21798 2005-12-05 Richard Guenther <rguenther@suse.de>
21800 * utils.c (convert): Use fold_convert where appropriate.
21802 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
21804 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21807 2005-12-02 Richard Guenther <rguenther@suse.de>
21809 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21811 2005-12-01 Roger Sayle <roger@eyesopen.com>
21813 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21816 2005-11-23 Laurent Guerby <laurent@guerby.net>
21818 * mlib-prj.adb (Build_Library): Initialize Delete.
21820 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
21822 * socket.c: Add extern int h_errno for rtems since networking header
21823 files are not available at this point in a tool bootstrap. Newlib
21824 only has basic C library header files.
21826 2005-11-19 Richard Guenther <rguenther@suse.de>
21827 Roger Sayle <roger@eyesopen.com>
21830 * misc.c (internal_error_function): Don't use vsprintf to format
21831 the error message text, instead use pp_format_text and the new
21832 pretty printer APIs. This allows handling of %qs, %w, etc.
21834 2005-11-18 Laurent Guerby <laurent@guerby.net>
21837 * Makefile.in: Use s-auxdec-empty for RTEMS.
21839 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21842 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21843 a temporary if taking the address of something that is neither
21844 reference, declaration, or constant, since the gimplifier
21845 can't handle that case.
21847 2005-11-17 Laurent Guerby <laurent@guerby.net>
21850 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21852 2005-11-16 Richard Guenther <rguenther@suse.de>
21854 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21856 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
21859 * raise-gcc.c: Add missing stdarg.h include.
21861 2005-11-16 Richard Guenther <rguenther@suse.de>
21863 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21864 (ada/misc.o): Likewise.
21866 2005-11-14 Thomas Quinot <quinot@adacore.com>
21868 * g-soccon.ads: Minor reformatting. Update comments.
21870 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21871 gain visibility on the declaration of struct timeval.
21873 * g-soccon-freebsd.ads,
21874 g-soccon-darwin.ads,
21875 g-soccon-tru64.ads,
21879 g-soccon-solaris.ads,
21881 g-soccon-mingw.ads,
21882 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21884 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21885 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21886 g-soccon-linux-x86.ads: New files.
21888 * g-socthi-mingw.adb:
21889 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21891 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21892 (time_t, suseconds_t): New types constructed to match the tv_sec
21893 and tv_usec fields of C struct timeval.
21894 (Timeval): Construct structure in terms of the new types.
21895 (Host_Errno): New function (imported from socket.c), returns last hosts
21898 * g-socthi-vxworks.adb: Add error handling circuitry.
21900 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21901 components of struct timeval.
21902 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21903 (Check_Selector): In error conditions, clear internal socket sets to
21904 avoid a memory leak.
21905 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21906 Send_Timeout, Receive_Timeout.
21908 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21909 the tv_sec and tv_usec fields of C struct timeval.
21910 (Timeval): Construct structure in terms of the new types.
21911 (Host_Errno): New function (imported from socket.c), returns last hosts
21914 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21915 hosts database last error code.
21917 * gen-soccon.c: Complete value expansion should not be performed on
21918 TARGET, as it has the form of a math expression, and some components
21919 may be platform-defined macros.
21920 For VxWorks, generate the OK and ERROR values.
21921 New constants giving the sizes of the components of C struct timeval.
21923 2005-11-14 Robert Dewar <dewar@adacore.com>
21924 Ed Schonberg <schonberg@adacore.com>
21927 * types.ads: Include All_Checks in Suppress_Array
21929 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21930 not(a=b), since we no longer do this rewriting, and hence it is not
21932 (Elaboration_Checks_Suppressed): Add special casing to
21933 deal with different cases of static and dynamic elaboration checks (all
21934 checks does not count in the first case, but does in the second).
21935 (Expr_Known_Valid): Do not assume that the result of any arbitrary
21936 function call is valid, since this is not the case.
21937 (Ensure_Valid): Do not apply validity check to a real literal
21938 in a universal or fixed context
21940 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21941 elementary types using the operator in standard. It is cleaner not to
21942 modify the programmers intent, especially in the case of floating-point.
21943 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21944 it did not matter because we always rewrote a/=b to not(a=b).
21945 (Expand_Allocator_Expression): For an allocator expression whose nominal
21946 subtype is an unconstrained packed type, convert the expression to its
21947 actual constrained subtype.
21948 Implement warning for <= or >= where < or > not possible
21949 Fix to Vax_Float tests (too early in many routines, causing premature
21950 Vax_Float expansions.
21952 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21953 to be used with packages and generic packages as well as with
21955 (Suppress): Set All_Checks, but not Elaboration_Check, for case
21956 of pragma Suppress (All_Checks)
21957 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21958 a string literal for precise control over warnings.
21959 Avoid raise of pragma in case of unrecognized pragma and just return
21962 * sem_prag.ads: Minor reformatting
21964 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21965 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21966 Switch. Do not handle any exception.
21967 Include -gnatwx as part of -gnatg (warn on redundant parens)
21968 Allow optional = after -gnatm
21969 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21970 longer sets Elaboration_Checks.
21971 Code to set warning mode moved to Sem_Warn
21972 so that it can be shared by pragma processing.
21974 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21977 * s-taprop-solaris.adb:
21978 Change some <= to =, to avoid new warning
21980 * a-exexda.adb, prj-proc.adb:
21981 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21982 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21984 2005-11-14 Robert Dewar <dewar@adacore.com>
21986 * exp_vfpt.adb: Handle /= case
21987 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21988 so that we do not get duplicate scaling for fixed point conversions.
21990 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21992 2005-11-14 Matthew Gingell <gingell@adacore.com>
21994 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
21995 Increase default priority on Lynx from 15 to 17, and meet the Ada
21996 requirement that Default_Priority be ((Priority'First +
21997 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21999 2005-11-14 Vincent Celier <celier@adacore.com>
22001 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22002 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
22003 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
22004 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
22005 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
22006 mlib-tgt-lynxos.adb (DLL_Prefix): New function
22008 2005-11-14 Doug Rupp <rupp@adacore.com>
22010 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
22013 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22015 * s-traces-default.adb, s-trafor-default.ads,
22016 s-tratas-default.adb: Fix compilation errors.
22018 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22020 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
22021 raising the exception so the memory used is freed.
22023 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22025 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
22026 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
22027 (convert_address): Update comments and list of platforms using this.
22029 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
22032 2005-11-14 Pascal Obry <obry@adacore.com>
22033 Vincent Celier <celier@adacore.com>
22035 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
22038 * memroot.adb: Remove redundant with/use clause on
22039 System.Storage_Elements.
22041 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22043 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22044 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22045 related code to a-exexpr.adb
22046 (Save_Occurrence_And_Private): Move GCC EH related code to
22048 (Raise_Current_Excep): Add new variable Id with pragma
22049 volatile, to ensure that the variable lives on stack.
22051 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22053 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22055 Move GCC EH related code to a-exexpr-gcc.adb
22057 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22059 Split the Linux version of g-soccon into separate variants for 32 and 64
22061 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22062 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22063 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22064 of host variable $(RANLIB_FLAGS).
22065 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22066 Code clean up: remove unused/obsolete targets.
22067 (EH_MECHANISM): New variable introduced to differenciate between the
22068 two EH mechanisms statically.
22069 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22070 (LIBGNAT_OBJS): Add raise-gcc.o
22071 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22072 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22073 supports VxWorks 6 RTPs.
22074 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22075 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22077 * raise.c: Move all GCC EH-related routines to raise-gcc.c
22079 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22081 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22082 deferral level, when abort is not allowed, to a later stage (the
22084 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22085 it will not get changed by the generated code. It was previously done
22088 2005-11-14 Thomas Quinot <quinot@adacore.com>
22089 Olivier Hainque <hainque@adacore.com>
22090 Eric Botcazou <ebotcazou@adacore.com>
22093 Factor common code to build a storage type for an unconstrained object
22094 from a fat or thin pointer type and a constrained object type.
22095 (annotate_value): Handle BIT_AND_EXPR.
22096 (annotate_rep): Don't restrict the back annotation of inherited
22097 components to the type_annotate_only case.
22098 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22099 we are not defining the type.
22100 <E_Record_Type>: Likewise.
22101 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22102 to get advantage of the new maybe_stabilize_reference interface, to
22103 ensure that what we reference is indeed stabilized instead of relying
22104 on assumptions on what the stabilizer does.
22105 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22106 type imported through a limited_with clause, use its non-limited view.
22107 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22109 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22110 of #if sections + explicit comparisons of convention identifiers.
22111 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22112 before early-returning for certain types when code generation is
22114 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22115 nullification of gnu_expr we do for objects with address clause and
22116 that we are not defining.
22117 (elaborate_expression_1): Do not create constants when creating
22118 variables needed by the debug info: the dwarf2 writer considers that
22119 CONST_DECLs is used only to represent enumeration constants, and emits
22121 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22122 object with an address clause into an indirect reference, drop the
22123 initializing expression.
22125 (STACK_CHECK_BUILTIN): Delete.
22126 (STACK_CHECK_PROBE_INTERVAL): Likewise.
22127 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22128 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22129 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22130 corresponding to the renamed object as ignored for debugging purposes.
22132 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22133 related): For a prefix that is a dereference of a fat or thin pointer,
22134 if there is an actual subtype provided by the front-end, use that
22135 subtype to build an actual type with bounds template.
22136 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22137 is provided by the front-end, use that subtype to compute the size of
22138 the deallocated object.
22139 (gnat_to_gnu): When adding a statement into an elaboration procedure,
22140 check for a potential violation of a No_Elaboration_Code restriction.
22141 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22142 with extra arguments to control whether to recurse through non-values
22143 and to let the caller know if the stabilization has succeeded.
22144 (gnat_stabilize_reference): Now a simple wrapper around
22145 maybe_stabilize, for common uses without restriction on lvalues and
22146 without need to check for the success indication.
22147 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22148 pass false instead of 0 as the FORCE argument which is a bool.
22149 (Identifier_to_gnu): Remove checks ensuring that an renamed object
22150 attached to a renaming pointer has been properly stabilized, as no such
22151 object is attached otherwise.
22152 (call_to_gnu): Invoke create_var_decl to create the temporary when the
22153 function uses the "target pointer" return mechanism.
22154 Reinstate conversion of the actual to the type of the formal
22155 parameter before any other specific treatment based on the passing
22156 mechanism. This turns out to be necessary in order for PLACEHOLDER
22157 substitution to work properly when the latter type is unconstrained.
22159 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22161 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22162 with extra arguments to control whether to recurse through non-values
22163 and to let the caller know if the stabilization has succeeded.
22165 * utils2.c (gnat_build_constructor): Only sort the fields for possible
22166 static output of record constructor if all the components are constant.
22167 (gnat_build_constructor): For a record type, sort the list of field
22168 initializers in increasing bit position order.
22169 Factor common code to build a storage type for an unconstrained object
22170 from a fat or thin pointer type and a constrained object type.
22171 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22172 types variants, and process special cases of VIEW_CONVERT expressions
22173 as their NOP_EXPR counterpart to ensure we get to the
22174 CORRESPONDING_VARs associated with CONST_DECls.
22175 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22176 on the right-hand side.
22178 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22180 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22181 are converting back to its original type.
22182 (convert) <JM input>: Fallthrough regular conversion code instead of
22183 extracting the object if converting to a type variant.
22184 (create_var_decl): When a variable has an initializer requiring code
22185 generation and we are at the top level, check for a potential violation
22186 of a No_Elaboration_Code restriction.
22187 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22188 SIZE and SIZE_UNIT which we need for later back-annotations.
22189 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22190 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22191 is an unchecked union.
22192 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22193 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22194 main variant, just replace the VIEW_CONVERT_EXPR.
22195 <UNION_TYPE>: Revert 2005-03-02 change.
22197 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22199 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22201 2005-11-14 Matthew Heaney <heaney@adacore.com>
22203 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22204 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22205 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22206 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22207 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22208 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22209 Compiles against the spec for ordered maps described in sections
22210 A.18.6 of the most recent (August 2005) AI-302 draft.
22212 2005-11-14 Olivier Hainque <hainque@adacore.com>
22214 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22215 to ensure bias adjustments take place when need be and to prevent
22216 occurrences of intermediate overflows.
22218 2005-11-14 Matthew Gingell <gingell@adacore.com>
22219 Olivier Hainque <hainque@adacore.com>
22221 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22224 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22225 tracebacks on ia64 HP-UX and provide explanatory comment.
22226 Enable backtraces on ia64 GNU/Linux.
22227 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22228 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22230 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22231 Javier Miranda <miranda@adacore.com>
22233 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22234 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22235 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22236 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22238 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22239 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22242 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22243 subprogram that generates the external name associated with a
22244 secondary dispatch table.
22245 (Get_Secondary_DT_External_Name): New subprogram that generates the
22246 external name associated with a secondary dispatch table.
22248 2005-11-14 Emmanuel Briot <briot@adacore.com>
22250 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22251 line in the ALI file to include both an instantiation reference, and a
22254 2005-11-14 Vincent Celier <celier@adacore.com>
22256 * clean.adb (Check_Project): Look for Ada code in extending project,
22257 even if Ada is not specified as a language.
22258 Use new function DLL_Prefix for DLL_Name
22259 (Clean_Interface_Copy_Directory): New procedure
22260 (Clean_Library_Directory): New procedure
22261 (Clean_Directory): Remove procedure, no longer used
22262 (Clean_Project): Do not delete any file in an externally built project
22264 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22265 directory of an extending project, even when there are no Ada source
22267 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22268 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22270 * mlib-prj.adb (Check_Library): For all library projects, get the
22271 library file timestamp.
22272 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22273 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22274 (Clean): Remove procedure, no longer used
22275 (Ultimate_Extension_Of): New function
22276 (Build_Library): When cleaning the library directory, only remove an
22277 existing library file and any ALI file of a source of the project.
22278 When cleaning the interface copy directory, remove any source that
22279 could be a source of the project.
22281 * prj.ads, prj.adb (Project_Empty): Add values of new components
22282 Library_TS and All_Imported_Projects.
22283 (Project_Empty): Add values for new components of Project_Data:
22284 Library_ALI_Dir and Display_Library_ALI_Dir
22286 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22288 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22289 attribute Library_ALI_Dir.
22290 (Check_Library_Attributes): The library directory cannot be the same as
22291 any source directory of the project tree.
22292 (Check_Stand_Alone_Library): The interface copy directory cannot be
22293 the same as any source directory of the project tree.
22295 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22296 all temporary files.
22298 2005-11-14 Robert Dewar <dewar@adacore.com>
22299 Ed Schonberg <schonberg@adacore.com>
22301 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22302 (Check_Elab_Call): A call within a protected body is never an
22303 elaboration call, and does not require checking.
22304 (Same_Elaboration_Scope): Take into account protected types for both
22306 (Activate_Elaborate_All_Desirable): New procedure
22308 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22311 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22312 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22314 * lib-writ.ads, lib-writ.adb:
22315 Implement new AD/ED for Elaborate_All/Elaborate desirable
22316 Use new Elaborate_All_Desirable flag in N_With_Clause node
22318 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22319 N_Free_Statement nodes.
22320 Define new class N_Subprogram_Instantiation
22321 Add Elaborate_Desirable flag to N_With_Clause node
22322 Add N_Delay_Statement (covering two kinds of delay)
22324 * debug.adb: Introduce d.f flag for compiler
22325 Add -da switch for binder
22327 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22328 Cyrille Comar <comar@adacore.com>
22330 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22331 for task component, in the case of a limited aggregate. The enclosed
22332 object declaration will create it earlier. Otherwise, in the case of a
22333 nested aggregate, the object may appear in the wrong scope.
22334 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22335 (Gen_Assign): If the component being assigned is an array type and the
22336 expression is itself an aggregate, wrap the assignment in a block to
22337 force finalization actions on the temporary created for each row of the
22339 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22340 structures are initialized after all discriminants are set so that
22341 they can be accessed even when their offset is dynamic.
22343 2005-11-14 Robert Dewar <dewar@adacore.com>
22344 Hristian Kirtchev <kirtchev@adacore.com>
22346 * sem_attr.adb: Implement Machine_Rounding attribute
22347 (Analyze_Access_Attribute): The access attribute may appear within an
22348 aggregate that has been expanded into a loop.
22349 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22350 'Terminated whenever the prefix is of a task interface class-wide type.
22351 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22352 the prefix is of a task interface class-wide type.
22354 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22357 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22358 Remove pragma Inline for [Unaligned_]Valid.
22359 Add comments that Valid routines do not work for Vax_Float
22361 * exp_attr.adb: Implement Machine_Rounding attribute
22363 * snames.h: Add entry for Machine_Rounding attribute
22365 2005-11-14 Javier Miranda <miranda@adacore.com>
22366 Robert Dewar <dewar@adacore.com>
22367 Hristian Kirtchev <kirtchev@adacore.com>
22369 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22370 and related): For a prefix that is an explicit dereference of an
22371 access to unconstrained packed array type, annotate the dereference
22372 with an actual subtype so GIGI can make a correct size computation.
22373 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22374 'Unrestricted_Access, if the designated type is an interface we
22375 add a type conversion to force the displacement of the pointer
22376 to the secondary dispatch table.
22377 Use Universal_Real instead of Long_Long_Float when we need a high
22378 precision float type for the generated code (prevents gratuitous
22379 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22380 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22381 'Terminated for task interface class-wide objects. Generate a call to
22382 the predefined dispatching routine used to retrieve the _task_id from
22383 a task corresponding record.
22384 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22386 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22387 (Check_Dispatching_Operation): Protect the frontend againts
22388 previously detected errors.
22390 * Makefile.rtl: Add new instantiations of system.fat_gen
22392 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22393 Change name of instantiated package for better consistency
22394 with newly added system.fat_gen instantiations.
22396 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22397 s-fvagfl.ads: New files.
22399 2005-11-14 Cyrille Comar <comar@adacore.com>
22400 Thomas Quinot <quinot@adacore.com>
22402 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22403 assignment of a value of a tagged type that has been rewritten to a
22404 block statement, it is known by construction that no checks are
22405 necessary for the statements within the block: analyze it with checks
22407 (Expand_N_If_Statement): When killing a dead then-branch in an
22408 if-statement that has elsif_parts, recompute the Current_Value node
22409 for any entity whose value is known from the condition of the first
22411 (Expand_N_Return_Statement): When returning a mutable record, convert
22412 the return value into its actual subtype in order to help the backend
22413 to return the actual size instead of the maximum. This is another
22414 aftermath of not returning mutable records on the sec-stack anymore.
22416 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22417 handling of error msg for suspicious reverse range iteration.
22418 (Check_Possible_Current_Value_Condition): Move declaration from body to
22419 spec, to allow this subprogram to be called from exp_ch5.
22421 2005-11-14 Thomas Quinot <quinot@adacore.com>
22423 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22424 generate a set of nested array aggregates instead of a single flat
22425 aggregate for multi-dimensional arrays.
22427 2005-11-14 Pascal Obry <obry@adacore.com>
22429 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22430 by spawnve is a process handle, no need to convert. Add a parameter
22431 close to control wether the process handle must be closed.
22432 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22433 a process handle, not need to convert.
22434 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22436 * g-expect.adb: (Kill): Document the new close parameter.
22437 (Close): Do not release the process handle in the kill there as
22438 waitpid() is using it.
22439 (Send_Signal): Release the process handle.
22441 2005-11-14 Robert Dewar <dewar@adacore.com>
22443 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22444 need a high precision float type for the generated code (prevents
22445 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22448 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22449 need a high precision float type for the generated code (prevents
22450 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22452 (Expand_Width_Attribute): In configurable run-time, the attribute is not
22453 allowed on non-static enumeration subtypes. Force a load error to emit
22454 the correct diagnostic.
22456 2005-11-14 Thomas Quinot <quinot@adacore.com>
22457 Robert Dewar <dewar@adacore.com>
22458 Ed Schonberg <schonberg@adacore.com>
22460 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22461 subtype to compute the size of the designated object at run-time,
22462 create such a subtype and store it in the Actual_Designated_Subtype
22463 attribute of the N_Free_Statement.
22464 Generate itype for classwide designated object in both cases of
22465 user-specified storage pool: specific and class-wide, not only in the
22467 Raise CE when trying to set a not null access type object to null.
22468 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22469 an explicit loop, because freeze nodes make its position variable.
22471 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22474 2005-11-14 Javier Miranda <miranda@adacore.com>
22476 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22477 Build_Stream_Procedure): Add the null-excluding attribute to the first
22479 This has no semantic meaning under Ada95 mode but it is a
22480 requirement under Ada05 mode.
22482 * par-ch3.adb (P_Access_Definition): Addition of warning message if
22483 the null exclusion is used under Ada95 mode
22484 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22485 (P_Access_Definition): Remove assertion that forbids the use of
22486 the null-exclusion feature in Ada95.
22488 2005-11-14 Robert Dewar <dewar@adacore.com>
22490 * impunit.adb: Exclude container helper units not intended for use by
22493 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22495 * freeze.adb (Freeze_Entity): For an access formal that is an access
22496 to subprogram, freeze the anonymous subprogram type at the same time,
22497 to prevent later freezing in the wrong scope, such as the enclosing
22499 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22500 subprogram whenever available.
22502 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22505 * gnatvsn.ads (Library_Version): Bump to 4.1
22507 2005-11-14 Robert Dewar <dewar@adacore.com>
22509 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22510 Storage_Offset to avoid wrap around causing invalid results.
22512 2005-11-14 Pascal Obry <obry@adacore.com>
22514 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22516 (Scan_Bind_Arg): Fail with an error message if -M option is used
22517 on a native compiler.
22519 2005-11-14 Robert Dewar <dewar@adacore.com>
22520 Vincent Celier <celier@adacore.com>
22522 * gprep.adb: Implement -C switch to scan comments
22524 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22526 * scans.ads: Comment updates (including new use of Tok_Comment in
22529 * opt.ads: Add documentation for flags that are used by gprmake,
22530 currently and in the next version of gprmake.
22531 (Verbosity_Level): New variable
22532 Add Replace_In_Comments switch
22534 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22536 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22538 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22540 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22541 message, friendlier.
22543 2005-11-14 Robert Dewar <dewar@adacore.com>
22545 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22547 2005-11-14 Doug Rupp <rupp@adacore.com>
22549 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22551 2005-11-14 Robert Dewar <dewar@adacore.com>
22553 * interfac.ads: Change declarations of IEEE float types so that we no
22554 longer need a separate version of this package for VMS.
22556 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22558 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22559 internal entity created for the declaration of a child subprogram body
22560 with no spec as coming from source, to generate proper cross-reference
22563 2005-11-14 Vincent Celier <celier@adacore.com>
22565 * make.adb (Compile_Sources): Change verbose message to minimum
22566 verbosity level High for "is in an Ada library", "is a read-only
22567 library" and "is an internal library",
22568 (Create_Binder_Mapping_File): Path name of ALI file for library project
22569 must include the library directory, not the object directory.
22570 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22571 for new switches -vl, -vm and -vh.
22572 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22573 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22574 (Compile_Sources): Do not attempt to compile if an ALI file is missing
22575 in a project that is externally built.
22576 (Compute_All_Imported_Projects): New procedure
22577 (Gnatmake): Check if importing libraries should be regenerated because
22578 at least an imported library is more recent.
22579 (Initialize): For each project compute the list of the projects it
22580 imports directly or indirectly.
22581 (Add_Library_Search_Dir): New procedure, used in place of
22582 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22583 put in the search paths.
22584 (Add_Source_Search_Dir): New procedure, used in place of
22585 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22586 put in the search paths.
22587 (Mark_Directory): Resolve the absolute path the directory before marking
22590 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22591 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22592 Switch. Do not handle any exception.
22593 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22594 so that the switch is recognized as valid.
22595 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22597 2005-11-14 GNAT Script <nobody@adacore.com>
22599 * Make-lang.in: Makefile automatically updated
22601 2005-11-14 Pascal Obry <obry@adacore.com>
22603 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22605 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22606 In both cases the last argument was dropped.
22608 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
22610 * namet.h: (Column_Numbe): New type.
22611 (Get_Column_Number): Define to sinput__get_column_number.
22612 (Instantiation): Define to sinput__instantiation.
22613 (Get_Column_Number): Declare.
22614 (Instantiation): Likewise.
22616 2005-11-14 Robert Dewar <dewar@adacore.com>
22618 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22619 syntax, which could cause compiler hangs.
22621 2005-11-14 Vincent Celier <celier@adacore.com>
22623 * prj-ext.adb: Take into account new environment variable
22624 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22626 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22627 normalize its path name, making it absolute and resolving symbolic
22628 links, and replace the original if resolved path is different.
22630 2005-11-14 Vincent Celier <celier@adacore.com>
22632 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22633 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22635 2005-11-14 Emmanuel Briot <briot@adacore.com>
22637 * prj-pp.adb (Print): Do not output the with statement if the
22638 associated name is empty, which happens for virtual extending projects.
22639 (Print): Preserve the "extends all" attribute when printing the project.
22641 * prj-tree.ads (String_Value_Of): Add comment about returned value for
22642 a virtual extending project.
22644 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22646 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22647 rhs of an assignment even if the type is unconstrained, when the
22648 context is non-expanding.
22649 In an inlined body, if the context type is private,
22650 resolve with its full view, which must be a composite type.
22652 2005-11-14 Robert Dewar <dewar@adacore.com>
22653 Ed Schonberg <schonberg@adacore.com>
22655 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22656 Do not give obsolescent warning on with of subprogram (since we
22658 (Analyze_With_Clause): Add test for obsolescent package
22659 (Install_Context_Clauses): If the unit is the body of a child unit, do
22660 not install twice the private declarations of the parents, to prevent
22661 circular lists of Use_Clauses in a parent.
22662 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22663 compiling body of child unit.
22664 Use new class N_Subprogram_Instantiation
22665 (Expand_With_Clause): If this is a private with_clause for a child unit,
22666 appearing in the context of a package declaration, then the implicit
22667 with_clauses generated for parent units are private as well.
22668 (License_Check): Do not generate message if with'ed unit is internal
22670 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22671 Ed Schonberg <schonberg@adacore.com>
22672 Thomas Quinot <quinot@adacore.com>
22674 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22675 names are internal, because they will not have a corresponding partner
22676 in the actual package.
22677 (Analyze_Formal_Package): Move the setting of the formal package spec's
22678 Generic_Parent field so that it occurs prior to analyzing the package,
22679 to allow proper operation of Install_Parent_Private_Declarations.
22680 (Analyze_Package_Instantiation): Set the instantiated package entity's
22681 Package_Instantiation field.
22682 (Get_Package_Instantiation_Node): Move declaration to package spec.
22683 Retrieve the N_Package_Instantiation node when the Package_Instantiation
22685 (Check_Generic_Child_Unit): Within an inlined call, the only possible
22686 instantiation is Unchecked_Conversion, for which no parents are needed.
22687 (Inline_Instance_Body): Deinstall and record the use_clauses for all
22688 parent scopes of a scope being removed prior to inlining an instance
22690 (Analyze_Package_Instantiation): Do not perform front-end inlining when
22691 the current context is itself an instance within a non-instance child
22692 unit, to prevent scope stack errors.
22693 (Save_References): If the node is an aggregate that is an actual in a
22694 call, rewrite as a qualified expression to preserve some type
22695 information, to resolve possible ambiguities in the instance.
22696 (Instance_Parent_Unit): New global variable to record the ultimate
22697 parent unit associated with a generic child unit instance (associated
22698 with the existing Parent_Unit_Visible flag).
22699 (type Instance_Env): New component Instance_Parent_Unit for stacking
22700 parents recorded in the global Instance_Parent_Unit.
22701 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22703 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22704 it's not a top-level unit, and only do this if Instance_Parent_Unit is
22705 not already set. Replace test of Is_Child_Unit with test of parent's
22706 scope against package Standard. Add comments and a ??? comment.
22707 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22708 on a child instance parent to test that the parent equals
22709 Instance_Parent rather than simply checking that the unit is not a
22711 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22712 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22713 a formal interface are ancestors of the corresponding actual.
22714 (Validate_Formal_Interface_Type): Additional legality checks.
22715 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22716 interface types with ancestors.
22717 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22718 to diagnose attempts to use generic within its own declaration.
22720 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22721 Javier Miranda <miranda@adacore.com>
22723 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22725 (Build_Private_Derived_Type): The entity of the created full view of the
22726 derived type does not come from source. If after installing the private
22727 declarations of the parent scope the parent is still private, use its
22728 full view to construct the full declaration of the derived type.
22729 (Build_Derived_Record_Type): Relax the condition that controls the
22730 execution of the check that verifies that the partial view and
22731 the full view agree in the set of implemented interfaces. In
22732 addition, this test now only takes into account the progenitors.
22733 (Derive_Interface_Subprograms): No need to derive subprograms
22734 of ancestors that are interfaces.
22735 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22737 Change name Is_Package to Is_Package_Or_Generic_Package
22738 (Complete_Subprograms_Derivation): Handle the case in which the full
22739 view is a transitive derivation of the ancestor of the partial view.
22740 (Process_Full_View): Rename local subprogram Find_Interface_In_
22741 Descendant to Find_Ancestor_Interface to leave the code more clear.
22742 Remove wrong code that avoids the generation of an error message
22743 when the immediate ancestor of the partial view is an interface.
22744 In addition some minor reorganization of the code has been done to
22745 leave it more clear.
22746 (Analyze_Type_Declaration): If type has previous incomplete tagged
22747 partial view, inherit properly its primitive operations.
22748 (Collect_Interfaces): Make public, for analysis of formal
22750 (Analyze_Interface_Declaration): New procedure for use for regular and
22751 formal interface declarations.
22752 (Build_Derived_Record_Type): Add support for private types to the code
22753 that checks if a tagged type implements abstract interfaces.
22754 (Check_Aliased_Component_Type): The test applies in the spec of an
22756 (Access_Type_Declaration): Clean up declaration of malformed type
22757 declared as an access to its own classwide type, to prevent cascaded
22759 (Collect_Interfaces): For private extensions and for derived task types
22760 and derived protected types, the parent may be an interface that must
22761 be included in the interface list.
22762 (Access_Definition): If the designated type is an interface that may
22763 contain tasks, create Master_Id for it before analyzing the expression
22764 of the declaration, which may be an allocator.
22765 (Record_Type_Declaration): Set properly the interface kind, for use
22766 in allocators, the creation of master id's for task interfaces, etc.
22768 2005-11-14 Javier Miranda <miranda@adacore.com>
22769 Ed Schonberg <schonberg@adacore.com>
22771 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22772 omitted in case of stream attribute subprograms.
22773 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22774 appear immediately after a subprogram body, when there is no previous
22775 subprogram declaration.
22776 Change name Is_Package to Is_Package_Or_Generic_Package
22777 (Process_Formals): A non null qualifier on a non null named access
22778 type is not an error, and is a warning only if Redundant_Constructs
22781 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22782 Ed Schonberg <schonberg@adacore.com>
22784 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22785 nested within Analyze_Package_Specification to install the private
22786 declarations and use clauses within each of the parent units of a
22787 package instance of a generic child package.
22788 (Analyze_Package_Specification): When entering a private part of a
22789 package associated with a generic instance or formal package, the
22790 private declarations of the parent must be installed (by calling new
22791 procedure Install_Parent_Private_Declarations).
22792 Change name Is_Package to Is_Package_Or_Generic_Package
22793 (Preserve_Full_Attributes): For a synchronized type, the corresponding
22794 record is absent in a generic context, which does not indicate a
22797 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22799 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22800 not try to rewrite a renamed stream attribute, because the operations
22801 on the type may not have been generated.
22802 Handle properly a renaming_as_body generated for a stream operation
22803 whose default is abstract because the object type itself is abstract.
22804 (Find_Type): If the type is incomplete and appears as the prefix of a
22805 'Class reference, it is tagged, and its list of primitive operations
22806 must be initialized properly.
22807 (Chain_Use_Clauses): When chaining the use clauses that appear in the
22808 private declaration of a parent unit, prior to compiling the private
22809 part of a child unit, find on the scope stack the proper parent entity
22810 on which to link the use clause.
22811 (Note_Redundant_Use): Emit a warning when a redundant use clause is
22813 (Analyze_Object_Renaming): An attribute reference is not a legal object
22814 if it is not a function call.
22816 2005-11-14 Robert Dewar <dewar@adacore.com>
22817 Ed Schonberg <schonberg@adacore.com>
22819 * sem_eval.adb: Implement d.f flag
22820 (Subtype_Statically_Match): A generic actual type has unknown
22821 discriminants when the corresponding actual has a similar partial view.
22822 If the routine is called to validate the signature of an inherited
22823 operation in a child instance, the generic actual matches the full view,
22825 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22826 Ed Schonberg <schonberg@adacore.com>
22827 Robert Dewar <dewar@adacore.com>
22828 Thomas Quinot <quinot@adacore.com>
22830 * sem_res.adb (Resolve_Call): Provide a better error message whenever
22831 a procedure call is used as a select statement trigger and is not an
22832 entry renaming or a primitive of a limited interface.
22833 (Valid_Conversion): If the operand has a single interpretation do not
22834 remove address operations.
22835 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22836 statement to inhibit warning.
22837 (Resolve_Unary_Op): Do not produce a warning when
22838 processing an expression of the form -(A mod B)
22839 Use Universal_Real instead of Long_Long_Float when we need a high
22840 precision float type for the generated code (prevents gratuitous
22841 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22842 (Resolve_Concatenation_Arg): Improve error message when argument is an
22843 ambiguous call to a function that returns an array.
22844 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22845 there is an implicit operator in the given scope if we are within an
22846 instance: legality check has been performed on the generic.
22847 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22848 after resolving operand, to avoid false warnings on overloaded calls.
22850 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22851 Javier Miranda <miranda@adacore.com>
22854 * sem_type.adb (Covers): In an inlined body, a composite type matches
22855 a private type whose full view is a composite type.
22856 (Interface_Present_In_Ancestor): Protect the frontend against
22857 previously detected errors to ensure that its compilation
22858 with assertions enabled gives the same output that its
22859 compilation without assertions.
22860 (Interface_Present_In_Ancestor): Add support for private types.
22861 Change name In_Actual to In_Generic_Actual (clean up)
22862 (Disambiguate): New predicate In_Actual, to recognize expressions that
22863 appear in the renaming declaration generated for generic actuals, and
22864 which must be resolved in the outer context.
22866 2005-11-14 Robert Dewar <dewar@adacore.com>
22867 Thomas Quinot <quinot@adacore.com>
22868 Hristian Kirtchev <kirtchev@adacore.com>
22869 Ed Schonberg <schonberg@adacore.com>
22871 * sem_util.ads, sem_util.adb: Change name Is_Package to
22872 Is_Package_Or_Generic_Package.
22873 (Check_Obsolescent): New procedure.
22874 (Set_Is_Public): Remove obsolete junk test.
22875 (Set_Public_Status): Do not set Is_Public on an object whose declaration
22876 occurs within a handled_sequence_of_statemets.
22877 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22878 for a parameterless procedure.
22879 (Enter_Name): Recognize renaming declarations created for private
22880 component of a protected type within protected operations, so that
22881 the source name of the component can be used in the debugger.
22883 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22884 Robert Dewar <dewar@adacore.com>
22886 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22887 of a generic subprogram are not visible outside the body.
22888 (Set_Warning_Switch): New procedure (code to set warning mode moved
22889 here from Switch.C so that it can be shared by pragma processing.
22890 (Check_References): Special case warning for non-modified non-imported
22892 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22893 form with a string literal argument
22895 2005-11-14 Javier Miranda <miranda@adacore.com>
22897 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22899 (Write): Addition of "not null" to the anonymous access.
22900 (Read): Addition of "not null" to the anonymous access.
22901 (Write): Addition of "not null" to the anonymous access.
22903 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22904 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22905 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22906 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22907 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22908 "not null" to the anonymous access.
22910 2005-11-14 Robert Dewar <dewar@adacore.com>
22912 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22915 2005-11-14 Vincent Celier <celier@adacore.com>
22917 * switch.adb (Bad_Switch): New procedure
22918 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22919 message when in error.
22921 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22922 Too_Many_Output_Files): Remove declarations, no longer used.
22923 (Scan_Nat): New parameter Switch
22925 (Bad_Switch): New procedure
22927 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22928 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22929 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22930 to Osint.Fail. Do not handle any exception.
22932 2005-11-14 Vincent Celier <celier@adacore.com>
22934 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22935 designates a non existent directory.
22937 2005-11-14 Robert Dewar <dewar@adacore.com>
22939 * xgnatugn.adb: Replace invalid membership test by 'Valid
22941 2005-11-14 Vincent Celier <celier@adacore.com>
22943 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22944 there is no object directory.
22946 2005-11-14 Robert Dewar <dewar@adacore.com>
22948 * usage.adb: Minor adjustment to output format, use nn instead of nnn
22949 (so that -gnateInnn does not run into next column)
22951 2005-11-14 Ed Falis <falis@adacore.com>
22953 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22956 2005-11-14 Cyrille Comar <comar@adacore.com>
22958 * s-chepoo.ads: Add comments on Dereference.
22959 Remove unnecessary inherited abstract primitives.
22962 2005-11-14 Robert Dewar <dewar@adacore.com>
22964 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22965 node parameter, not needed, since it is available as Declaration_Node.
22967 2005-11-14 Geert Bosch <bosch@adacore.com>
22969 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22970 grammatically correct.
22972 2005-11-14 Vincent Celier <celier@adacore.com>
22974 * s-fileio.ads: Correct spelling error in comment
22976 2005-11-14 Cyrille Comar <comar@adacore.com>
22977 Robert Dewar <dewar@adacore.com>
22978 Vincent Celier <celier@adacore.com>
22979 Ben Brosgol <brosgol@adacore.com>
22980 Jose Ruiz <ruiz@adacore.com>
22981 Pascal Obry <obry@adacore.com>
22984 Document that -fstack-check is needed for strict compliance with the
22985 Ada 95 Reference Manual.
22986 Correct reference to VAX systems to meet HP guidelines
22987 Add documentation for new gnatmake switches -vl, -vm and -vh
22988 Replace DEC Ada by HP Ada
22989 Replace DIGITAL by HP
22990 Remove empty section on tools in compatibility section
22991 Clarify the Windows convention semantics.
22992 Document the Win32 calling convention.
22993 The Stdcall, Win32 and DLL convention are synonyms.
22994 Add a note in -gnatR description about zero size record components
22995 Note on new >= and <= warnings for -gnatwc
22996 Document that equal sign after -gnatm is optional.
22997 Note that strip is working fine on DLL built with a Library
22998 Project. The restriction apply only to DLL built with gnatdll.
22999 Update section about the way to debug a DLL.
23000 Update information about the DLL convention.
23001 Document -C switch for gnatprep
23002 Document new attribute Library_ALI_Dir
23003 Update elaboration doc to include implicit Elaborate pragmas now
23004 generated for subprogram instantiations.
23005 Document limitation on executable names that include spaces for --GCC,
23006 --GNATBIND, and --GNATLINK switches.
23007 Document that -w causes -gnatws to be added at start of gcc switches
23009 * gnat_rm.texi: Document that -mieee is needed for generating infinite
23010 and NaN values in case of overflow on machines that are not fully
23011 compliant with the IEEE floating-point standard.
23012 Create a section describing the set of compiler options needed for
23013 strict compliance with the Ada 95 Reference Manual.
23014 Add documentation for pragma Obsolescent applied to a package
23015 Clarify potential issues of mixed language programs related to the
23016 I/O buffering enabling in the elaboration of the GNAT runtime.
23017 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
23018 This documentation only patch adds extra documentsion for pragma
23019 Restrictions (No_Elaboration_Code), explaining why it is not possible
23020 to document this restriction in terms of allowed source constructs.
23021 Document string literal form of pragma Warnings
23022 Document new attribute Library_ALI_Dir
23023 Add documentation on stable attributes in project files that was missing
23025 * gnat-style.texi: Indicate that paragraphs within a single comment
23026 should be separated by empty comment lines
23028 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
23031 * bindusg.adb: Minor cleanup, put -m before -M for consistency
23033 2005-11-14 Robert Dewar <dewar@adacore.com>
23035 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
23036 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
23037 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
23038 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
23039 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
23040 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
23041 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23042 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23043 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23044 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23045 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23046 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23047 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23048 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23049 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23050 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23051 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23052 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23053 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23054 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23055 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23056 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23057 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23058 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23059 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23060 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23061 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23062 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23063 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23064 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23065 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23066 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23067 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23068 system-interix.ads, system-solaris-sparc.ads,
23069 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23070 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23071 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23072 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23073 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23074 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23075 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23076 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23077 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23078 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23079 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23080 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23081 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23082 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23083 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23084 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23085 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23086 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23087 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23088 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23089 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23090 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23091 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23092 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23093 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23094 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23095 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23096 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23097 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23098 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23099 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23100 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23101 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23102 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23103 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23104 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23105 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23106 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23107 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23108 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23109 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23110 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23111 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23112 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23113 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23114 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23115 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23116 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23117 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23118 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23119 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23120 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23121 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23122 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23123 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23124 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23125 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23126 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23127 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23128 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23129 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23130 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23131 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23132 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23133 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23134 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23135 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23136 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23137 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23138 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23139 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23140 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23141 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23142 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23143 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23144 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23145 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23146 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23147 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23148 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23149 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23150 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23151 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23152 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23153 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23154 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23155 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23156 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23157 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23158 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23159 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23160 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23161 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23162 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23163 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23164 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23165 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23166 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23167 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23168 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23169 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23170 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23171 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23172 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23173 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23174 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23175 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23176 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23177 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23178 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23179 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23180 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23181 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23182 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23183 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23184 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23185 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23186 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23187 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23188 a-numaux-darwin.ads, a-numaux-darwin.adb,
23189 a-swuwha.ads, a-stunha.ads: Minor reformatting
23191 2005-11-14 Robert Dewar <dewar@adacore.com>
23194 * osint-m.adb: Add pragma Elaborate_All for Osint
23196 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
23199 * trans.c (call_to_gnu): Restore statement lost in translation.
23201 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
23203 * init.c: Use the Linux-specific section for the IA-64/Linux target.
23204 (__gnat_adjust_context_for_raise): Add conditional code so that the
23205 IA-64 is also supported.
23207 2005-11-03 James E Wilson <wilson@specifix.com>
23210 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23211 TREE_OVERFLOW check.
23213 2005-09-21 Olivier Hainque <hainque@adacore.com>
23216 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23217 as we create them to store a size in bits.
23219 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23227 * utils2.c (build_return_expr): New helper function.
23228 * gigi.h (build_return_expr): Declare it.
23229 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23230 of manually building the RETURN_EXPR tree.
23231 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23232 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23233 build_binary_op for the "target pointer" case. Use build_return_expr
23234 instead of manually building the RETURN_EXPR tree.
23236 2005-09-16 Laurent Guerby <laurent@guerby.net>
23239 * s-tpinop.ads: Make this unit Preelaborate.
23241 2005-09-16 Andreas Jaeger <aj@suse.de>
23243 * socket.c: Add string.h for memcpy.
23245 2005-09-05 Arnaud Charlet <charlet@adacore.com>
23247 * dec-io.ads, dec-io.adb: Removed, no longer used.
23249 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23251 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23253 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23254 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23255 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23256 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23257 dependent units are Preelaborate.
23258 (Initialize): Call Interrupt_Managemeent.Initialize and
23259 OS_Primitives.Initialize to ensure proper initialization of this unit.
23260 Remove use of System.Soft_Links
23261 Make this unit Preelaborate.
23263 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23264 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23265 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23266 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23267 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23268 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23269 Add pragma Preelaborate, since these packages are suitable for this
23273 * s-traent-vms.ads, s-intman-dummy.adb,
23274 s-taprop-dummy.adb: Make this unit Preelaborate.
23276 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23277 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23278 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23279 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23280 s-intman-solaris.adb, s-intman-irix-athread.adb,
23281 s-intman-irix.adb: Mark this unit Preelaborate.
23282 (Initialize): New procedure.
23285 * s-taspri-linux.ads: Removed.
23287 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23288 as done by other implementations (e.g. posix).
23290 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23291 responsible for deferring abort.
23292 Mark this unit Preelaborate.
23294 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23295 proper initialization of the tasking run-time.
23297 * s-tasdeb.ads: Mark this unit Preelaborate.
23298 (Known_Tasks): Add explicit default value to avoid elaboration code.
23300 * s-inmaop-vms.adb (Elaboration code): Add call to
23301 Interrupt_Management.Initialize since the elaboration code depends on
23302 proper initialization of this package.
23304 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23305 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23306 s-osprim-posix.adb: Make this unit Preelaborate.
23308 * a-calend.adb: Add call to OS_Primitives.Initialize
23310 * a-elchha.adb: Update use of Except.Id.Full_Name.
23311 Minor reformatting.
23312 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23314 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23315 Move with clauses outside Warnings Off now that dependent units are
23317 Use raise xxx with "..."; Ada 2005 form.
23319 * a-taside.ads, a-taside.adb:
23320 Remove some dependencies, to make it easier to make this unit truly
23322 Rewrite some code to be conformant with Preelaborate rules.
23324 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23325 marked Preelaborate in the future.
23327 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23328 these units Preelaborate.
23330 * s-exctab.adb: Update use of Except.Id.Full_Name.
23332 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23333 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23334 Set_Exc_Stack_Addr): Removed, no longer used.
23335 Remove reference to *Machine_State_Addr*, no longer needed.
23337 * s-stalib.ads: Mark this unit as Preelaborate[_05].
23338 (Exception_Data): Full_Name is now a System.Address so that this unit
23339 can be made Preelaborate.
23340 Clean up/simplify code thanks to Full_Name being a System.Address.
23341 Remove obsolete pragma Suppress (All_Checks), no longer needed.
23343 * s-taskin.ads, s-taskin.adb:
23344 Move with clauses outside Warnings Off now that dependent units are
23346 Make this unit Preelaborate.
23347 (Initialize): New proceduure, replace elaboration code and makes the
23348 set up of the tasking run-time cleaner.
23349 (Detect_Blocking): Now a function instead of a deferred boolean, to
23350 obey Preelaborate rules.
23352 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23353 soft links, no longer used.
23355 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23356 packages are suitable for this categorization.
23358 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23359 since we compile run-time sources in Ada 2005 mode.
23360 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23361 avoid having s-taprop*.adb depend on s-soflin and to avoid code
23363 Remove reference to *Machine_State_Addr*, no longer needed.
23365 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23367 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23368 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23369 Remove reference to System.Exceptions.
23371 * s-mastop-x86.adb: Removed, no longer used.
23373 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23375 * a-excach.adb: Minor reformatting.
23377 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23378 instead fix new warnings that were hidden by this change.
23379 (AAA, ZZZ): Removed, replaced by...
23380 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23381 are used instead of constants, to help make Ada.Exception truly
23383 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23384 Raise_Storage_Error): File is now a System.Address, to simplify code.
23385 (Elab code): Removed, no longer used.
23386 (Null_Occurrence): Remove Warnings Off and make this construct
23388 Remove code related to front-end zero cost exception handling, since
23389 it is no longer used.
23390 Remove -gnatL/-gnatZ switches.
23392 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23393 Update use of Except.Msg.
23395 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23396 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23397 to front-end zero cost exception handling, since it is no longer used.
23398 Remove -gnatL/-gnatZ switches.
23400 * lib-writ.ads: Minor reformatting
23403 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23405 * Make-lang.in: Remove references to s-except.ads
23407 * s-except.ads: Removed, no longer used.
23409 * s-mastop.ads, s-mastop.adb:
23410 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23411 Remove reference to System.Exceptions.
23413 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23414 switch-b.adb: Remove code related to front-end zero cost exception
23415 handling, since it is no longer used.
23416 Remove -gnatL/-gnatZ switches.
23418 2005-09-01 Robert Dewar <dewar@adacore.com>
23419 Gary Dismukes <dismukes@adacore.com>
23420 Javier Miranda <miranda@adacore.com>
23422 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23423 type by valid test and generate warning.
23424 (Tagged_Membership): Generate call to the run-time
23425 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23426 Change formal name Subtype_Mark to Result_Definition in several calls to
23427 Make_Function_Specification.
23428 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23429 check for proper accessibility of the operand of a class-wide allocator.
23430 The check can be left out if checks are suppressed or if the expression
23431 has a specific tagged type whose level is known to be safe.
23433 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23434 generates the run-time check associated with null-excluding entities.
23435 (Expand_N_Return_Statement): Add tests to determine if the accessibility
23436 check on the level of the return expression of a class-wide function
23437 can be elided. The check usually isn't needed if the expression has a
23438 specific type (unless it's a conversion or a formal parameter). Also
23439 add a test for whether accessibility checks are suppressed. Augment
23440 the comments to describe the conditions for performing the check.
23442 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
23443 Javier Miranda <miranda@adacore.com>
23444 Gary Dismukes <dismukes@adacore.com>
23445 Ed Schonberg <schonberg@adacore.com>
23447 * a-tags.adb (IW_Membership): Give support to
23448 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23449 subprogram has been extended to look for the tag in the ancestors tag
23451 Update the structure of the GNAT Dispatch Table to reflect the
23452 additional two tables used in dispatching selects.
23453 Introduce appropriate array types and record components in
23454 Type_Specific_Data to reflect the two tables.
23455 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23456 the TSD of a tag, indexed by position.
23457 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23458 operation kind in the TSD of a tag, indexed by position.
23460 * a-tags.ads: Introduce an enumeration type to capture different
23461 primitive operation kinds. Define a constant reflecting the number of
23462 predefined primitive operations.
23463 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23464 of an entry wrapper.
23465 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23466 callable entity of a primitive operation.
23468 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23469 primitive operations used in dispatching selects for limited
23470 interfaces, limited tagged, task and protected types what implement a
23472 (Freeze_Type): Generate the bodies of the primitive operations used in
23473 dispatching selects for limited tagged, task and protected types that
23474 implement a limited interface. Generate statements to populate the two
23475 auxiliary tables used for dispatching in select statements.
23476 (Freeze_Record_Type): Add call to initialize the dispatch table entries
23477 associated with predefined interface primitive operations.
23478 (Build_Dcheck_Function): Change Set_Subtype_Mark to
23479 Set_Result_Definition.
23480 (Build_Variant_Record_Equality): Change Subtype_Mark to
23482 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23483 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23484 (Build_Assignment): Simplify the code that adds the run-time-check.
23485 (Expand_N_Object_Declaration): Code cleanup.
23487 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23488 entries when there is a protected type that implements a limited
23491 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23492 common routines used in expansion of dispatching selects.
23493 (Add_Private_Declarations): Select the appropriate protection type when
23494 there is a protected type that implements a limited interface.
23495 (Build_Parameter_Block): Generate a wrapped parameter block.
23496 (Build_Protected_Subprogram_Body): Select the appropriate type for
23497 locking entries when there is a protected type that implements a
23499 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23500 classified as entry wrappers.
23501 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23502 asynchronous selects.
23503 (Expand_N_Conditional_Entry_Call): Add support for expansion of
23504 dispatching conditional selects.
23505 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23506 protection when there is a protected type that implements limited
23508 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23510 (Extract_Dispatching_Call): Extract the entity of the name of a
23511 dispatching call, the object parameter, actual parameters and
23512 corresponding formals.
23513 (Make_Initialize_Protection): Correct logic of protection initialization
23514 when there is a protected type that implements a limited interface.
23515 (Parameter_Block_Pack): Populate a wrapped parameter block with the
23516 values of actual parameters.
23517 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23518 block and assign them to the original actual parameters.
23520 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23521 (Build_Protected_Sub_Specification): Change the type and name of the
23522 last formal to account for the increased variety of protection modes.
23524 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23525 entities. Used to save the value of the Is_Hidden attribute when the
23526 limited-view is installed.
23527 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23528 the attribute of procedures classified as entry wrappers.
23529 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23530 entity of a primitive wrapper.
23531 (Write_Entity_Flags): Output the name and value of the
23532 Is_Primitive_Wrapper attribute.
23533 (Write_Field27_Name): Output the name and entity of the field Wrapped_
23535 (Underlying_Type): If we have an incomplete entity that comes from
23536 the limited view then we return the Underlying_Type of its non-limited
23537 view if it is already available.
23538 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23539 including operators.
23540 (Write_Field26_Name): Add entry for Overridden_Operation
23541 (Overridden_Operation): New attribute of functions and procedures.
23543 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23544 predefined position in the dispatch table for the primitive operations
23545 used in dispatching selects.
23546 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23547 predefined primitive operations and replace it with
23548 Default_Prim_Op_Count.
23549 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23550 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23551 the names of the generated primitive operations used in dispatching
23553 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23554 case of abstract interface types. They will be inherit by the objects
23555 implementing the interface.
23556 (Make_DT): There is no need to inherit the dispatch table of the
23557 ancestor interface for the elaboration of abstract interface types.
23558 The dispatch table will be inherited by the object implementing the
23560 (Copy_Secondary_DTs): Add documentation.
23561 (Validate_Position): Improve this static check in case of
23562 aliased subprograms because aliased subprograms must have
23564 (Init_Predefined_Interface_Primitives): New subprogram that initializes
23565 the entries associated with predefined primitives of all the secondary
23567 (Build_Anonymous_Access_Type): Removed.
23568 (Expand_Interface_Actuals): With the previous cleanup there is no need
23569 to build an anonymous access type. This allows further cleanup in the
23570 code generated by the expander.
23571 (Expand_Interface_Conversion): If the actual is an access type then
23572 build an internal function to handle the displacement. If the actual
23573 is null this function returns null because no displacement is
23574 required; otherwise performs a type conversion that will be
23575 expanded in the code that returns the value of the displaced actual.
23576 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23577 conversions that have no effect in the generated code because no
23578 displacement is required. Code cleanup; use local variables to
23579 avoid repeated calls to the subprogram directly_designated_type().
23581 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23582 Classify the primitive operations used in dispatching selects as
23584 (Implements_Limited_Interface): Determine whether some type either
23585 directly implements a limited interface or extends a type that
23586 implements a limited interface.
23587 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23588 (Expand_Subtype_From_Expr): Do not build actual subtype if the
23589 expression is limited.
23590 (Find_Interface_Tag): Add code to handle class-wide types and
23591 entities from the limited-view.
23593 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23594 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23595 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23596 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23599 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23600 of procedure name or prefix that appears as a trigger in a triggering
23603 * uintp.ads: Introduce constants Uint_11 and Uint_13.
23605 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23607 * s-tataat.adb, a-tasatt.adb:
23608 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23610 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23611 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23612 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23615 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23616 Jose Ruiz <ruiz@adacore.com>
23618 * s-taprop-vxworks.adb:
23619 Move with clauses outside Warnings Off now that dependent units are
23621 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23622 initialization of this unit.
23623 (Specific): Add new procedures Initialize and Delete so that this
23624 package can be used for VxWorks 5.x and 6.x
23625 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23626 differences between VxWorks 5.x and 6.x
23627 Minor reformatting.
23628 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23630 Use only Preelaborate-compatible constructs.
23632 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23633 Primitives.Operations.
23634 (Delete, Initialize): New procedures.
23636 * s-osinte-vxworks.adb: Body used to handle differences between
23637 VxWorks 5.x and 6.x
23638 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23640 * s-osinte-vxworks.ads: Minor reformatting.
23641 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23642 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23644 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23645 between Vxworks 5 and 6.
23646 (taskLock, taskUnlock): Removeed, no longer used.
23648 * adaint.c: The wait.h header is not located in the sys directory on
23649 VxWorks when using RTPs.
23650 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23652 (__gnat_dup): dup is available on Vxworks when using RTPs.
23653 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23655 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23657 * expect.c: The wait.h header is not located in the sys directory on
23658 VxWorks when using RTPs.
23660 2005-09-01 Thomas Quinot <quinot@adacore.com>
23662 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23664 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23666 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23667 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23668 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23669 g-soccon-freebsd.ads: Add new constants:
23671 SO_RCVTIMEO/SO_SNDTIMEO
23675 Move all target-specific file inclusions and macro definitions to
23676 gsocket.h, in order to ensure that any C code in socket.c will see a
23677 set of constants that is consistent with the contents of g-soccon.ads.
23679 * gsocket.h: Code imported from gen-soccon.c:
23680 Move all target-specific file inclusions and macro definitions to
23681 gsocket.h, in order to ensure that any C code in socket.c will see a set
23682 of constants that is consistent with the contents of g-soccon.ads.
23683 This change also makes gen-soccon self-contained (removing dependencies
23684 upon GCC internal headers).
23686 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23688 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23690 * socket.c: Minor reformatting.
23692 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23693 Thomas Quinot <quinot@adacore.com>
23695 * fname-sf.adb, mlib-tgt.ads,
23696 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23697 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23698 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23699 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23700 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23701 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23702 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23703 makegpr.adb: Remove redundant use_clauses.
23705 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23707 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23708 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23709 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23710 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23711 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23712 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23713 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23714 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23715 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23716 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23717 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23718 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23719 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23720 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23721 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23722 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23723 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23724 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23725 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23726 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23727 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23728 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23729 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23730 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23731 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23732 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23733 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23734 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23735 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23736 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23737 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23738 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23739 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23740 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23741 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23742 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23743 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23744 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23745 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23746 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23747 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23748 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23749 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23750 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23751 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23752 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23753 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23754 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23755 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23756 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23757 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23758 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23759 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23760 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23761 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23762 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23763 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23764 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23765 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23766 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23767 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23768 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23769 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23770 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23771 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23772 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23773 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23774 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23775 and always use the no parameter form for consistency.
23777 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23779 2005-09-01 Robert Dewar <dewar@adacore.com>
23781 * binde.adb: Minor reformatting
23782 (Find_Elab_Order): Output warning if -p used with static elab order
23784 2005-09-01 Robert Dewar <dewar@adacore.com>
23786 * checks.adb (Check_Needed): New procedure, deals with removing checks
23787 based on analysis of short-circuited forms. Also generates warnings for
23788 improper use of non-short-circuited forms.
23791 2005-09-01 Robert Dewar <dewar@adacore.com>
23793 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23796 2005-09-01 Robert Dewar <dewar@adacore.com>
23798 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23800 Implement new insertion char < (conditional warning)
23801 * errutil.adb, erroutc.adb: Implement new insertion char <
23802 (conditional warning).
23803 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23804 (Error_Msg_Warn): New variable for < insertion char.
23805 * prj-nmsc.adb: Implement new errout insertion char < (conditional
23807 (Check_For_Source): Change value of Source_Id only after the current
23808 source has been dealt with.
23810 2005-09-01 Robert Dewar <dewar@adacore.com>
23811 Doug Rupp <rupp@adacore.com>
23813 * exp_attr.adb: Handle vax fpt for 'Valid attribute
23814 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23815 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23816 (Valid_D, Valid_F, Valid_G): New functions
23818 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23819 Hristian Kirtchev <kirtchev@adacore.com>
23820 Javier Miranda <miranda@adacore.com>
23822 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23823 from object notation, the original node is unanalyzed and carries no
23824 semantic information, so that accessiblity checks must be performed on
23825 the type of the actual itself.
23826 (Expand_N_Subprogram_Declaration): Change last actual parameter for
23827 compatibility with Build_Protected_Sub_Specification.
23828 (Check_Overriding_Inherited_Interfaces): Add suport to handle
23829 overloaded primitives.
23830 (Register_Interface_DT_Entry): Use the new name of the formal
23831 the the calls to Expand_Interface_Thunk
23833 * exp_dbug.ads: Augment comments on encoding of protected types to
23834 include the generation of dispatching subprograms when the type
23835 implements at least one interface.
23837 * lib.ads: Extend information in Load_Stack to include whether a given
23838 load comes from a Limited_With_Clause.
23840 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23841 whether a potential circularity is harmless, because it includes units
23842 loaded through a limited_with clause. Extends previous treatment which
23843 did not handle properly arbitrary combinations of limited and
23844 non-limited clauses.
23846 2005-09-01 Nicolas Setton <setton@adacore.com>
23848 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23849 to be encoded as typ___XBLU_lowerbound__upperbound instead of
23850 typ___XB_lowerbound__upperbound.
23852 2005-09-01 Thomas Quinot <quinot@adacore.com>
23854 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23855 dummy access formal for RACW/RAS TypeCode TSS.
23856 (Build_TypeCode_Call): Do not generate dummy null access actual for
23857 calls to the TypeCode TSS.
23859 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23861 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23862 fully qualified name, to distinguish instances with the same local name.
23864 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23867 2005-09-01 Robert Dewar <dewar@adacore.com>
23869 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23872 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
23874 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23875 (Free): New deallocation procedure for filter elements
23876 (Close): Deallocate any existing filter for the concerned connection
23878 2005-09-01 Laurent Pautet <pautet@adacore.com>
23880 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23881 position set is provided, we compute one in order to reduce the maximum
23882 length of the keys. This computation first selects a character
23883 position between 1 and the minimum length of the keys in order to
23884 avoid reducing one of the keys to an empty string.
23885 (Initialize, Compute): When the ratio V to K is too low, the algorithm
23886 does not converge. The initialization procedure now comes with a
23887 maximum number of iterations such that when exceeded, an exception is
23888 raised in Compute. The user can initialize this ratio to another value
23890 Reformating and updated headers.
23892 2005-09-01 Javier Miranda <miranda@adacore.com>
23894 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23895 that given an entity T creates and returns an Itype that duplicates the
23896 contents of T. The returned Itype has the null-exclusion
23897 attribute set to True, and its Etype attribute references T
23898 to keep the association between the two entities.
23899 Update copyright notice
23901 * sem_aggr.adb (Check_Can_Never_Be_Null,
23902 Aggregate_Constraint_Checks, Resolve_Aggregate,
23903 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23905 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23907 2005-09-01 Gary Dismukes <dismukes@adacore.com>
23908 Robert Dewar <dewar@adacore.com>
23909 Hristian Kirtchev <kirtchev@adacore.com>
23911 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23914 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23916 Call Set_Result_Definition instead of Set_Subtype_Mark.
23917 (P_Subprogram_Specification): Add parsing of anonymous access result
23918 plus null exclusions. Call Set_Result_Definition instead of
23921 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23922 (P_Access_Type_Definition): Add parsing for an anonymous access result
23923 subtype, plus parsing for null exclusions. Call Set_Result_Definition
23924 instead of Set_Subtype_Mark.
23926 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23927 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23928 (Result_Definition): New function for N_Function_Specifications.
23929 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23930 N_Function_Specification.
23931 (Set_Null_Exclusion_Present): Allow this flag for
23932 N_Function_Specification.
23933 (Set_Result_Definition): New procedure for N_Function_Specifications.
23934 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23935 and N_Function_Specification.
23937 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23938 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23939 Add support for LIMITED NEW for Ada 2005 AI-419
23940 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23941 syntax for anonymous access results.
23942 Replace Subtype_Mark field by Result_Definition in
23943 N_Function_Specification and N_Access_Definition specs.
23944 Add Null_Exclusion_Present to spec of N_Function_Specification.
23945 (Result_Definition): New function for N_Function_Specification and
23946 N_Access_Function_Definition.
23947 (Set_Result_Definition): New procedure for N_Function_Specification and
23948 N_Access_Function_Definition.
23950 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23951 Result_Definition for cases of N_Access_Function_Definition and
23952 N_Function_Specification.
23953 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23955 2005-09-01 Vincent Celier <celier@adacore.com>
23957 * lib-writ.adb: Update Copyright notice
23958 (Write_With_Lines): On platforms where file names are case-insensitive,
23959 record the file names in lower case.
23960 (Write_ALI): For D lines, on platforms where file names are
23961 case-insensitive, record the file names in lower case.
23963 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23964 Emmanuel Briot <briot@adacore.com>
23966 * lib-xref.adb (Output_Overridden_Op): Display information on
23967 overridden operation.
23969 * lib-xref.ads: Add documentation on overridden operations.
23971 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23974 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23975 overriding entity information.
23977 2005-09-01 Vincent Celier <celier@adacore.com>
23979 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23980 including those that are inherited.
23982 2005-09-01 Robert Dewar <dewar@adacore.com>
23984 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23986 * par-prag.adb: Implement new pragma Debug_Policy
23988 * sem_prag.adb Implement new pragma Debug_Policy
23989 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23990 Component_Size attribute specification. Give warning for ignored pragma
23993 * snames.h, snames.ads, snames.adb: Introduce entries in
23994 Preset_Names for Name_Disp_Asynchronous_Select,
23995 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23996 Name_Disp_Timed_Select.
23997 New pragma Debug_Policy
23999 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24001 Switch -gnata also sets Debug_Pragmas_Enabled
24003 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
24004 handle an explicit -gnata when compiling predefined files.
24006 2005-09-01 Vincent Celier <celier@adacore.com>
24008 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
24009 directories of projects that have no Ada sources.
24011 2005-09-01 Robert Dewar <dewar@adacore.com>
24013 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
24014 (makes a difference for wide characters)
24016 * widechar.adb, widechar.ads:
24017 Add Wide_Char_Byte_Count feature to count chars vs bytes
24019 2005-09-01 Thomas Quinot <quinot@adacore.com>
24020 Ed Schonberg <schonberg@adacore.com>
24021 Robert Dewar <dewar@adacore.com>
24023 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
24024 'Address attribute reference with an overloaded prefix, use the
24025 location of the prefix (not the location of the attribute reference) as
24026 the error location.
24027 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
24028 a function renaming thereof, is a valid prefix for 'Size (where it is
24029 intepreted as a function call).
24030 (Statically_Denotes_Entity): New predicate to determine whether the
24031 prefix of an array attribute can be considered static.
24034 (Eval_Attr): Fix failure to evaluate Component_Size for
24035 unconstrained arrays (resulted in wrong value in packed case, since
24036 back end cannot handle this case)
24038 2005-09-01 Robert Dewar <dewar@adacore.com>
24040 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
24041 error msgs for most common cases.
24042 Use new errout insertion char < (conditional warning)
24044 2005-09-01 Javier Miranda <miranda@adacore.com>
24045 Ed Schonberg <schonberg@adacore.com>
24047 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24048 become local to the whole package.
24049 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24050 the package was already analyzed the new algorithm "replaces" the
24051 real entities by the shadow ones. This is required to ensure that
24052 the order of these entities in the homonym chains does not change;
24053 otherwise we can have undefined references at linking time because
24054 in case of conflicts the external name of the entities will have
24055 a suffix that depends on the order of the entities in the chain.
24056 (Remove_Limited_With_Clause): Complementary code that completes the
24057 new algorithm and replaces the shadow entities by the real ones.
24058 (Install_Limited_Withed_Unit): When unchaining entities before the
24059 installation of the shadow entities, only regular entities of the
24060 public part must be taken into account. This is required to
24061 keep this routine in synch with the work done by Remove_Limited_
24063 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24064 even if unit is analyzed, because the analysis of the unit is
24065 idempotent in any case, and the limited view of the unit may have to
24066 be installed for proper visibility.
24067 (Expand_Limited_With_Clause): Even if the unit in the implicit
24068 with_clause has been analyzed already, a limited view of the package
24069 must be built for the current context, if it does not exist yet.
24071 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24072 Javier Miranda <miranda@adacore.com>
24073 Gary Dismukes <dismukes@adacore.com>
24075 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24076 defining entity for the instance body, make a new defining identifier
24077 rather than copying the entity of the spec, to prevent accidental
24078 sharing of the entity list.
24079 (Check_Private_View): When exchanging views of private types, build the
24080 list of exchanged views as a stack, to ensure that on exit the exchanges
24081 are undone in the proper order.
24082 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24083 Restore the compilation environment in case of instantiation_error.
24084 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24085 for an anonymous access result.
24086 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24087 (Formal_Entity): Handle properly the case of a formal package that
24088 denotes a generic package renaming.
24090 2005-09-01 Thomas Quinot <quinot@adacore.com>
24092 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24093 clause if the array aggregate is surrounded by parentheses.
24095 2005-09-01 Cyrille Comar <comar@adacore.com>
24096 Gary Dismukes <dismukes@adacore.com>
24097 Ed Schonberg <schonberg@adacore.com>
24098 Javier Miranda <miranda@adacore.com>
24100 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24102 to check if a type is Constrained in cases related to code generation
24103 (rather than semantic checking) since otherwise we do not generate
24104 similar code for mutable private types depending if their
24105 discriminants are visible or not.
24106 (Check_Abstract_Overriding): Do not complain about failure to override
24107 the primitive operations used in dispatching selects since they will
24108 always be overriden at the freeze point of the type.
24109 (Access_Definition): Separate out handling for resetting the scope
24110 of an anonymous access function result type. Retrieve the scope
24111 of the associated function rather than using Current_Scope, which
24112 does not have a consistent value (depends on whether we're in the
24113 middle of analyzing formal parameters). Add ??? comment about
24114 finding a cleaner way to handle the special cases of scope setting.
24115 (Process_Incomplete_Dependents): A protected operation is never a
24116 dispatching operation (only its wrapper may be).
24117 (Build_Derived_Record_Type): In case of tagged private types that
24118 implement interfaces add derivation of predefined primitive
24120 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24121 by two parameters that are used in case of derivation from abstract
24122 interface types: No_Predefined_Prims is used to avoid the derivation
24123 of predefined primitives from the interface, and Predefined
24124 Prims_Only is used to complete the derivation predefined primitives
24125 in case of private tagged types implementing interfaces.
24126 Fix typo in comments
24127 (Find_Interface_In_Descendant): Protect the frontend against
24128 wrong code with large circularity chains.
24129 (Is_Private_Overriding): Add support for entities overriding interface
24130 subprograms. The test failed because Entities associated with overriden
24131 interface subprograms are always marked as hidden (and used to build
24132 the secondary dispatch table); in this case the overriden entity is
24133 available through the field abstract_interface_alias (cf. override_
24134 dispatching_operation)
24135 (Access_Definition): Set the scope of the type to Current_Scope for the
24136 case of a function with an anonymous access result type.
24137 (Access_Subprogram_Declaration): Handle creation of the type entity for
24138 an access-to-function type with an anonymous access result.
24139 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24140 in handling for N_Access_Function_Definition.
24141 (Analyze_Subtype_Declaration): Modify the text of error message.
24142 (Derived_Type_Declaration): Modify the text of error message.
24143 (Process_Subtype): Modify the text of error message plus cleanup
24144 of one redundant error message.
24145 (Analyze_Component_Declaration): Code cleanup.
24146 (Analyze_Object_Declaration): Code cleanup.
24147 (Analyze_Subtype_Declaration): Propagate the null-exclusion
24148 attribute in case of access types. Code cleanup.
24149 (Array_Type_Declaration): Code cleanup.
24150 (Process_Discriminants): Create the new null-excluding itype
24151 if required. Code cleanup.
24152 (Process_Subtype): Create the new null-excluding itype if
24153 required. Code cleanup.
24154 (Build_Derived_Record_Type): Code cleanup to avoid calling
24155 twice the subprogram derive_subprograms in case of private
24156 types that implement interfaces. In this particular case the
24157 subprogram Complete_Subprograms_Derivation already does the
24158 job associated with the second call.
24160 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24161 conversion to the full view when generating an operation for a
24162 discriminant whose type may currently be private.
24164 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24165 Javier Miranda <miranda@adacore.com>
24167 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24168 V (Obj.F), the rewriting does not involve the indexed component, but
24169 only the selected component itself.
24170 Do not apply the transformation if the analyzed node is an actual of a
24171 call to another subprogram.
24172 (Complete_Object_Operation): Retain the entity of the
24173 dispatching operation in the selector of the rewritten node. The
24174 entity will be used in the expansion of dispatching selects.
24175 (Analyze_One_Call): Improve location of the error message associated
24177 (Analyze_Selected_Component): No need to resolve prefix when it is a
24178 function call, resolution is done when parent node is resolved, as
24180 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24181 when attempting to resolve a call transformed from its object notation.
24182 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24183 of the argument list for each interpretation of the operation.
24184 (Try_Object_Operation): The designated type of an access parameter may
24185 be an incomplete type obtained through a limited_with clause, in which
24186 case the primitive operations of the type are retrieved from its full
24188 (Analyze_Call): If this is an indirect call, and the return type of the
24189 access_to_subprogram is incomplete, use its full view if available.
24191 2005-09-01 Javier Miranda <miranda@adacore.com>
24192 Gary Dismukes <dismukes@adacore.com>
24194 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24195 access types the null-exclusion and access-to-constant attributes must
24197 (Analyze_Return_Statement): When the result type is an anonymous access
24198 type, apply a conversion of the return expression to the access type
24199 to ensure that appropriate accessibility checks are performed.
24200 (Analyze_Return_Type): For the case of an anonymous access result type,
24201 generate the Itype and set Is_Local_Anonymous_Access on the type.
24202 Add ??? placeholder for check to disallow returning a limited object
24203 in Ada 2005 unless it's an aggregate or a result of a function call.
24204 Change calls from Subtype_Mark to Result_Definition.
24205 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24206 Result_Definition in call to Make_Function_Specification.
24207 (Build_Body_To_Inline): Change Set_Subtype_Mark to
24208 Set_Result_Definition.
24209 (Make_Inequality_Operator): Change formal Subtype_Mark to
24210 Result_Definition in call to Make_Function_Specification.
24211 (Process_Formals): Create the new null-excluding itype if required.
24212 (New_Overloaded_Entity): For an entity overriding an interface primitive
24213 check if the entity also covers other abstract subprograms in the same
24214 scope. This is required to handle the general case, that is, overriding
24215 other interface primitives and overriding abstract subprograms inherited
24216 from some abstract ancestor type.
24217 (New_Overloaded_Entity): For an overriding entity that comes from
24218 source, note the operation that it overrides.
24219 (Check_Conformance, Type_Conformant): Addition of one new formal
24220 to skip controlling formals in the analysis. This is used to
24221 handle overloading of abstract interfaces.
24222 (Base_Types_Match): Add missing case for types imported from
24223 limited-with clauses
24224 (New_Overloaded_Entity): Add barrier to protect the use of
24225 the "alias" attribute.
24227 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24229 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24230 verify that the procedure and the entry are mode conformant.
24231 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24232 as a different operator, which is often a cut-and-paste error.
24234 2005-09-01 Javier Miranda <miranda@adacore.com>
24235 Ed Schonberg <schonberg@adacore.com>
24237 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24238 used in controlling parameters exclude null because it is necessary to
24239 read the tag to dispatch, and null has no tag.
24240 (Override_Dispatching_Operation): If the previous operation is inherited
24241 from an interface, it becomes hidden and does not participate in later
24244 2005-09-01 Javier Miranda <miranda@adacore.com>
24245 Ed Schonberg <schonberg@adacore.com>
24246 Gary Dismukes <dismukes@adacore.com>
24248 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24249 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24250 the expander will generate the corresponding run-time check to evaluate
24252 (Resolve_Call): Check for legal type of procedure name or prefix that
24253 appears as a trigger in a triggering alternative.
24254 (Valid_Conversion): If expression is ambiguous and the context involves
24255 an extension of System, remove System.Address interpretations.
24256 (Resolve_Qualified_Expression): Reject the case of a specific-type
24257 qualification applied to a class-wide argument. Enhance comment
24258 to explain checking of Original_Node.
24259 (Resolve_Type_Conversion): The location of the error message was not
24260 general enough to handle the general case and hence it has been removed.
24261 In addition, this patch improves the text of the message.
24262 (Resolve_Type_Conversion): Add missing support for access to interface
24264 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24265 do not expand if the expression is the actual in a call, because proper
24266 expansion will take place when the call itself is expanded.
24267 (Resolve_Allocator): If the context is an unchecked conversion, the
24268 allocator inherits its storage pool, if any, from the target type of
24271 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24272 Javier Miranda <miranda@adacore.com>
24274 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24275 inherited interface operation that has an implementation, use the
24276 implementation to avoid spurious ambiguities.
24277 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24278 use the Corresponding_Record_Typ attribute to look for the interface
24279 because it is set by the expander (and hence it is not always
24280 available). For this reason we traverse the list of interfaces
24281 (available in the parent of the concurrent type).
24282 (Interface_Present_In_Ancestor): Handle entities from the limited view
24284 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24286 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24287 from the list of required components.
24288 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24289 primitive procedure of a limited interface with a controlling first
24291 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24293 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24294 capture if it is generated in the second operand of a short-circuit
24296 Do not capture values for variables with address clauses.
24297 (Is_Object_Reference): Treat a function call as an object reference only
24298 if its type is not Standard_Void_Type.
24300 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24302 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24303 to a variable that is statically known to be constant.
24305 2005-09-01 Geert Bosch <bosch@adacore.com>
24306 Robert Dewar <dewar@adacore.com>
24308 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24309 (VAXGF_Safe_First): Idem.
24311 2005-09-01 Robert Dewar <dewar@adacore.com>
24312 Arnaud Charlet <charlet@adacore.com>
24314 * g-dirope.ads: Minor reformatting
24315 Document that bounds of result of Base_Name match the input index
24317 Add documentation on environment variable syntax for Expand_Path
24319 * gnat_ugn.texi: Update documentation to include mention of -m switches
24320 Document new treatment of wide characters in max line length
24322 Remove -gnatL/-gnatZ switches, no longer used.
24323 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24326 * gnat_rm.texi: Add doc for two argument form of pragma
24327 Float_Representation.
24328 Add documentation for pragma No_Strict_Aliasing
24329 Add note that explicit component clause overrides pragma Pack.
24330 Add documentation of pragma Debug_Policy
24332 2005-09-01 Matthew Heaney <heaney@adacore.com>
24334 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24335 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24336 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24337 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24338 draft (Draft 13, August 2005) of Ada Amendment 1.
24340 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24342 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24343 Note that the platform-specific version of g-soccon.ads for VMS is now
24344 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24345 really is a package spec).
24346 Replace s-taspri-linux.ads by s-taspri-posix.ads
24347 Remove references to s-mastop-x86.adb
24349 * system-vxworks-xscale.ads: Removed, no longer used.
24350 * s-vxwork-xscale.ads: Removed, no longer used.
24352 2005-09-01 Robert Dewar <dewar@adacore.com>
24354 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24355 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24356 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24357 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24358 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24359 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24360 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24361 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24362 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24363 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24364 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24365 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24366 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24367 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24368 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24369 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24370 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24371 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24372 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24373 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24374 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24376 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24380 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24382 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24383 Doug Rupp <rupp@adacore.com>
24385 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24387 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24388 this code in the GNAT run-time.
24390 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24393 * init.c (__gnat_error_handler [many]): Mark "msg" as const
24394 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24396 (__gnat_inside_elab_final_code): Moved here from
24397 Standard_Library and only defined for the compiler.
24398 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24399 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24400 using RTPs because directly vectored Interrupt routines are not
24401 supported on this configuration.
24402 (getpid): Do not redefine this function on VxWorks when using RTPs
24403 because this primitive is well supported by the RTP libraries.
24404 (copy_msg): Correct the code that checks for buffer overflow.
24405 Discovered during code reading.
24407 2005-08-29 Olivier Hainque <hainque@adacore.com>
24409 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24410 a library level mutable variable with an initializer, tell
24411 build_allocator to ignore the initializer's size. It may not be large
24412 enough for all the values that might be assigned to the variable later
24415 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24416 Eric Botcazou <ebotcazou@adacore.com>
24418 * trans.c: Protect < in error msg with quote
24419 Replace GCC_ZCX by Back_End_Exceptions.
24420 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24421 has been sufficiently aligned in the record.
24423 2005-08-15 James E. Wilson <wilson@specifix.com>
24425 * system-linux-alpha.ads: Change ia64 to alpha.
24427 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
24429 * decl.c, utils.c: Fix comment typos.
24431 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
24433 * decl.c, init.c, initialize.c: Fix comment typos.
24435 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
24437 Make CONSTRUCTOR use VEC to store initializers.
24438 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24440 * trans.c (extract_values): Likewise.
24441 * utils.c (convert, remove_conversions): Likewise.
24442 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24443 gnat_build_constructor): Likewise.
24445 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24447 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24449 (compare_field_bitpos): Likewise.
24451 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24453 * utils.c (create_var_decl): Only set DECL_COMMON on
24454 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24455 VAR_OR_FUNCTION_DECL_P.
24457 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
24459 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24462 2005-07-07 Pascal Obry <obry@adacore.com>
24464 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24465 returned type on Windows.
24467 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24470 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24471 exception in this case.
24472 Simplify the code as "Image (Image'Range)" = "Image".
24474 2005-07-07 Vincent Celier <celier@adacore.com>
24476 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24477 the destructor/constructor attributes for <lib>final/<lib>init.
24479 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24481 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
24483 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24484 type if the parameter is not passed by copy but reference by default.
24486 2005-07-07 Javier Miranda <miranda@adacore.com>
24488 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24489 Reimplementation of the support for abstract interface types in order
24490 to leave the code more clear and easy to maintain.
24492 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24493 abstract interface types in order to leave the code clearer and easier
24496 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24497 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24498 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24499 appropriate entry of the secondary dispatch table.
24500 (Make_DT): Add code to inherit the secondary dispatch tables of
24503 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24504 implementing both functionalities by means of a common routine, each
24505 routine has its own code.
24507 2005-07-07 Javier Miranda <miranda@adacore.com>
24509 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24511 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24514 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24517 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24518 use of tag incomplete types.
24520 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24521 give support to tagged incomplete types.
24523 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24524 expression is a discriminant reference and its type is private, as can
24525 happen within a stream operation for a mutable record, use the full
24526 view of the type to resolve the case alternatives.
24527 (Analyze_Assignment): Check wrong dereference of incomplete types.
24529 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24532 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24535 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24536 N_Incomplete_Type_Declaration nodes.
24538 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24539 Tag_Present to give support to tagged incomplete types:
24541 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24544 2005-07-07 Olivier Hainque <hainque@adacore.com>
24547 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24548 definitions for the Unwind wrappers in the compiler case.
24550 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24551 Javier Miranda <miranda@adacore.com>
24553 * par-load.adb (Load): If a child unit is loaded through a limited_with
24554 clause, each parent must be loaded as a limited unit as well.
24556 * sem_ch10.adb (Previous_Withed_Unit): Better name for
24557 Check_Withed_Unit. Return true if there is a previous with_clause for
24558 this unit, whether limited or not.
24559 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24561 (Is_Visible_Through_Renamings): New local subprogram of install_limited
24562 _withed_unit that checks if some package installed through normal with
24563 clauses has a renaming declaration of package whose limited-view is
24564 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24565 of the current Draft document for Ada 2005.
24566 (Analyze_Context): Complete the list of compilation units that
24567 are allowed to contain limited-with clauses. It also contains
24568 checks that were previously done by Install_Limited_Context_Clauses.
24569 This makes the code more clear and easy to maintain.
24570 (Expand_Limited_With_Clause) It is now a local subprogram of
24571 Install_Limited_Context_Clauses, and contains the code that adds
24572 the implicit limited-with clauses for parents of child units.
24573 This functionality was prevously done by Analyze_Context.
24575 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24578 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24579 been erroneously named in a limited-with clause of its own context.
24580 In this case the error has been previously notified by Analyze_Context.
24582 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24584 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24585 generic package that contains local declarations with the same name.
24586 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24588 2005-07-07 Bernard Banner <banner@adacore.com>
24590 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24591 ia64 platform only on platforms that you the GCC unwind library
24592 rather than the system unwind library.
24594 2005-07-07 Thomas Quinot <quinot@adacore.com>
24596 * expect.c: Minor reformatting
24598 2005-07-07 Sergey Rybin <rybin@adacore.com>
24600 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24603 * gnat_ugn.texi: Add description for new gnatpp option
24606 2005-07-04 Thomas Quinot <quinot@adacore.com>
24608 * g-expect-vms.adb, g-expect.ads, g-expect.adb
24609 (Get_Command_Output): New subprogram to launch a process and get its
24610 standard output as a string.
24612 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24613 Olivier Hainque <hainque@adacore.com>
24615 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24616 fetch a code-range descriptor associated with the machine state. On
24617 failure set the machine state's PC to 0; on success, pass the
24618 descriptor to exc_virtual_unwind.
24620 * init.c (Tru64 section): New function __gnat_set_code_loc.
24622 2005-07-04 Vincent Celier <celier@adacore.com>
24624 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24625 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24626 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24627 Remove all auto-initialization code, as this is now done through the
24628 constructor mechanism.
24630 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24631 __gnat_sals_init_using_constructors): New functions.
24633 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24634 Linker_Constructor and Linker_Destructor when switch -a is used.
24636 * bindusg.adb: Add line for new switch -a
24638 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24639 (Gnatbind): When switch -a is used, check if it is allowed
24641 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24643 2005-07-04 Joel Brobecker <brobecker@adacore.com>
24645 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24646 This prevents us from hitting a limitation during the debug info
24647 generation when using stabs.
24648 (Prims_Ptr): Likewise.
24650 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24651 Ed Schonberg <schonberg@adacore.com>
24652 Javier Miranda <miranda@adacore.com>
24654 * checks.adb (Null_Exclusion_Static_Checks): In the case of
24655 N_Object_Declaration, only perform the checks if the Object_Definition
24656 is not an Access_Definition.
24658 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24659 where the parent of an the access definition is an N_Object_Declaration
24660 when determining the Associated_Node_For_Itype and scope of an
24661 anonymous access-to-subprogram type.
24663 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24664 Corresponding_Spec on the body created for a null procedure. Add ???
24665 comment. Remove New_Copy_Tree call on body argument to
24666 Set_Body_To_Inline.
24668 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24669 discriminants, use the type of the actual as well, because the
24670 discriminants may be read by the called subprogram.
24672 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24673 access type we do not need to handle non-limited views.
24674 (Build_Derived_Record_Type): Additional check to check that in case of
24675 private types, interfaces are only allowed in private extensions.
24677 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24679 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24680 <Pragma_Linker_Destructor>: Likewise.
24682 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24683 Pragma_Linker_Destructor.
24685 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24686 ATTR_LINK_DESTRUCTOR.
24687 (static_ctors, static_dtors): New variables.
24689 * misc.c (gnat_expand_body): Output current function as constructor
24690 and destructor if requested.
24692 * par-prag.adb: Add processing for pragma Linker_Constructor and
24695 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24696 extracted from Check_Interrupt_Or_Attach_Handler.
24697 (Check_Interrupt_Or_Attach_Handler): Invoke it.
24698 Implement pragma Linker_Constructor and Linker_Destructor with the
24699 help of Find_Unique_Parameterless_Procedure.
24700 Replace Name_Alias with Name_Target for pragma Linker_Alias.
24702 * snames.h, snames.ads, snames.adb:
24703 Add Name_Linker_Constructor and Name_Linker_Destructor.
24704 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24705 * snames.adb: Remove Name_Alias.
24707 * trans.c: Include cgraph.h.
24708 (build_global_cdtor): New function.
24709 (Compilation_Unit_to_gnu): Build global constructor and destructor if
24711 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24713 (addressable_p) <COMPONENT_REF>: Unconditionally test
24714 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24716 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24717 variable if it is external.
24719 (static_ctors, static_dtors): New global variables.
24720 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24721 <ATTR_LINK_DESTRUCTOR>: Likewise.
24722 (end_subprog_body): Chain function as constructor and destructor
24725 * exp_util.adb (Force_Evaluation): Unconditionally invoke
24726 Remove_Side_Effects with Variable_Ref set to true.
24727 (Remove_Side_Effects): Handle scalar types first. Use a renaming
24728 for non-scalar types even if Variable_Ref is true and for class-wide
24731 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24733 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24734 to prevent spurious warnings.
24736 2005-07-04 Thomas Quinot <quinot@adacore.com>
24738 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24739 Itypes. Itypes are really unexpected there.
24740 (Build_TypeCode_Function): Generalise special processing for Itypes to
24741 handle the case of numeric implicit base types as well as enumerated
24744 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24746 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24747 controlled, indicate the expected type of the dereference that is
24748 created for the call to Deep_Finalize, to prevent spurious errors when
24749 the designated type is private and completed with a derivation from
24750 another private type.
24752 2005-07-04 Vincent Celier <celier@adacore.com>
24754 * make.adb (Change_To_Object_Directory): When unable to change the
24755 current dir to the object directory, output the full path of the
24758 2005-07-04 Matthew Gingell <gingell@adacore.com>
24760 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24762 * indepsw-linux.adb: Replace by...
24764 * indepsw-gnu.adb: ...this new file
24766 2005-07-04 Vincent Celier <celier@adacore.com>
24768 * mlib-prj.adb (Auto_Initialize): New constant String
24769 (SALs_Use_Constructors): New Boolean function
24770 (Build_Library): Call gnatbind with Auto_Initialize switch when
24771 SALs_Use_Constructors returns True.
24773 * mlib-tgt.ads: Minor reformatting
24775 * mlib-utl.ads: Minor reformatting
24777 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24779 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24781 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24782 single protected declarations can have an interface list.
24783 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24784 with seriously malformed entry declarations, and lead to compilation
24785 abandoned messages.
24787 2005-07-04 Javier Miranda <miranda@adacore.com>
24789 * par-load.adb: Load the context items in two rounds.
24791 2005-07-04 Robert Dewar <dewar@adacore.com>
24793 * scng.adb: Do not consider Mod used as an attribute to be a keyword
24795 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24796 Javier Miranda <miranda@adacore.com>
24798 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24799 type extension needs a limited view.
24800 Remove previous restriction on private types available through the
24801 limited-view (only tagged private types were previously allowed).
24802 (Install_Withed_Unit): In the code that implements the
24803 legality rule given in AI-377, exclude a child unit with the name
24804 Standard, because it is a homonym of the Standard environment package.
24806 2005-07-04 Thomas Quinot <quinot@adacore.com>
24808 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24809 overloaded function call, carry interpretations from the original tree
24812 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24814 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24815 types check whether some designated type is a limited view, and use
24816 the non-limited view if available.
24818 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24820 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24821 constraint of full view of a private view T1 if present, when T2 is a
24822 discriminated full view.
24824 2005-07-04 Thomas Quinot <quinot@adacore.com>
24826 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24827 actual that is a view conversion of a bit packed array reference.
24829 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24831 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24832 present before checking whether an interface type covers a synchronized
24835 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24837 * sem_util.adb (Is_Object_Reference): An indexed or selected component
24838 whose prefix is an implicit dereference is an object reference. Removes
24839 spurious errors when compiling with -gnatc.
24841 2005-07-04 Robert Dewar <dewar@adacore.com>
24844 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24846 2005-07-04 Matthew Gingell <gingell@adacore.com>
24848 * tracebak.c: Enable tracebacks on ia64 platforms
24850 2005-07-04 Vincent Celier <celier@adacore.com>
24852 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24853 the GNAT BIND command, as gnatbind accepts multiples ALI files with
24854 the -L or -n switches.
24856 2005-07-04 Vincent Celier <celier@adacore.com>
24858 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24859 correctly computed and the main project data is not modified while
24861 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24862 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24863 c++linker as this does not work on some platforms.
24865 2005-07-04 Matthew Heaney <heaney@adacore.com>
24867 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24869 * a-coinve.adb: Perform constraint checks explicitly.
24871 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24872 Thomas Quinot <quinot@adacore.com>
24874 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24875 new target gen-soccon.
24877 2005-07-04 Robert Dewar <dewar@adacore.com>
24879 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24881 2005-07-04 Thomas Quinot <quinot@adacore.com>
24883 * g-socket.ads (Check_Selector): Minor rewording of comment.
24885 2005-07-04 Vincent Celier <celier@adacore.com>
24887 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24889 2005-07-04 Thomas Quinot <quinot@adacore.com>
24891 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24893 2005-07-04 Sergey Rybin <rybin@adacore.com>
24895 * gnat_ugn.texi: Add description of --eol gnatpp option
24897 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24898 Thomas Quinot <quinot@adacore.com>
24900 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24901 if the user wants all calls of a subprogram to be flagged,
24902 independently of whether they are made from within the same unit or
24904 Mention restriction for pragma Linker_Alias on some platforms.
24905 Document pragma Linker_Constructor and Linker_Destructor.
24906 Rewrite documentation of Weak_External, Linker_Section and
24907 Linker_Alias pragmas.
24909 2005-07-04 Arnaud Charlet <charlet@adacore.com>
24911 * s-stausa.ads, s-stausa.adb: New files.
24913 2005-06-30 Kelley Cook
24915 * all files: Update FSF address in copyright headers.
24916 * gen-soccon.co (main): Output new FSF address in generated files.
24918 2005-06-28 Paul Brook <paul@codesourcery.com>
24920 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24922 2005-06-14 Olivier Hainque <hainque@adacore.com>
24923 Eric Botcazou <ebotcazou@adacore.com>
24925 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24926 exc_unwind, now that we are generating proper .debug_frame output for
24929 * tracebak.c: Remove the mips-irix section, as we are now using the
24930 s-mastop based unwinder again.
24931 Under SPARC/Solaris, take into account the stack bias to compute the
24932 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
24935 2005-06-14 Doug Rupp <rupp@adacore.com>
24937 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24939 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24941 2005-06-14 Pascal Obry <obry@adacore.com>
24943 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24944 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24945 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24948 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24949 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24950 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24951 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24952 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24953 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24954 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24955 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24956 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24957 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24958 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24959 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24960 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24961 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24962 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24963 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24964 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24965 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24966 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24967 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24968 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24969 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24970 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24971 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24972 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24973 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24974 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24975 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24976 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24977 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24978 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24979 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24980 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24981 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24982 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24983 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24984 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24985 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24986 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24987 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24988 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24989 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24990 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24991 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24992 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24993 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24994 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24995 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24996 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24997 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24998 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24999 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25000 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
25001 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25002 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
25003 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25004 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
25005 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
25006 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
25007 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
25008 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
25009 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
25010 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
25011 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
25012 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
25013 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
25014 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
25015 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
25016 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
25017 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
25018 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
25019 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
25020 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
25021 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
25022 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
25023 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
25024 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
25025 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
25026 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
25027 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
25028 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
25029 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
25030 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
25031 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
25032 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
25033 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
25034 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
25035 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
25036 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
25037 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
25038 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
25039 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
25040 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
25041 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25042 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25043 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25044 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25045 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25046 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25047 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25048 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25049 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25050 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25051 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25052 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25053 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25054 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25055 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25056 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25057 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25058 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25059 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25060 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25061 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25062 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25063 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25064 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25065 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25066 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25067 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25068 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25069 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25070 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25071 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25072 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25073 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25074 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25075 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25076 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25077 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25078 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25079 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25080 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25082 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25083 Arnaud Charlet <charlet@adacore.com>
25085 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25086 longer protected objects. They have been replaced by lower-level
25087 suspension objects made up by a mutex and a condition variable (or
25088 their equivalent given a particular OS) plus some internal data to
25089 reflect the state of the suspension object.
25090 (Initialize, Finalize): Add this initialization procedure for
25091 Suspension_Object, which is a controlled type.
25092 (Finalize): Add the finalization procedure for Suspension_Object,
25093 which is a controlled type.
25095 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25096 Ada.Synchronous_Task_Control because there is no longer a need for a
25097 VxWorks specific version of this package. Target dependencies
25098 has been moved to System.Task_Primitives.Operations.
25100 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25102 (InitializeCriticalSection, EnterCriticalSection,
25103 LeaveCriticalSection, DeleteCriticalSection): Replace the type
25104 pCriticalSection by an anonymous access type so that we avoid problems
25105 of accessibility to local objects.
25107 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25108 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25109 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25110 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25111 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25112 set the environment task mask here.
25113 (Current_State): Add this function that returns the state of the
25115 (Set_False): Add this procedure that sets the state of the suspension
25117 (Set_True): Add this procedure that sets the state of the suspension
25118 object to True, releasing the task that was suspended, if any.
25119 (Suspend_Until_True): Add this procedure that blocks the calling task
25120 until the state of the object is True. Program_Error is raised if
25121 another task is already waiting on that suspension object.
25122 (Initialize): Add this procedure for initializing the suspension
25123 object. It initializes the mutex and the condition variable which are
25124 used for synchronization and queuing, and it sets the internal state
25126 (Finalize): Add this procedure for finalizing the suspension object,
25127 destroying the mutex and the condition variable.
25129 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25130 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25131 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25132 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25133 which provides a low-level abstraction (using operating system
25134 primitives) for Ada.Synchronous_Task_Control.
25135 This object is made up by a mutex (for ensuring mutual exclusion), a
25136 condition variable (for queuing threads until the condition is
25137 signaled), a Boolean (State) indicating whether the object is open,
25138 and a Boolean (Waiting) reflecting whether there is a task already
25139 suspended on this object.
25141 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25142 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25143 s-intman-vms.ads, s-intman-mingw.adb,
25144 (Initialize_Interrupts): Removed, no longer used.
25146 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25147 (Setup_Interrupt_Mask): New procedure.
25149 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
25151 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25153 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25154 this is no longer done in the body of s-taprop
25155 (Server_Task): Explicitely test for Pending_Action in case
25156 System.Parameters.No_Abort is True.
25158 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25159 is no longer done in the body of s-taprop
25161 2005-06-14 Robert Dewar <dewar@adacore.com>
25163 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25164 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25165 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25166 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25167 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25168 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25169 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25170 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25171 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25172 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25173 system-linux-hppa.ads, system-vms_64.ads,
25174 system-vxworks-alpha.ads: Minor comment update for
25175 AI-362 (unit is Pure).
25177 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25178 Add pragma Pure_05 for AI-362
25179 Make remaining conversion functions obsolescent in Ada 95
25181 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25182 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25183 Add entries for a-wichun and a-zchuni
25184 Add a-widcha a-zchara for AI-395
25185 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25187 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25188 Add entries for a-wichun.o and a-zchuni.o
25189 Entries for a-widcha.o and a-zchara.o
25190 Add entry for a-chacon.o
25192 * a-ztenau.adb: Add with of Ada.Characters.Conversions
25194 * a-chacon.ads, a-chacon.adb: New files.
25196 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25197 categorization violations.
25199 * a-strmap.ads: Add pragma Pure_05 for AI-362
25200 * a-strmap.ads: Add note on implicit categorization for AI-362
25202 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25204 * par-prag.adb: Dummy entry for pragma Persistent_BSS
25205 Set Ada_Version_Explicit, for implementation of AI-362
25206 Add processing for pragma Pure_05 and Preelaborate_05
25207 Add entry for Assertion_Policy pragma
25209 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25210 when needed for proper processing of categorization stuff
25213 For several cases, make errors in preealborate units warnings,
25214 instead of errors, if GNAT_Mode is set. For AI-362.
25216 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25217 preelaborate unit is now warning if in GNAT mode
25219 * s-stoele.ads: Document AI-362 for pragma preelaborate
25221 2005-06-14 Doug Rupp <rupp@adacore.com>
25223 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25224 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25225 Default_Exception_Msg_Max_Length: new parameter.
25227 * a-except.ads: (Exception_Msg_Max_Length): Set to
25228 System.Parameters.Default_Exception_Msg_Max_Length
25229 Add pragma Preelaborate_05 for AI-362
25230 Add warnings off to allow categorization violations for AI-362
25232 2005-06-14 Vincent Celier <celier@adacore.com>
25234 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25235 Process is now in package Processing.
25237 * symbols.ads, symbols.adb:
25238 (Processing): New package, containing procedure Process
25240 * symbols-vms-alpha.adb:
25241 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25243 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25244 symbols-processing-vms-ia64.adb: New files.
25246 2005-06-14 Pascal Obry <obry@adacore.com>
25248 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25249 implementation. This new version generates the proper DllMain routine
25250 to initialize the SAL. The DllMain is generated in Ada and compiled
25251 before being added as option to the library build command.
25253 2005-06-14 Doug Rupp <rupp@adacore.com>
25254 Pascal Obry <obry@adacore.com>
25256 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25257 call to decc$translate_vms.
25258 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25259 need to remove those quotes before catenating the filename.
25260 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25261 * avoid allocating the memory twice for better efficiency;
25262 * allocate 32K buffer for environment expansion as suggested by MSDN;
25263 * prepend ".;" to the path so that current directory is searched too.
25265 2005-06-14 Robert Dewar <dewar@adacore.com>
25267 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25268 instead of raising CE (AI-241)
25269 Add warnings off to allow categorization violations for AI-362
25271 2005-06-14 Robert Dewar <dewar@adacore.com>
25273 * ali-util.adb, gnatbind.adb: Remove references to
25274 Force_RM_Elaboration_Order.
25276 * switch-b.adb: Remove recognition of -f switch
25278 2005-06-14 Pascal Obry <obry@adacore.com>
25280 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25281 implementation which is slightly more efficient.
25283 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25284 Javier Miranda <miranda@adacore.com>
25285 Ed Schonberg <schonberg@adacore.com>
25286 Hristian Kirtchev <kirtchev@adacore.com>
25288 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25289 allocator's designated type is a class-wide type, and compiling for
25290 Ada 2005, emit a run-time check that the accessibility level of the
25291 type given in the allocator's expression is not deeper than the level
25292 of the allocator's access type.
25294 (Tagged_Membership): Modified to gives support to abstract interface
25297 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25299 (Descendant_Tag): New predefined function
25300 (Is_Descendant_At_Same_Level): New predefined function
25301 (Get_Access_Level): New private function
25302 (Set_Access_Level): New private procedure
25303 (IW_Membership): New function. Given the tag of an object and the tag
25304 associated with an interface, evaluate if the object implements the
25306 (Register_Interface_Tag): New procedure used to initialize the table of
25307 interfaces used by the IW_Membership function.
25308 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25309 of the dispatch table.
25310 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25311 table of interfaces of the parent.
25312 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25313 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25314 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25315 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25316 Ada 2005 semantics for the new predefined function.
25318 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25319 call to Descendant_Tag rather than Internal_Tag.
25320 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25321 the accessibility level of the attribute's Item parameter is not deeper
25322 than the level of the attribute's prefix type. Tag_Error is raised if
25323 the check fails. The check is only emitted for Ada_05.
25324 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25325 requested stream attribute, use it.
25326 (Expand_N_Attribute_Reference): If the designated type is an interface
25327 then rewrite the referenced object as a conversion to force the
25328 displacement of the pointer to the secondary dispatch table.
25329 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25330 is a dereference of an object with a constrained partial view.
25332 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25333 type is a class-wide type, emit a run-time check that the accessibility
25334 level of the returned object is not deeper than the level of the
25335 function's master (only when compiling for Ada 2005).
25337 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25338 Action_Nb_Arg): Add entries for new Get_Access_Level and
25339 Set_Access_Level routines in these tables.
25340 (Make_DT): Generate a call to set the accessibility level of the
25341 tagged type in its TSD.
25342 (Make_DT): Code cleanup. The functionality of generating all the
25343 secondary dispatch tables has been moved to freeze_record_type.
25344 (Make_Abstract_Interface_DT): Minor code cleanup.
25345 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25346 this subprogram implements a new algorithm that provides the
25347 same functionality and it is more clear in case of primitives
25348 associated with abstract interfaces.
25349 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25350 clean up, the functionality of this subprogram is now provided
25351 by Set_All_DT_Position.
25352 (Write_DT): New subprogram: a debugging procedure designed to be called
25353 within gdb to display the dispatch tables associated with a tagged
25355 (Collect_All_Interfaces): New subprogram that collects the whole list
25356 of interfaces that are directly or indirectly implemented by a tagged
25358 (Default_Prim_Op_Position): New subprogram that returns the fixed
25359 position in the dispatch table of the default primitive operations.
25360 (Expand_Interface_Actuals): New subprogram to generate code that
25361 displaces all the actuals corresponding to class-wide interfaces to
25362 reference the interface tag of the actual object.
25363 (Expand_Interface_Conversion): New subprogram. Reference the base of
25364 the object to give access to the interface tag associated with the
25365 secondary dispatch table.
25366 (Expand_Interface_Thunk): New subprogram that generates the code of the
25367 thunk. This is required for compatibility with the C+ ABI.
25368 (Make_Abstract_Interface_DT): New subprogram that generate the
25369 declarations for the secondary dispatch tables associated with an
25370 abstract interface.
25371 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25372 attribute for each primitive operation covering interface subprograms
25373 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25374 These subprograms were upgraded to give support to abstract interfaces
25376 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25377 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25378 RE_Set_Access_Level.
25379 (RE_Unit_Table): Add entries for new Ada.Tags operations.
25380 Add support to call the followig new run-time subprograms:
25381 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25383 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25384 match its full declaration when both have an access definition with
25385 statically matching designated subtypes.
25386 (Analyze_Component_Declaration): Delete commented out code that was
25387 incorrectly setting the scope of an anonymous access component's type.
25388 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25389 an access discriminant when the containing type is nonlimited.
25390 (Make_Incomplete_Type_Declaration): Create an incomplete type
25391 declaration for a record type that includes self-referential access
25393 (Check_Anonymous_Access_Types): Before full analysis of a record type
25394 declaration, create anonymous access types for each self-referential
25396 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25397 an access component in this context is a Local_Anonymous_Access, for
25398 proper accessibility checks.
25399 (Access_Definition): Set properly the scope of the anonymous access type
25400 created for a stand-alone access object.
25401 (Find_Type_Of_Object): An object declaration may be given with an access
25403 (Complete_Subprograms_Derivation): New subprogram used to complete
25404 type derivation of private tagged types implementing interfaces.
25405 In this case some interface primitives may have been overriden
25406 with the partial-view and, instead of re-calculating them, they
25407 are included in the list of primitive operations of the full-view.
25408 (Build_Derived_Record_Type): Modified to give support to private
25409 types implemening interfaces.
25410 (Access_Definition): Reject ALL on anonymous access types.
25411 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25412 type derivation to occur at a deeper accessibility level than the
25414 For the case of derivation within a generic body however, disallow the
25415 derivation if the derived type has an ancestor that is a formal type
25416 declared in the formal part of an enclosing generic.
25417 (Analyze_Object_Declaration): For protected objects, remove the check
25418 that they cannot contain interrupt handlers if not declared at library
25420 (Add_Interface_Tag_Components): New subprogram to add the tag components
25421 corresponding to all the abstract interface types implemented by a
25422 record type or a derived record type.
25423 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25424 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25425 Process_Full_View, Record_Type_Declaration): Modified to give
25426 support to abstract interface types
25427 (Collect_Interfaces): New subprogram that collects the list of
25428 interfaces that are not already implemented by the ancestors
25429 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25430 when partial view has no discriminants and full view has defaults.
25431 (Constrain_Access): Reject a constraint on a general access type
25432 if the discriminants of the designated type have defaults.
25433 (Access_Subprogram_Declaration): Associate the Itype node with the inner
25434 full-type declaration or subprogram spec. This is required to handle
25435 nested anonymous declarations.
25436 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25437 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25438 Process_Full_View, Record_Type_Declaration): Modified to give
25439 support to abstract interface types
25440 (Derive_Subprograms): Addition of a new formal to indicate if
25441 we are in the case of an abstact-interface derivation
25442 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25443 to the specification because it is requied to analyze all the
25444 identifiers found in a list of interfaces
25446 * debug.adb: Complete documentation of flag "-gnatdZ"
25448 * exp_ch3.adb: Implement config version of persistent_bss pragma
25449 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25450 testing for TSS presence to properly enforce visibility rules.
25451 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25452 Make_Abstract_Interfaces_DT to generate the secondary tables
25453 associated with abstract interfaces.
25454 (Build_Init_Procedure): Modified to initialize all the tags
25456 (Component_Needs_Simple_Initialization): Similar to other tags,
25457 interface tags do not need initialization.
25458 (Freeze_Record_Type): Modified to give support to abstract interface
25460 (Expand_N_Object_Declaration): Do not generate an initialization for
25461 a scalar temporary marked as internal.
25463 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25464 in-out parameter that is a component in an initialization procedure,
25465 whose constraint might depend on discriminants, and that may be
25466 misaligned because of packing or representation clauses.
25467 (Is_Legal_Copy): New predicate to determine whether a possibly
25468 misaligned in-out actual can actually be passed by copy/return. This
25469 is an error in case the type is by_reference, and a warning if this is
25470 the consequence of a DEC import pragma on the subprogram.
25471 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25473 (Expand_Inlined_Call): Mark temporary generated for the return value as
25474 internal, so that no useless scalar normalization is generated for it.
25475 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25476 null procedure can always be inlined.
25477 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25478 procedure, generate an explicit empty body for it.
25480 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25481 Given a type implementing an interface, returns the corresponding
25482 access_disp_table value.
25483 (Find_Interface_Tag): New subprogram. Given a type implementing an
25484 interface, returns the record component containing the tag of the
25486 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25487 previous ones that return the corresponding tag and access_disp_table
25489 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25490 is a predefined primitive operation.
25491 (Expand_Subtype_From_Expr): If the expression is a selected component
25492 within an initialization procedure, compute its actual subtype, because
25493 the component may depend on the discriminants of the enclosing record.
25495 * i-cpp.ads, i-cpp.adb:
25496 This package has been left available for compatibility with previous
25497 versions of the frontend. As part of the new layout this is now a
25498 dummy package that uses declarations available at a-tags.ads
25500 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25501 "constant access" and "aliased [constant] access" when not compiling
25503 Suppress Ada 2005 keyword warning if -gnatwY used
25504 (P_Identifier_Declarations): Add support for object declarations with
25505 access definitions.
25506 (Private_Extension_Declaration): Complete the documentation
25507 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25508 attribute in case of private extension declaration
25509 (P_Type_Declaration): Mark as "abstract" the type declarations
25510 corresponding with protected, synchronized and task interfaces
25511 (P_Declarative_Items): "not" and "overriding" are overriding indicators
25512 for a subprogram or instance declaration.
25514 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25515 instantiation that is a dispatching operation has controlling access
25516 parameters that are null excluding.
25517 Save and restore Ada_Version_Explicit, for implementation of AI-362
25518 (Validate_Derived_Type_Instance): Add check for abstract interface
25520 (Analyze_Formal_Package): Establish Instantiation source for the copy of
25521 the generic that is created to represent the formal package.
25522 (Analyze_Package_Instantiation): Instantiate body immediately if the
25523 package is a predefined unit that contains inlined subprograms, and
25524 we are compiling for a Configurable_Run_Time.
25525 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25526 If the program has a null default, generate an empty body for it.
25528 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25529 error message condition, null procedures are correctly detected now.
25530 (New_Overloaded_Entity): Bypass trivial overriding indicator check
25531 for subprograms in the context of protected types. Instead, the
25532 indicator is examined in Sem_Ch9 while analysing the subprogram
25534 (Check_Overriding_Indicator): Check consistency of overriding indicator
25535 on subprogram stubs as well.
25536 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25538 (Analize_Subprogram_Specification): When analyzing a subprogram in which
25539 the type of the first formal is a concurrent type, replace this type
25540 by the corresponding record type.
25541 (Analyze_Subprogram_Body): Undo the previous work.
25542 (Analyze_Procedure_Call): If the call has the form Object.Op, the
25543 analysis of the prefix ends up analyzing the call itself, after which
25545 (Has_Interface_Formals): New subprogram subsidiary to analyze
25546 subprogram_specification that returns true if some non
25547 class-wide interface subprogram is found
25548 (New_Overloaded_Entity): Modified to give support to abstract
25550 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25551 access to subprograms must be recursive.
25552 (Is_Unchecked_Conversion): Improve the test that recognizes
25553 instantiations of Unchecked_Conversion, and allows them in bodies that
25554 are to be inlined by the front-end. When the body comes from an
25555 instantiation, a reference to Unchecked_Conversion will be an
25556 Expanded_Name, even though the body has not been analyzed yet.
25557 Replace Is_Overriding and Not_Overriding in subprogram_indication with
25558 Must_Override and Must_Not_Override, to better express intent of AI.
25559 (Analyze_Subprogram_Body): If an overriding indicator is given, check
25560 that it is consistent with the overrinding status of the subprogram
25562 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25564 If the subprogram is a null procedure, indicate that it does not need
25567 * sem_disp.adb (Check_Controlling_Type): Give support to entities
25568 available through limited-with clauses.
25569 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25570 allowed as the last primitive of a tagged type if it has no previous
25572 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25573 to give support to abstract interface types
25575 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25576 in the case where the target type is an anonymous access type of an
25577 object or component (that is, when Is_Local_Anonymous_Access is true).
25578 Prevent the special checks for conversions of access discriminants in
25579 the case where the discriminant belongs to a nonlimited type, since
25580 such discriminants have their accessibility level defined in the same
25581 way as a normal component of an anonymous access type.
25582 (Resolve_Allocator): When an allocator's designated type is a class-wide
25583 type, check that the accessibility level of type given in the
25584 allocator's expression or subtype indication is not statically deeper
25585 than the level of the allocator's access type.
25586 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25587 name in a discriminant constraint of a record component.
25588 (Resolve_Explicit_Dereference): Do not check whether the type is
25589 incomplete when the dereference is a use of an access discriminant in
25590 an initialization procedure.
25591 (Resolve_Type_Conversion): Handle conversions to abstract interface
25593 (Valid_Tagged_Conversion): The conversion of a tagged type to an
25594 abstract interface type is always valid.
25595 (Valid_Conversion): Modified to give support to abstract interface types
25596 (Resolve_Actuals): Enable full error reporting on view conversions
25597 between unrelated by_reference array types.
25598 The rule for view conversions of arrays with aliased components is
25599 weakened in Ada 2005.
25600 Call to obsolescent subprogram is now considered to be a violation of
25601 pragma Restrictions (No_Obsolescent_Features).
25602 (Check_Direct_Boolean_Operator): If the boolean operation has been
25603 constant-folded, there is nothing to check.
25604 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25605 check on possible violation of restriction No_Direct_Boolean_Operators
25606 until after expansion of operands, to prevent spurious errors when
25607 operation is constant-folded.
25609 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25610 Has_Compatible_Type): Modified to give support to abstract interface
25612 (Interface_Present_In_Ancestor): New function to theck if some ancestor
25613 of a given type implements a given interface
25615 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25616 prefix is a parameterless function that returns an access_to_procedure.
25617 (Transform_Object_Operation): Handle properly function calls of the
25618 form Obj.Op (X), which prior to analysis appear as indexed components.
25619 (Analyze_One_Call): Complete the error notification to help new Ada
25621 (Analyze_Allocator): For an allocator without an initial value, where
25622 the designated type has a constrained partial view, a discriminant
25623 constraint is illegal.
25625 2005-06-14 Robert Dewar <dewar@adacore.com>
25627 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25628 do with treatment of Set_Col when positioned at end of line character.
25630 2005-06-14 Robert Dewar <dewar@adacore.com>
25632 * atree.adb: (Elist*): Protect against uninitialized field
25634 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25636 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25637 for an attribute reference that returns an access type.
25638 (Apply_Discriminant_Check): No need for check if (designated) type has
25639 constrained partial view.
25641 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25642 both bound checks, rather than a conjunction.
25643 (Insert_Valid_Check): If the expression is an actual that is an indexed
25644 component of a bit-packed array, force expansion of the packed element
25645 reference, because it is specifically inhibited elsewhere.
25647 2005-06-14 Vincent Celier <celier@adacore.com>
25649 * clean.adb (Clean_Project): Correctly delete executable specified as
25650 absolute path names.
25652 * make.adb (Gnatmake): Allow relative executable path names with
25653 directory information even when project files are used.
25654 (Change_To_Object_Directory): Fail gracefully when unable to change
25655 current working directory to object directory of a project.
25656 (Gnatmake): Remove exception handler that could no longer be exercized
25657 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25658 may be deallocated by Normalize_Arguments.
25659 (Collect_Arguments): Eliminate empty arguments
25661 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25662 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25663 (Check_Project): Return False when Project is No_Project. Return True
25664 when All_Projects is True.
25665 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25666 All_Projects to True.
25669 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25670 Javier Miranda <miranda@adacore.com>
25671 Thomas Quinot <quinot@adacore.com>
25672 Robert Dewar <dewar@adacore.com>
25673 Hristian Kirtchev <kirtchev@adacore.com>
25674 Gary Dismukes <dismukes@adacore.com>
25676 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25677 anonymous access types, to indicate that the accessibility level of
25678 the type is determined by that of the enclosing declaration.
25679 (Has_Persistent_BSS): New flag
25680 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25681 of this attribute with functions.
25682 (Is_Primitive_Wrapper): Remove the barrier.
25683 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25684 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25686 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25687 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25689 (Is_Pure_Unit_Access_Type): New flag
25690 (Abstract_Interfaces): Complete the assertion to cover all usages.
25691 (Set_Is_Interface): Complete the assertion to cover all usages.
25692 (Is_Primitive_Wrapper): New attribute.
25693 (Is_Obsolescent): Now applies to all entities (though it is only set
25694 for subprograms currently)
25695 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25696 which solves various problems concerning access subtypes.
25697 (Has_Persistent_BSS): New flag
25698 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25699 Remove these subprograms because this attribute is currently
25702 Has_Specified_Stream_Input (Flag190)
25703 Has_Specified_Stream_Output (Flag191)
25704 Has_Specified_Stream_Read (Flag192)
25705 Has_Specified_Stream_Write (Flag193)
25706 Present in all type and subtype entities. Set for a given view if the
25707 corresponding stream-oriented attribute has been defined by an
25708 attribute definition clause. When such a clause occurs, a TSS is set
25709 on the underlying full view; the flags are used to track visibility of
25710 the attribute definition clause for partial or incomplete views.
25711 (Is_Pure_Unit_Access_Type): New flag
25712 Clarify use of Is_Internal.
25713 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25714 internally generated to wrap the invocation of tasks and protected
25715 types that implement interfaces.
25716 (Implementation_Base_Type): Documentation correction
25717 (Is_Obsolescent): Now applies to all entities (though it is only set
25718 for subprograms currently)
25719 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25720 which solves various problems concerning access subtypes.
25722 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25723 for examined parameters. Identify unequal parameter list lengths as
25724 non-conformant parameters.
25725 (Overriding_Possible): Do not check for "All" qualifier in declaration
25726 of controlling access parameter, following prescription of AI-404.
25727 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25728 that build the procedure body that wraps an entry invocation
25729 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25730 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25731 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25732 give support to abstract interface types
25734 * freeze.adb (Freeze_Entity): Issue error message if
25735 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25736 type has no storage pool (Ada 2005) AI-366.
25737 Also modified to give support to abstract interface types
25738 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25739 Inline_Always pragma.
25741 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25742 now begin an entry declaration.
25743 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25744 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25745 a subprogram declaration preceded by an overriding indicator.
25746 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25747 declarations or subprogram declarations preceded by reserved words
25748 "not" or "overriding".
25749 (P_Entry_Declaration): Update comment. Parse and check overriding
25750 indicator, set semantic flags of entry declarations.
25751 (P_Task): New error message in case of private applied
25752 to a task type declaration.
25753 (P_Protected): New error message in case of private applied
25754 to a task type declaration.
25756 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25757 in which the full view of a type implementing an interface is a
25759 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25760 Declare_Inherited_Private_Subprograms): If an explicit operation
25761 overrides an operation that is inherited in the private part, mark the
25762 explicit one as overriding, to enable overriding indicator checks.
25763 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25764 full view to partial view, to simplify handling in back-end.
25766 * sprint.adb: Print interface lists where needed: derived types,
25767 protected types, task types.
25768 output "is null" for null procedures. Part of implementation of
25770 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25771 relaxation of rules for access types in pure, shared passive partitions.
25773 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25774 first read discriminants into temporary objects, performing checks on
25775 the read values, then possibly performing discriminant checks on the
25776 actual (if it is constrained), and only finally reading the components
25777 into a constrained temporary object.
25778 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25779 case of reading discriminants of a mutable record type to recognize
25780 the new form of the code generated by
25781 Build_Mutable_Record_Read_Procedure.
25783 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25784 of a simple call to Make_TSS_Name.
25785 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25786 buffer, in order for Is_TSS to work correctly on local TSS names.
25788 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25789 Is_Local_Anonymous_Access to check legaliy of attributes in the
25790 context of access components and stand-alone access objects.
25791 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25792 treated as available for a limited private type if there is an
25793 attribute_definition_clause that applies to its full view, but not in
25794 other cases where the attribute is available for the full view
25795 (specifically, the sole fact that the full view is non-limited does not
25796 make the attribute available for the partial view).
25797 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25798 non-overloaded intrinsic subprogram.
25799 (Check_Stream_Attribute): Reject an attribute reference for an
25800 unavailable stream attribute even if the prefix is not a limited type
25801 (case of a 'Input attribute reference for an abstract, non-classwide
25803 (Stream_Attribute_Available): New function to determine whether a stream
25804 attribute is available at a place.
25805 (Check_Attribute): Use Stream_Attribute_Available instead of just
25806 testing for TSS presence on the implementation base type.
25807 (Analyze_Attribute): Modified to give support to task interfaces.
25808 (Analyze_Access_Attribute): Add error check for use of an Access (or
25809 Unrestricted_Access) attribute with a subprogram marked as
25811 (Analyze_Attribute, case Attribute_Address): Add error check for use of
25812 an Address attribute with a subprogram marked as Inline_Always.
25813 Update Eval_Attribute to handle new value of Width from AI-395
25815 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25816 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25817 Factor common code across the stream-oriented attribute circcuits into
25818 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25819 processing is functionally identical to the previous duplicated one,
25820 except that an expression that denotes an abstract subprogram will now
25821 be rejected, as mandated by AI-195 item 5.
25823 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25824 Is_Local_Anonymous_Access to apply accessibility checks to access
25825 components and stand-alone access objects.
25826 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25828 (Is_Potentially_Persistent_Type): New function
25829 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25830 a heap-object whose type has a constrained partial view, the object is
25831 unconstrained and the component may depend on a discriminant, making its
25834 * sinfo.ads, sinfo.adb
25835 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25836 (Must_Override): Flag applicable to N_Entry_Declaration.
25837 Indicate that interface_list can appear in single task and single
25838 protected declarations.
25839 Replace Is_Overriding and Not_Overriding with Must_Override and
25840 Must_Not_Override, to better express intent of AI.
25841 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25842 of an overriding indicator in a subprogram or instance.
25843 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25844 Add the overriding indicator [[not] overriding] construct to the
25845 following grammar productions:
25847 GENERIC_INSTANTIATION
25848 SUBPROGRAM_SPECIFICATION
25850 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25851 can start with an overriding indicator.
25853 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25854 flags accordingly on subrogram specifications or instances.
25857 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25858 overriding_indicator, if present, is consistent with status of spec.
25859 Improve error message for null-excluding checks on controlling access
25861 (Check_In_Previous_With_Clause): Protect the frontend against
25862 previously reported critical errors in the context clauses.
25863 Save and restore Ada_Version_Explicit, for implementation of AI-362
25864 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25865 operation verify that controlling formals of the renamed entity that
25866 are access parameters are explicitly non-null.
25867 (Find_Expanded_Name): Improve error message when prefix is an illegal
25868 reference to a private child unit.
25870 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25871 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25872 Rewrite to correspond to new wide character names in AI-395
25874 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25875 default procedures.
25877 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25878 Robert Dewar <dewar@adacore.com>
25880 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25881 code, not on the bodies of predefined operations, to cut down on
25884 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25886 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25887 be expanded in place. The size computation does not require a
25888 subtraction, which would raise an exception on a compiler built with
25889 assertions when the upper bound is Integer'first.
25890 (Flatten): For an array of composite components, take into account the
25891 size of the components to determine whether it is safe to expand the
25892 array into a purely positional representation.
25894 2005-06-14 Thomas Quinot <quinot@adacore.com>
25896 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25897 denoting a formal parameter into account.
25899 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25901 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25902 the entry_call alternative of a conditional entry call, wrap the
25903 conditional entry call itself.
25905 2005-06-14 Nicolas Setton <setton@adacore.com>
25906 Ed Schonberg <schonberg@adacore.com>
25908 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25909 the "simple_choice" member in a variant record, in accordance with the
25910 description in the package spec: the information output for a constant
25911 should be "S number", not "SS number".
25912 (Get_Encoded_Name): Return at once if not generating code. Avoids name
25913 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25915 2005-06-14 Thomas Quinot <quinot@adacore.com>
25917 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25918 RACW without any primitives, do not generate the if statement for
25919 dispatching by name in the PolyORB/DSA case, as it would be malformed
25920 (it would have an Elsif_Parts list that is not No_List, but with a
25923 2005-06-14 Robert Dewar <dewar@adacore.com>
25925 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25927 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25929 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25930 can determine whether pragma Suppress_Exception_Locations is in effect.
25932 * utils2.c (build_call_raise): Do not pass the file name to the
25933 exception handler if pragma Suppress_Exception_Locations is in effect.
25934 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25936 2005-06-14 Emmanuel Briot <briot@adacore.com>
25938 * g-debpoo.adb (Deallocate, Dereference): Improve output.
25940 2005-06-14 Nicolas Roche <roche@adacore.com>
25942 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25944 (Next_Level): Fix minor bug in handling of ../dir case
25945 (Read): Add dir separator to Directory name so that "" is understood as
25948 2005-06-14 Pascal Obry <obry@adacore.com>
25950 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25951 releasing the items.
25953 2005-06-14 Vincent Celier <celier@adacore.com>
25954 Cyrille Comar <comar@adacore.com>
25956 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25957 with output file descriptor and with output file name.
25958 (Dup, Dup2): Now global procedures as they are used by two subprograms
25959 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25961 2005-06-14 Thomas Quinot <quinot@adacore.com>
25964 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25966 (Create_Selector): Bind listening socket used to create the signalling
25967 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25968 Set listen backlog to 1 to ensure that we detect socket theft by a
25969 failure of our own connect(2) call.
25970 (Check_Selector): Improve documentation of the selector mechanism.
25971 (Broadcast_Inet_Addr): New constant.
25973 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25975 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25976 type which turns out to be an incomplete and incorrect fix.
25977 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25978 of the type is declared in a record (for determination of insertion
25980 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25981 a private type and ensure that the primary entity is used for the type
25982 of the newly created function's V formal by taking the Etype of the
25985 2005-06-14 Javier Miranda <miranda@adacore.com>
25986 Jose Ruiz <ruiz@adacore.com>
25987 Robert Dewar <dewar@adacore.com>
25988 Ed Schonberg <schonberg@adacore.com>
25990 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25991 that indicates if we are parsing a compilation unit found in a
25992 limited-with clause.
25993 It is use to avoid the circularity check.
25995 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25996 we are parsing a compilation unit found in a limited-with clause. This
25997 is use to avoid the circularity check.
25999 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26000 unit as a consequence of parsing a limited-with clause. This is used
26001 to avoid the circularity check.
26003 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
26004 (Analyze_Context): Limited-with clauses are now allowed
26005 in more compilation units.
26006 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
26007 againts previously reported critical errors in context clauses
26008 (Install_Limited_Withed_Unit): Code cleanup plus static detection
26009 of two further errors: renamed subprograms and renamed packages
26010 are not allowed in limited with clauses.
26011 (Install_Siblings): Do not install private_with_clauses on the package
26012 declaration for a non-private child unit.
26013 (Re_Install_Parents): When a parent of the subunit is reinstalled,
26014 reset visibility of child units properly.
26015 (Install_Withed_Unit): When a child unit appears in a with_clause of its
26016 parent, it is immediately visible.
26018 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26019 Emmanuel Briot <briot@adacore.com>
26021 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
26022 declared within an inlined body as referenced, to prevent spurious
26024 (Output_One_Ref): If an entity renames an array component, indicate in
26025 the ALI file that this aliases (renames) the array. Capture as well
26026 function renamings that rename predefined operations.
26027 Add information about generic parent for package and subprogram
26029 (Get_Type_Reference): For a subtype that is the renaming of an actual in
26030 an instantiation, use the first_subtype to ensure that we don't generate
26031 cross-reference information for internal types.
26032 For objects and parameters of a generic private type, retain the '*'
26033 indicator to distinguish such an entity from its type.
26035 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
26036 to store information about instantiated entities.
26038 * ali.adb (Scan_ALI): Add support for parsing the reference to the
26041 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26042 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26045 2005-06-10 Doug Rupp <rupp@adacore.com>
26046 Arnaud Charlet <charlet@adacore.com>
26047 Olivier Hainque <hainque@adacore.com>
26048 Jose Ruiz <ruiz@adacore.com>
26050 * Make-lang.in: Add initialize.o when needed.
26051 Remove obsolete references to RT_FLAGS.
26052 Add missing dependencies for sdefault.o
26054 * initialize.c: New file.
26056 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26057 [VMS] cond_signal_table: Fix problem in declaration.
26058 [VMS] __gnat_error_handler: rewrite.
26059 Move all __gnat_initialize() routines to initialize.c
26060 Specialize the former "hpux" section to "hppa hpux", as this is what the
26061 section really is here for and we now have other hpux ports that need
26062 different contents.
26063 (__gnat_adjust_context_for_raise) i386-linux: First version of this
26064 function for this target. Adjust PC by one in the machine context. This
26065 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26066 it is more reliable to do that in the signal handler itself.
26067 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26068 flags, so that the handler is passed the context structure to adjust
26069 prior to the raise.
26070 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26071 SA_SIGINFO sigaction should look like. Call
26072 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26073 Machine_State_Operations stuff.
26074 Add conditional code so that the x86_64 is also supported.
26076 2005-06-14 Pascal Obry <obry@adacore.com>
26078 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26081 2005-06-14 Robert Dewar <dewar@adacore.com>
26083 * opt.ads, opt.adb: New flags for persistent_bss mode
26084 Add Ada_Version_Explicit, for implementation of AI-362
26085 Add Assertions_Enabled_Config and associated handling
26086 Needed since setting can be changed with Assertion_Policy pragma
26087 Add new flag Warn_On_Ada_2005_Compatibility
26089 * switch-c.adb: Recognize -gnatwy/Y
26090 Set Ada_Version_Explicit, for implementation of AI-362
26091 The -gnatg switch now includes -gnatyu
26093 * usage.adb: Add -gnatwy/Y
26094 Remove wrong asterisk on -gnatwX line
26095 Add line for -gnatyu switch
26097 2005-06-14 Vincent Celier <celier@adacore.com>
26099 * osint.adb (Add_Default_Search_Dirs): Put source and object
26100 directories of project files before directories coming from
26101 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26103 2005-06-14 Robert Dewar <dewar@adacore.com>
26106 * par-ch2.adb (Scan_Pragma_Argument): New procedure
26107 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26109 2005-06-14 Vincent Celier <celier@adacore.com>
26111 * prep.adb (Preprocess): Ignore error when scanning the first token of
26114 2005-06-14 Vincent Celier <celier@adacore.com>
26116 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26117 (Check_Stand_Alone_Library): If the specified reference symbol file does
26118 not exist, only issue a warning when the symbol policy is not
26119 Controlled. And, when symbol policy is Compliant, set the symbol
26120 policy to Autonomous.
26122 2005-06-14 Vincent Celier <celier@adacore.com>
26124 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26125 when the project file in a with clause is not the last one, that is the
26126 project file name is followed by a comma.
26127 * prj-pp.adb: (First_With_In_List): New Boolean global variable
26128 (Print): Issue list of project files separated by commas in with clauses
26129 according to the values returned by Is_Not_Last_In_List.
26130 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26131 (Set_Is_Not_Last_In_List): New procedure
26133 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26135 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26137 2005-06-14 Robert Dewar <dewar@adacore.com>
26139 * scng.adb: Add call to new Check_EOF routine
26140 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26141 Add some comments regarding wide character handling
26143 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26145 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26147 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26148 characters are now considered graphic characters and hence yield false
26151 * nmake.adt: Modify header so that xnmake does not generate output
26152 files with multiple blank lines.
26154 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26155 not have an extra blank line
26157 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26159 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26160 expression when the component type is an anonymous access type to
26161 ensure that appropriate accessibility checks are done.
26163 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26164 expression of an assignment when the target object is of an anonymous
26165 access type. This ensures that required accessibility checks are done.
26166 (One_Bound): Move the check for type Universal_Integer to
26168 (Process_Bounds): Check whether the type of the preanalyzed range is
26169 Universal_Integer, and in that case set Typ to Integer_Type prior
26170 to setting the type of the original range and the calls to One_Bound.
26172 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26174 * sem_case.adb (Expand_Others_Choice): Improve warning.
26176 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26178 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26179 constraint of full view if present, when other type is discriminated.
26180 (Eval_Relational_Op): Recognize tests of pointer values against Null,
26181 when the pointer is known to be non-null, and emit appropriate warning.
26183 2005-06-14 Robert Dewar <dewar@adacore.com>
26184 Ed Schonberg <schonberg@adacore.com>
26187 * sem_prag.adb: Implement pragma Persistent_BSS
26188 Remove obsolete pragma Persistent_Data, Persistent_Object
26189 Set Ada_Version_Explicit, for implementation of AI-362
26190 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26191 Add processing for pragma Pure_05 and Preelaborate_05
26192 Add processing for Assertion_Policy pragma
26193 Add pragma identifiers for Assert
26194 (Analyze_Pragma, case Assert): Check number of arguments
26195 (Process_Inline): Additional guard against an illegal program, where the
26196 argument of the pragma is undefined, and warnings on redundant
26197 constructs are enabled.
26198 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26199 Ada_05 to this pragma, specifying that the pragma is only active in
26201 (Check_Arg_Order): New procedure
26202 Add appropriate calls to this procedure throughout
26203 Also throughout, check entity name before doing any other checks
26205 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26206 Remove obsolete pragma Persistent_Data, Persistent_Object
26207 Add entries for pragma Pure_05 and Preelaborate_05
26208 Add entries for Assertion_Policy pragma and associated names
26209 Add some names for pragma argument processing
26211 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26213 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26215 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26216 appears within a negation (either from source or as a rewriting of
26217 inequality) adjust text of warning accordingly.
26219 2005-06-14 Thomas Quinot <quinot@adacore.com>
26221 * s-strxdr.adb: Follow AI95-00132
26223 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26225 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26227 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26228 Jose Ruiz <ruiz@adacore.com>
26230 * s-tposen.adb, s-tpobop.adb
26231 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26233 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26234 there is no violation of the Max_Entry_Queue_Length restriction (if it
26235 has been set); Program_Error is raised otherwise.
26236 (Requeue_Call): Before requeuing the task on the target entry queue we
26237 check that there is no violation of the Max_Entry_Queue_Length
26238 restriction (if it has been set); Program_Error is raised otherwise.
26240 2005-06-14 Robert Dewar <dewar@adacore.com>
26242 * styleg.adb: Fix several remaining problems in -gnatyu switch
26243 Blank line count not reset at start
26244 Scanning outside source buffer in some cases
26245 Confusing message for blanks at end of file
26246 Non-empty blank lines not recognized
26248 * nmake.adt: Modify header so that xnmake does not generate output
26249 files with multiple blank lines.
26251 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26252 not have an extra blank line
26254 2005-06-14 Sergey Rybin <rybin@adacore.com>
26256 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26258 2005-06-14 Doug Rupp <rupp@adacore.com>
26259 Vincent Celier <celier@adacore.com>
26261 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26264 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26265 Remove "Library" command.
26266 Change keyword for style check -gnatyd from NOCRLF to
26268 Remove useless second style check keyword NONE
26269 Remove help documentation for inexistent style check keyword
26271 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26272 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26273 Add UNNECESSARY_BLANK_LINES for -gnatyu
26274 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26276 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26278 2005-06-14 Vincent Celier <celier@adacore.com>
26280 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26281 gprmake was invoked with -d.
26282 (Compile_Sources): If -d was used, output the "completed ..." message
26283 for each compilation.
26284 (Scan_Arg): Recognize new switch -d
26285 When -c and at least one main is specified, set
26286 Unique_Compile to True to guarantee that no other sources will be
26289 2005-06-14 Matthew Heaney <heaney@adacore.com>
26291 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26292 * a-swuwha.ads, a-swuwha.adb: New files
26294 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26295 * a-szuzha.ads, a-szuzha.adb: New files.
26297 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26298 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26299 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26300 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26301 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26302 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26303 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26304 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26305 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26306 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26309 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26310 Olivier Hainque <hainque@adacore.com>
26311 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26312 Pascal Obry <obry@adacore.com>
26314 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26316 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26317 making a temporary around a procedure call because of non-addressable
26319 (process_freeze_entity): If entity is a private type, capture size
26320 information that may have been computed for the full view.
26321 (tree_transform, case N_Allocator): If have initializing expression,
26322 check type for Has_Constrained_Partial_View and pass that to
26324 (tree_transform, case N_Return_Statement): Pass extra arg to
26327 * decl.c (annotate_value): Remove early return if -gnatR is not
26329 (gnat_to_gnu_field): Don't make a packable type for a component clause
26330 if the position is byte aligned, the field is aliased, and the clause
26331 size isn't a multiple of the packable alignment. It serves no useful
26332 purpose packing-wise and would be rejected later on.
26333 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26336 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26337 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26339 (create_concat_name): Idem.
26341 2005-06-10 Robert Dewar <dewar@adacore.com>
26342 Eric Botcazou <ebotcazou@adacore.com>
26343 Ben Brosgol <brosgol@adacore.com>
26344 Cyrille Comar <comar@adacore.com>
26345 Sergey Rybin <rybin@adacore.com>
26346 Pascal Obry <obry@adacore.com>
26348 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26349 Document second argument (Ada_05) of pragma Obsolescent
26350 Add note that call to subprogram marked with pragma Obsolescent
26351 is now considered to be a violation of program Restrictions
26352 (No_Obsolescent_Features).
26353 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26354 that only machine-dependent attributes are supported.
26357 Commented out menu lines and empty section for gnatclean examples
26359 Fix some over long lines
26360 Clarify and enhance documentation of ADA_PROJECT_PATH.
26361 Rework section 2.11.2(3) about linking with a non-GNU compiler.
26362 Mention new switch -fcallgraph-info.
26363 Mention new switch -fstack-usage.
26364 For gnatpp, replace '-notab' with '-N' and add this option to Index
26365 Corrected VMS example.
26366 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26368 Add documentation for -gnatyu switch (unnecessary blank lines)
26369 Document new switch -U for GNAT PRETTY and GNAT METRIC
26370 Add note about Stdcall being handled as C convention on non Windows OS.
26371 Remove some junk typo in description of gnatbind -S switch
26372 Remove reference to Extensions_Allowed pragma
26373 Document the new order of the directories to be searched (source and
26374 object directories of project files before directories in ADA_*_PATH
26375 environment variables.
26377 * g-trasym.ads: Document that IRIX is supported
26379 2005-06-10 Arnaud Charlet <charlet@adacore.com>
26381 * Makefile.in: Add initialize.o when needed.
26382 Adapt to new VMS package body Symbols and subunits
26383 No specialized version of a-sytaco is needed for VxWorks.
26385 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26386 * a-zchara.ads, a-widcha.ads: New files.
26388 * system-hpux-ia64.ads: New file.
26390 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26391 is imported from the VxWorks kernel.
26393 2005-06-14 Robert Dewar <dewar@adacore.com>
26395 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26396 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26397 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26398 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26399 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26400 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26401 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26402 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26403 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26404 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26405 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26406 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26408 2005-06-14 Thomas Quinot <quinot@adacore.com>
26410 * xeinfo.adb: Fix typo in comment
26412 2005-06-14 Javier Miranda <miranda@adacore.com>
26414 * repinfo.ads: Fix typo in comment
26416 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26418 * s-finimp.adb (Parent_Tag): Delete this imported function (function
26419 Parent_Tag is now in the visible part of Ada.Tags).
26420 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26421 using imported function.
26423 2005-06-14 Bernard Banner <banner@adacore.com>
26425 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26426 also apply for handling support for VxSim 653.
26428 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26430 * xsnames.adb: Add automatic generation of snames.h.
26432 2005-06-14 Thomas Quinot <quinot@adacore.com>
26434 * gen-soccon.c: Add IP_MULTICAST_IF constant
26435 Minor reformatting and adjustments to prevent warnings.
26437 2005-06-14 Pascal Obry <obry@adacore.com>
26439 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26441 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
26443 * trans.c (gnat_gimplify_expr): Call
26444 recompute_tree_invarant_for_addr_expr when we change
26445 the operand of the ADDR_EXPR.
26447 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26449 * misc.c: Don't include errors.h.
26451 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26453 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26455 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
26457 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26459 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26461 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
26464 * Makefile.in: Make TGT_LIB behave correctly.
26466 2005-04-23 DJ Delorie <dj@redhat.com>
26468 * misc.c: Adjust warning() callers.
26470 2005-04-16 Laurent Guerby <laurent@guerby.net>
26473 * a-nudira.adb (Value): Check for valid string.
26474 * a-nuflra.adb (Value): Likewise.
26476 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
26478 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26480 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
26482 * adaint.c, init.c, tracebak.c: Fix comment typos.
26483 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26485 2005-04-07 Laurent Guerby <laurent@guerby.net>
26486 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26488 * Makefile.in: Add make ifeq define for hppa linux tasking support.
26489 * system-hpux.ads: Define Signed_Zeros to be True.
26490 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26492 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26494 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26495 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26498 2005-03-30 Tom Tromey <tromey@redhat.com>
26500 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26502 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26504 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26506 2005-03-29 Robert Dewar <dewar@adacore.com>
26508 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26509 fixed-point expression has value that is not a multiple of the Small
26512 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26514 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26517 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26519 2005-03-29 Vincent Celier <celier@adacore.com>
26521 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26522 (Build_Dynamic_Library.Version_String): Return the empty string when
26523 Lib_Version is empty or when the symbol policy is not Autonomous.
26525 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26526 a symbol is not in the reference symbol file, increase the Major ID
26527 and set the Minor ID to 0.
26528 Use gsmatch=lequal instead of gsmatch=equal
26530 2005-03-29 Doug Rupp <rupp@adacore.com>
26532 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26533 name and translate.
26535 2005-03-29 Javier Miranda <miranda@adacore.com>
26537 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26538 (Inherit_DT): The first formal has been redefined as a Tag.
26539 This allows us the removal of the subprogram Get_TSD.
26540 (TSD): Replace the call to Get_TSD by the actual code.
26542 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26543 (Make_DT): Upgrade the call to Inherit_TSD according to the
26544 new interface: the first formal is now a Tag.
26546 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26547 redefined as a Tag.
26548 This change allows us to remove the subprogram Get_TSD.
26549 (CPP_Get_TSD): Subprogram removed.
26550 (TSD): Replace the call to CPP_Get_TSD by the actual code.
26552 * rtsfind.ads: Remove support to call the run-time
26555 2005-03-29 Robert Dewar <dewar@adacore.com>
26557 * errutil.adb, errout.adb:
26558 Minor comment updates on Line_Terminator references
26560 * par-ch10.adb: Add ??? comment about line terminator
26562 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26563 (check dos line terminator).
26564 (Check_Line_Max_Length): New procedure, split off from the existing
26565 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26566 be properly recognized.
26568 * styleg.adb: Add ??? comment for line terminator reference
26570 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26571 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26573 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26574 (check dos line terminator).
26575 (Check_Line_Max_Length): New procedure, split off from the existing
26576 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26577 be properly recognized.
26579 * stylesw.ads, stylesw.adb:
26580 Add handling for new -gnatyd switch (check dos line terminator)
26582 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26583 Recognize -gnatwb/-gnatwB switches
26584 Include Warn_On_Bad_Fixed_Value for -gnatg
26587 Add line for new -gnatyd switch (check dos line terminator)
26589 * usage.adb: Add lines for -gnatwb/-gnatwB
26591 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26593 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26595 * gnat_ugn.texi: Fix overlong lines
26596 Document new -gnatyd switch
26597 Document new -gnatwb/-gnatwB switches
26599 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26601 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26602 order to retrieve the component list of the type, before examining
26603 individual components.
26605 * sem_type.adb (Covers): Types are compatible if one is the base type
26606 of the other, even though their base types might differ when private
26607 views are involved.
26609 2005-03-29 Thomas Quinot <quinot@adacore.com>
26611 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26612 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26613 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26614 analyzed if expansion is disabled (which could otherwise cause spurious
26615 error messages if expansion has been disabled due to previous
26616 (unrelated) errors).
26618 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26619 is disabled, the entity denoted by the argument is the access type
26620 itself, not an underlying record type, so there is no need to go back
26621 to the Corresponding_Remote_Type.
26623 2005-03-29 Gary Dismukes <dismukes@adacore.com>
26624 Robert Dewar <dewar@adacore.com>
26626 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26627 expand a call to an instance of
26628 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26629 Constructor actual of the instance. A class-wide membership
26630 check is also generated, to ensure that the tag passed to the instance
26631 denotes a type in the class.
26632 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26633 of Name_Generic_Dispatching_Constructor.
26635 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26636 05 unit for AI-260-02).
26638 * a-tgdico.ads: New file.
26640 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26641 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26643 * snames.ads, snames.adb (Preset_Names): Add entry for
26644 Generic_Dispatching_Constructor.
26647 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26648 character type cases.
26649 (Analyze_Subprogram_Renaming): Add special handling for
26650 the case of renaming of stream attributes when the renaming denotes a
26651 generic formal subprogram association for an abstract formal subprogram.
26652 Check that the attribute is a primitive stream attribute (and not
26653 a class-wide stream attribute) and then rewrite the attribute name
26654 as the name of the appropriate compiler-generated stream primitive.
26656 2005-03-29 Robert Dewar <dewar@adacore.com>
26658 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26660 (Is_Possibly_Unaligned_Object): Correct typo that
26661 resulted in inaccurate result for unaligned scalars within records.
26663 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26665 * freeze.adb (Freeze_Record_Type): If the type of the component is an
26666 itype whose parent is controlled and not yet frozen, do not create a
26667 freeze node for the itype if expansion is disabled.
26669 2005-03-29 Vincent Celier <celier@adacore.com>
26671 * make.adb (Gnatmake): Don't fail if the main project file is declared
26672 as having no Ada sources. Do not display message "no sources to
26673 compile" in quiet output.
26675 2005-03-29 Doug Rupp <rupp@adacore.com>
26677 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26680 2005-03-29 Robert Dewar <dewar@adacore.com>
26682 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26685 2005-03-29 Robert Dewar <dewar@adacore.com>
26687 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26688 missing TYPE Improve the error message generated when compiling a
26689 limited interface in Ada83 or Ada95 mode.
26691 2005-03-29 Robert Dewar <dewar@adacore.com>
26693 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26694 rather than proceed ahead using a junk attribute name.
26696 2005-03-29 Vincent Celier <celier@adacore.com>
26698 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26700 * prj-part.adb (Parse_Single_Project): Set the location of a project
26701 on its defining identifier, rather than on the reserved word "project".
26703 * prj-proc.adb (Expression): Adapt to the fact that default of external
26704 references may be string expressions, not always literal strings.
26705 (Recursive_Process): Set Display_Name equal to Name
26706 when Location is No_Location, that is when there is no actual file.
26707 Get the Display_Name of the project from the source, when it is not a
26709 (Process): Use the Display_Name in error messages
26711 * prj-strt.adb (External_Reference): Allow default to be string
26712 expressions, not only literal strings.
26714 2005-03-29 Vincent Celier <celier@adacore.com>
26716 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26717 file and the reference symbol file to be the same file.
26719 2005-03-29 Thomas Quinot <quinot@adacore.com>
26721 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26722 forbid conversion of a local access-to-subprogram type to a remote one.
26724 * sem_util.adb (Wrong_Type): For a record type that is the expanded
26725 equivalent type for a remote access-to-subprogram type, go back to the
26726 original RAS entity when displaying an error message, so the casing is
26727 the original source casing.
26729 2005-03-29 Robert Dewar <dewar@adacore.com>
26731 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26734 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26736 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26737 subtype if code is being pre-analyzed, to prevent un-expanded
26738 references to protected formals, among others.
26739 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26740 interpretation that can be a call, include the result of the call as a
26741 possible interpretation of the dereference.
26743 * sem_ch5.adb (Process_Bounds): Determine type of range by
26744 pre-analyzing a copy of the original range, and then analyze the range
26745 with the expected type.
26747 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26748 with an overloaded prefix where not all interpretations yield an
26749 access to subprogram, do not rewrite node as a call.
26750 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26751 the node as a call once the context identifies the interpretation of
26752 the prefix whose call yields the context type.
26753 (Valid_Conversion): For the case of a conversion between
26754 local access-to-subprogram types, check subtype conformance using
26755 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26756 detailed error message.
26758 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26760 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26761 indicator, indicate that the formal can never be null.
26762 (Process_Formals): If a formal has a non_null indicator, insert the
26763 resulting subtype immediately before the enclosing subprogram decl,
26764 and not at the beginning of the corresponding declarative part, to
26765 prevent access before elaboration (Ada2005).
26767 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26770 * utils.c (finish_record_type): Use variable_size when setting sizes.
26772 2005-03-29 Robert Dewar <dewar@adacore.com>
26774 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26775 guarantee Unix style line terminators for the output files, even when
26776 running on windows.
26778 2005-03-29 Robert Dewar <dewar@adacore.com>
26780 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26781 buffer if an exception is raised.
26783 2005-03-29 Ed Falis <falis@adacore.com>
26785 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26788 2005-03-29 Robert Dewar <dewar@adacore.com>
26790 * sem_util.ads: Minor reformatting
26791 * gnat_rm.texi: Minor editing.
26793 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
26795 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26796 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26798 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26800 * adaint.c (__gnat_portable_spawn): Adjust cast.
26802 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26804 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26806 2005-03-17 Pascal Obry <obry@adacore.com>
26808 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26811 * expect.c (__gnat_waitpid): Moved here from adaint.c.
26812 Reimplement under Win32 using Win32 API.
26814 (__gnat_kill) [Win32]: Properly close the process handle before leaving
26817 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
26819 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26820 (DECL_RENAMED_OBJECT): New accessor macro.
26821 (SET_DECL_RENAMED_OBJECT): New setter macro.
26823 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26824 object in all cases. Attach the renamed object to the VAR_DECL.
26825 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26826 field is not prescribed.
26828 * misc.c (gnat_handle_option): Handle -gnatO separately.
26829 (gnat_print_decl) <VAR_DECL>: New case.
26830 Print the DECL_RENAMED_OBJECT node.
26832 * lang.opt: Declare separate -gnatO option.
26834 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26835 pointer, replace it with the renamed object.
26836 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26837 pointer type if the source is not a fat pointer type whose underlying
26838 array has the same non-zero alias set as that of the destination array.
26840 2005-03-17 Javier Miranda <miranda@adacore.com>
26842 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26843 (Get_Inheritance_Depth): Removed.
26844 (Set_Inheritance_Depth): Removed.
26846 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26847 subprogram Get_Expanded_Name because it is not referenced by the
26850 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26851 (CPP_Get_Inheritance_Depth): Removed.
26852 (CPP_Set_Inheritance_Depth): Removed.
26854 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26856 2005-03-17 Robert Dewar <dewar@adacore.com>
26858 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26859 3, since we now expect GCC 3 to do all the work.
26861 2005-03-17 Javier Miranda <miranda@adacore.com>
26863 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26864 of one barrier to avoid wrong usage of this attribute.
26866 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26867 First_Private_Entity.
26869 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26870 the subprogram against wrong usage.
26871 Adapt the code to traverse the entities in the
26872 scope of a record_type because in addition to its usage regarding
26873 packages, this subprogram is also called by Expand_N_Freeze_Entity
26874 to install the visible declarations of the enclosing scope of a
26875 record_type_with_private to establish the proper visibility before
26876 freezing the entity and related subprograms.
26878 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26880 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26883 2005-03-17 Thomas Quinot <quinot@adacore.com>
26885 * exp_ch3.adb (Check_Attr): New subprogram.
26886 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26887 into a new Check_Attr subprogram, in order to provide a more
26888 explanatory error message (including the name of the missing attribute).
26889 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26890 subprogram determines whether a default implementation exists for a
26891 given stream attribute.
26892 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26893 Determine whether to generate a default implementation for each stream
26894 attribute separately, as this depends on the specific attribute.
26896 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26897 limited extension where a stream attribute is missing for a limited
26898 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26899 generate a bogus reference to the missing attribute to prevent
26900 cascaded errors. Instead, generate a null statement.
26902 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26903 available for a limited type if it has been specified for an ancestor
26906 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26908 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26909 entity is an operator.
26911 2005-03-17 Thomas Quinot <quinot@adacore.com>
26913 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26914 spec, to make this predicate available to other units.
26916 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26919 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26920 when no distribution runtime library is available.
26922 * sem_res.adb, sem_dist.adb: Disable expansion of remote
26923 access-to-subprogram types when no distribution runtime library is
26925 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26926 predicate available to other units.
26928 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26929 spec, to make this predicate available to other units.
26931 2005-03-17 Vincent Celier <celier@adacore.com>
26933 * make.adb (Insert_Project_Sources): Make sure the Q is always
26936 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26937 the default for the tree, not the global default naming.
26939 * prj-proc.adb (Recursive_Process): No need to put the default naming
26940 in the project data, it's already there.
26942 2005-03-17 Doug Rupp <rupp@adacore.com>
26944 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26946 * 5xcrtl.ads: Renamed to...
26947 * s-crtl-vms64.ads: ...this new file
26949 2005-03-17 Robert Dewar <dewar@adacore.com>
26952 * namet.adb (Copy_One_Character): Set proper wide character encoding
26953 for upper half character if we have upper half encoding.
26955 2005-03-17 Robert Dewar <dewar@adacore.com>
26957 * par.adb (Par): Improved msg for attempt to recompile predefined unit
26959 2005-03-17 Thomas Quinot <quinot@adacore.com>
26961 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26962 tagged limited type, the TSS is a newly built renaming declaration:
26963 insert it using Set_TSS, not Copy_TSS.
26965 2005-03-17 Javier Miranda <miranda@adacore.com>
26967 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26968 Try_Object_Operation): Analyze the object that is accessible
26969 through the prefix of the subprogram call before we apply
26970 the transformation of the object-operation notation.
26972 2005-03-17 Jose Ruiz <ruiz@adacore.com>
26974 * s-taprob.adb (Initialize_Protection): Initialize the protected
26975 object's owner to Null_Task.
26976 (Lock): If pragma Detect_Blocking is in effect and the caller of this
26977 procedure is already the protected object's owner then Program_Error
26978 is raised. In addition the protected object's owner is updated.
26979 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26980 of this procedure is already the protected object's owner then
26981 Program_Error is raised.
26982 In addition the protected object's owner is updated.
26983 (Unlock): Remove the ownership of the protected object.
26985 * s-taprob.ads (Protection): Add the field Owner, used to store the
26986 protected object's owner.
26987 This component is needed for detecting one type of potentially blocking
26988 operations (external calls on a protected subprogram with the same
26989 target object as that of the protected action). Document the rest of
26992 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26993 Initialize the protected object's owner to Null_Task.
26994 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26995 caller of this procedure is already the protected object's owner then
26996 Program_Error is raised.
26997 Do not raise Program_Error when this procedure is called from a
26999 (Unlock_Entries): Remove the ownership of the protected object.
27000 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
27001 of this procedure is already the protected object's owner then
27002 Program_Error is raised.
27003 Do not raise Program_Error when this procedure is called from
27004 a protected action.
27006 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
27007 used to store the protected object's owner.
27009 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
27010 effect and this procedure (a potentially blocking operation) is called
27011 from whithin a protected action, Program_Error is raised.
27012 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
27013 and this procedure (a potentially blocking operation) is called from
27014 whithin a protected action, Program_Error is raised.
27016 2005-03-17 Vincent Celier <celier@adacore.com>
27017 Nicolas Setton <setton@adacore.com>
27019 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
27020 switch, not supported by the linker on Darwin. Add '_' before
27021 <library>init, as this character is added unconditionally by the
27023 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
27024 correct one ".dylib". This fixes detection of the archive files when
27025 building library projects.
27027 2005-03-17 Vincent Celier <celier@adacore.com>
27029 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
27030 -gnat83, -gnat95 and -gnat05.
27032 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
27034 * gnat_ugn.texi: Document gnatmem restriction
27036 2005-03-17 Thomas Quinot <quinot@adacore.com>
27038 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
27041 2005-03-17 Robert Dewar <dewar@adacore.com>
27043 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27044 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27045 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27047 * casing.adb: Comment improvements
27049 2005-03-17 Pascal Obry <obry@adacore.com>
27051 * g-expect.adb: Minor reformatting.
27053 2005-03-15 Zack Weinberg <zack@codesourcery.com>
27055 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27056 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27059 2005-03-15 Vincent Celier <celier@adacore.com>
27061 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27062 Add new parameter In_Tree to specify the project tree: needed
27063 by the project manager. Adapt to changes in project manager
27064 using new parameter In_Tree.
27066 2005-03-15 Jakub Jelinek <jakub@redhat.com>
27068 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27069 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27070 ada/bldtools to avoid make -jN failures.
27072 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27074 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27075 to NULL_TREE on entry.
27077 2005-03-15 Robert Dewar <dewar@adacore.com>
27079 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27080 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27081 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27082 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27083 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27084 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27085 system-interix.ads, system-solaris-sparc.ads,
27086 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27087 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27088 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27089 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27090 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27091 Compiler_System_Version to be False.
27093 * opt.ads: Add new flag Opt.Address_Is_Private
27095 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27096 Add new parameter Compiler_System_Version to avoid checking for
27097 completeness of parameters when compiler is compiling itself.
27098 Allows old versions of GNAT to be compiled with new compiler.
27100 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27102 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27103 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27105 (Stack_Base_Available): New flag.
27106 (Get_Page_Size): New overloaded functions imported from C.
27107 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27108 PROT_ON, PROT_OFF): New constants.
27109 (mprotect): New function imported from C.
27110 (pthread_teb_t): New record type.
27112 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27113 (Create_Task): Account for the Yellow Zone and the guard page.
27115 2005-03-15 Vincent Celier <celier@adacore.com>
27117 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27118 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27119 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27120 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27121 Library_File_Name_For): Add new parameter In_Tree
27122 to specify the project tree: needed by the project manager.
27123 Adapt to changes in project manager using new parameter In_Tree.
27124 Remove local imports, use functions in System.CRTL.
27126 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27127 to use the project manager.
27129 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27130 In_Tree to designate the project tree. Adapt to changes in the project
27131 manager, using In_Tree.
27133 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27134 Copy_Interface_Sources): Add new parameter In_Tree to specify the
27135 project tree: needed by the project manager.
27136 (Build_Library): Check that Arg'Length >= 6 before checking if it
27137 contains "--RTS=...".
27139 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27140 Library_File_Name_For): Add new parameter In_Tree to specify the
27141 project tree: needed by the project manager.
27143 * prj.ads, prj.adb: Major modifications to allow several project trees
27144 in memory at the same time.
27145 Change tables to dynamic tables and hash tables to dynamic hash
27146 tables. Move tables and hash tables from Prj.Com (in the visible part)
27147 and Prj.Env (in the private part). Move some constants from the visible
27148 part to the private part. Make other constants deferred.
27149 (Project_Empty): Make it a variable, not a function
27150 (Empty_Project): Add parameter Tree. Returns the data with the default
27151 naming data of the project tree Tree.
27152 (Initialize): After updating Std_Naming_Data, copy its value to the
27153 component Naming of Project Empty.
27154 (Register_Default_Naming_Scheme): Use and update the default naming
27155 component of the project tree, instead of the global variable
27157 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27158 Tree is not defaulted, return the default naming data of the Tree.
27159 (Initial_Buffer_Size): Constant moved from private part
27160 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27161 variables initialized in procedure Initialize.
27162 (Add_To_Buffer): Add two in out parameters to replace global variables
27163 Buffer and Buffer_Last.
27164 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27166 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27168 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27169 for the project tree.
27170 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27171 constant at the beginning of the package spec, so that they cane be used
27172 in subprograms before their full declarations.
27173 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27174 (Empty_Project): Add parameter of type Project_Node_Ref
27175 (Private_Project_Tree_Data): Add component Default_Naming of type
27177 (Buffer, Buffer_Last): remove global variables
27178 (Add_To_Buffer): Add two in out parameters to replace global variables
27179 Buffer and Buffer_Last.
27180 (Current_Packages_To_Check): Remove global variable
27181 (Empty_Name): Move to private part
27182 (No-Symbols): Make it a constant
27183 (Private_Project_Tree_Data): New type for the private part of the
27185 (Project_Tree_Data): New type for the data of a project tree
27186 (Project_Tree_Ref): New type to designate a project tree
27187 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27188 for the project tree.
27190 * prj-attr.ads: Add with Table; needed, as package Prj no longer
27191 imports package Table.
27193 * prj-com.adb: Remove empty, no longer needed body
27195 * prj-com.ads: Move most of the content of this package to package Prj.
27197 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27198 designate the project node tree and Packages_To_Check to replace
27199 global variable Current_Packages_To_Check.
27200 Add new parameters In_Tree and Packages_To_Check to local subprograms,
27201 when needed. Adapt to changes in project manager with project node tree
27204 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27205 project tree to most subprograms. Move tables and hash tables to
27206 private part of package Prj.
27207 Adapt to changes in project manager using project tree In_Tree.
27209 * prj-makr.adb (Tree): New constant to designate the project node tree
27210 Adapt to change in project manager using project node tree Tree
27212 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27213 display the Library_Src_Dir and the Library_Dir.
27214 Add new parameter In_Tree to designate the project node tree to most
27215 subprograms. Adapt to changes in the project manager, using project tree
27217 (Check_Naming_Scheme): Do not alter the casing on platforms where
27218 the casing of file names is not significant.
27219 (Check): Add new parameter In_Tree to designate the
27221 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27222 designate the project tree.
27223 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27225 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27226 to replace those that were in the private part of package Prj.
27227 Add new parameter In__Tree to designate the project node tree to most
27228 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27229 (Post_Parse_Context_Clause): When specifying the project node of a with
27230 clause, indicate that it is a limited with only if there is "limited"
27231 in the with clause, not necessarily when In_Limited is True.
27232 (Parse): Add new parameter In_Tree to designate the project node tree
27234 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27235 designate the project node tree. Adapt to change in Prj.Tree with
27236 project node tree In_Tree.
27238 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27239 tree In_Tree in the call to function Empty_Process to give its initial
27240 value to the project data Processed_Data.
27241 Add new parameters In_Tree to designate the project tree and
27242 From_Project_Node_Tree to designate the project node tree to several
27243 subprograms. Adapt to change in project manager with project tree
27244 In_Tree and project node tree From_Project_Node_Tree.
27246 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27247 to replace those that were in the private part of package Prj.
27248 Add new parameter In_Tree to designate the project node tree to most
27249 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27251 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27252 Project_Node_Tree_Ref to most subprograms.
27253 Use this new parameter to store project nodes in the designated project
27255 (Project_Node_Tree_Ref): New type to designate a project node tree
27256 (Tree_Private_Part): Change table to dynamic table and hash tables to
27257 dynamic hash tables.
27259 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27260 the project tree to most subprograms. Adapt to changes in project
27261 manager using project tree In_Tree.
27263 * makegpr.adb (Project_Tree): New constant needed to use project
27266 2005-03-15 Olivier Hainque <hainque@adacore.com>
27268 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27269 for sigactions with SA_SIGINFO set. Call
27270 __gnat_adjust_context_for_raise before raising, to perform the
27271 potentially required adjustments to the machine context for the GCC
27274 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27276 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27277 Adjust PC by one in the provided machine context.
27278 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27279 so that the handler is passed the context structure to adjust prior to
27281 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27282 SA_SIGINFO sigaction should look like. Call
27283 __gnat_adjust_context_for_raise before actually raising.
27284 (__gnat_adjust_context_for_raise): Default noop to help PC
27285 adjustments before raise from signal handlers.
27286 (__gnat_error_handler): Indirectly call a predicate function to
27287 determine if a condition should be resignaled or not.
27288 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27289 (__gnat_default_resignal_p): Default GNAT predicate.
27291 2005-03-15 Doug Rupp <rupp@adacore.com>
27293 * adaint.c: Prefix #include of VMS system header files with vms/
27294 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27295 Do not define a dummy function "convert_addresses" under Darwin,
27298 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27301 2005-03-15 Nicolas Setton <setton@adacore.com>
27303 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27306 2005-03-15 Robert Dewar <dewar@adacore.com>
27308 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27311 * a-retide.ads: Minor comment changes
27313 2005-03-15 Robert Dewar <dewar@adacore.com>
27315 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27316 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27317 Realloc_For_Chunk to private part of package.
27318 New subprograms for AI-301
27320 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27321 Get_Line procedure.
27322 Avoid unnecessary use of Get/Set_Wide_String
27324 2005-03-15 Robert Dewar <dewar@adacore.com>
27327 * a-stunau.ads, a-stunau.adb:
27328 Change interface to allow efficient (and correct) implementation
27329 The previous changes to allow extra space in unbounded strings had
27330 left this interface a bit broken.
27332 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27334 * g-spipat.ads, g-spipat.adb: New interface for Get_String
27335 Minor reformatting (function specs)
27337 * g-spitbo.adb: New interface for Get_String
27339 * g-spitbo.ads: Minor reformatting
27341 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27343 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27345 2005-03-15 Javier Miranda <miranda@adacore.com>
27346 Robert Dewar <dewar@adacore.com>
27347 Thomas Quinot <quinot@adacore.com>
27348 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27350 * atree.ads, atree.adb: Add support for Elist24 field
27352 * atree.h: Fix wrong definition of Field27
27353 Add support for Elist16 field
27354 Add support for Elist24 field
27356 * einfo.ads, einfo.adb (Abstract_Interfaces,
27357 Set_Abstract_Interfaces): New subprograms.
27358 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27360 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27361 entities rather than a single node.
27362 (Is_Interface, Set_Is_Interface): New subprogram
27363 (First_Tag_Component): New syntesized attribute
27364 (Next_Tag_Component): New synthesized attribute
27365 (Write_Entity_Flags): Upgraded to write Is_Interface
27366 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27367 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27368 (Task_Body_Procedure): New subprogram to read this attribute.
27369 (Set_Task_Body_Procedure): New subprogram to set this attribute.
27370 (Has_Controlled_Component): Now applies to all entities.
27371 This is only a documentation change, since it always worked to apply
27372 this to other than composite types (yielding false), but now this is
27374 Update documentation on Must_Be_Byte_Aligned for new spec
27376 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27377 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27378 uses of the Access_Disp_Table attribute to reference the first dispatch
27379 table associated with a tagged type. As
27380 part of the implementation of abstract interface types,
27381 Access_Disp_Table has been redefined to contain a list of dispatch
27382 tables (rather than a single dispatch table).
27383 Similarly, upgrade all the references to Tag_Component by the
27384 new attribute First_Tag_Component.
27385 (Find_Inherited_TSS): Moved to exp_tss.
27386 Clean up test in Expand_N_Object_Declaration for cases
27387 where we need to do a separate assignment of the initial value.
27388 (Expand_N_Object_Declaration): If the expression in the
27389 declaration of a tagged type is an aggregate, no need to generate an
27390 additional tag assignment.
27391 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27393 Bit packed array ops are only called if operands are known to be
27395 (Component_Equality): When returning an N_Raise_Program_Error statement,
27396 ensure that its Etype is set to Empty to avoid confusing GIGI (which
27397 expects that only expressions have a bona fide type).
27398 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27399 determine the amount of data to be copied.
27401 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27402 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27403 INTERFACE_TYPE_DEFINITION ::=
27404 [limited | task | protected | synchronized] interface
27405 [AND interface_list]
27407 * par-ch3.adb (P_Type_Declaration): Modified to give support to
27409 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27411 (P_Interface_Type_Definition): New subprogram that parses the new
27412 syntax rule of Ada 2005 interfaces
27413 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27414 messages by the correct RENAMES (quotes removed).
27416 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27417 attribute First_Tag_Component.
27419 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27420 (Interface_List, Set_Interface_List): New subprograms.
27421 (Interface_Present, Set_Interface_Present): New subprograms.
27422 (Limited_Present, Set_Limited_Present): Available also in derived
27423 type definition nodes.
27424 (Protected_Present, Set_Protected_Present): Available also in
27425 record type definition and
27426 derived type definition nodes.
27427 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27428 (Task_Present, Set_Task_Present): New subprogram.
27429 (Task_Body_Procedure): Removed.
27430 (Set_Task_Body_Procedure): Removed.
27431 These subprogram have been removed because the attribute
27432 Task_Body_Procedure has been moved to the corresponding task type
27433 or task subtype entity to leave a field free to store the list
27434 of interfaces implemented by a task (for AI-345)
27435 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27436 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27437 expression flag Do_Range_Check
27438 (Exception_Junk): Change to Flag7 to accomodate above change
27439 (Box_Present, Default_Name, Specification, Set_Box_Present,
27440 Set_Default_Name, Set_Specification): Expand the expression
27441 "X in N_Formal_Subprogram_Declaration" into the corresponding
27442 two comparisons. Required to use the csinfo tool.
27444 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27445 "with string" given.
27447 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27450 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27453 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27454 attribute Task_Body_Procedure rather than the old semantic field that
27455 was available in the task_type_declaration node.
27457 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27458 interface type definitions.
27459 (P_Formal_Derived_Type_Definition): Modified to handle the list of
27462 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27463 task type declaration.
27464 (P_Protected): Modified to handle the list of interfaces in a
27465 protected type declaration.
27467 2005-03-15 Doug Rupp <rupp@adacore.com>
27468 Vincent Celier <celier@adacore.com>
27470 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27471 (Gen_Output_File_C): Likewise.
27472 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27474 2005-03-15 Thomas Quinot <quinot@adacore.com>
27476 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27477 is an N_Raise_Constraint_Error node, create a new copy of it without
27478 going through a call to Duplicate_Subexpr.
27480 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27481 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27482 Nicolas Setton <setton@adacore.com>
27483 Ed Schonberg <schonberg@adacore.com>
27489 * decl.c (gnat_to_gnu_field): Reject aliased components with a
27490 representation clause that prescribes a size not equal to the rounded
27491 size of their types.
27492 (gnat_to_gnu_entity, case E_Component): Always look at
27493 Original_Record_Component if Present and not the entity.
27494 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27495 of tagged extension types by not making field for components that are
27497 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27498 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27499 expression to the type of the object when the object is constant.
27500 Reverse defer_debug_incomplete_list before traversing it, so that trees
27501 are processed in the order at which they were added to the list. This
27502 order is important when using the stabs debug format.
27503 If we are deferring the output of debug information, also defer this
27504 output for a function return type.
27505 When adding fields to a record, prevent emitting debug information
27506 for incomplete records, emit the information only when the record is
27508 (components_to_record): New parameter defer_debug.
27509 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27510 (gnat_to_gnu_field_decl): New function.
27511 (substitution_list, annotate_rep): Call it.
27512 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27513 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27514 No longer update discriminants to not be a COMPONENT_REF.
27515 (copy_alias_set): Strip padding from input type; also handle
27516 unconstrained arrays properly.
27518 * gigi.h (write_record_type_debug_info): New function.
27519 Convert to use ANSI-style prototypes. Remove unused
27520 declarations for emit_stack_check, elab_all_gnat and
27521 set_second_error_entity.
27522 (gnat_to_gnu_field_decl): New decl.
27524 * utils.c (write_record_type_debug_info): New function.
27525 (finish_record_type): Delegate generation of debug information to
27526 write_record_type_debug_info.
27527 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27528 (update_pointer_to): Fix pasto.
27529 (convert) <UNION_TYPE>: Accept slight type variations when
27530 converting to an unchecked union type.
27532 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27533 replace the N_Freeze_Entity with a null statement.
27535 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27536 within a constrained subcomponent of an enclosing record, place the
27537 freeze nodes in the scope stack entry for the enclosing record.
27538 (Undelay_Type): New Subprogram.
27539 (Set_Small_Size): Pass T, the type to modify; all callers changed.
27540 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27541 within records; allow them to have freeze nodes if their base types
27544 * exp_util.adb (Remove_Side_Effects): Properly test for
27545 Expansion_Delayed and handle case when it's inside an
27546 N_Qualified_Expression.
27548 * sem_ch3.adb (Derived_Type_Declaration): New predicate
27549 Comes_From_Generic, to recognize accurately that the parent type in a
27550 derived type declaration can be traced back to a formal type, because
27551 it is one or is derived from one, or because its completion is derived
27553 (Constrain_Component_Type): If component comes from source and has no
27554 explicit constraint, no need to constrain in in a subtype of the
27556 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27557 Minor change to propagate Is_Ada_2005 flag
27559 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27560 Expansion_Delayed is False.
27561 (assoc_to_constructor): Ignore fields that have a
27562 Corresponding_Discriminant.
27563 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27564 function returns "by target", dereference the target pointer using the
27565 type of the actual return value.
27566 <all>: Be prepared for a null gnu_result.
27567 (processed_inline_subprograms): Check flag_really_no_inline
27568 instead of flag_no_inline.
27569 (set_second_error_entity): Remove unused function.
27570 (gnat_to_gnu, case N_Selected_Component): Call
27571 gnat_to_gnu_field_decl.
27572 (assoc_to_constructor): Likewise.
27574 2005-03-15 Robert Dewar <dewar@adacore.com>
27575 Ed Schonberg <schonberg@adacore.com>
27576 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27578 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27579 Must_Be_Byte_Aligned for cases where we do not need to use a
27580 System.Pack_nn unit.
27582 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27584 Needed now that we do some processing for IN parameters as well. This
27585 may well fix some unrelated errors.
27586 (Expand_Call): Handle case of unaligned objects (in particular those
27587 that come from packed arrays).
27588 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27589 renamed entity is an inherited operation, re-expand the call using the
27590 original operation, which is the one to call.
27591 Detect attempt to inline parameterless recursive subprogram.
27592 (Represented_As_Scalar): Fix to work properly with private types
27593 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27594 accurate estimate. Yields True in far fewer cases than before,
27595 improving the quality of code that depends on this test.
27597 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27598 over both visible and private declarations to remove them from tree,
27599 and mark subprograms declared in package as eliminated, to prevent
27600 spurious use in subsequent compilation of generic units in the context.
27602 * exp_util.ads: Minor cleanup in variable names
27604 * sem_eval.ads, sem_eval.adb: Minor reformatting
27605 (Compile_Time_Known_Bounds): New function
27607 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27609 * exp_ch7.adb (Convert_View): Use base types of underlying types when
27610 determining whether an unchecked conversion is needed for the argument
27611 of an initialization call.
27613 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27615 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27616 that appears in the instantiation rather than the internal subtype
27617 generated in the wrapper package, to avoid anomalies in gigi when the
27618 target is derived from a private type whose full view is an access type.
27620 2005-03-15 Robert Dewar <dewar@adacore.com>
27622 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27624 Add documentation to replace the use of this flag
27625 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27628 2005-03-15 Thomas Quinot <quinot@adacore.com>
27630 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27631 here from exp_attr so it can be shared between exp_attr and exp_dist.
27632 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27633 all TSS names, not a subset thereof, and the previous name introduced
27634 an unnecessarily confusion that a distinction might exist between
27635 "OK" TSS names and some "not OK" TSS names.
27637 2005-03-15 Doug Rupp <rupp@adacore.com>
27639 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27642 2005-03-15 Pascal Obry <obry@adacore.com>
27643 Eric Botcazou <ebotcazou@adacore.com>
27647 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27648 when IN_RTS. This is to work around a bootstrap path problem.
27650 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27651 table and pass it to __gnat_install_SEH_handler().
27652 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27654 * lang.opt: Fix specification of -fRTS=.
27656 2005-03-15 Doug Rupp <rupp@adacore.com>
27657 Bernard Banner <banner@adacore.com>
27658 Vincent Celier <celier@adacore.com>
27659 Arnaud Charlet <charlet@adacore.com>
27662 This change works fine when gnatlib is built from the gcc directory,
27663 but does not work when using the libada Makefile, since GCC_FOR_TARGET
27664 is not passed to ada/Makefile.in, so more work is needed by a
27665 Makefile/configure expert.
27667 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27668 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27669 Setup gnatlink switch -M for x86_64 linux, as it is already setup
27671 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27672 Run ranlib on libgccprefix.a
27673 Define PREFIX_OBJS for Darwin, to build libgccprefix.
27674 (ADA_INCLUDE_SRCS): Split Ada packages.
27676 2005-03-15 Robert Dewar <dewar@adacore.com>
27678 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27680 * impunit.adb: Add GNAT.UTF_32
27682 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27684 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27685 now uses GNAT.UTF_32).
27687 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27688 capabilities for categorizing characters using Unicode categories
27690 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27692 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27693 instantiation that has been rewritten as a package body, retrieve spec
27694 to generate proper name for implicit_with_clause.
27695 (Install_Parents): Recognize a parent that is an instantiation but has
27696 been rewritten as a package declaration during analysis.
27698 2005-03-15 Javier Miranda <miranda@adacore.com>
27699 Ed Schonberg <schonberg@adacore.com>
27701 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27702 parameter reported some error we immediately return. This improves the
27703 behaviour of the frontend in case of errors.
27704 (Install_Parent, Remove_Parent): Introduce new flag
27705 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27706 ancestor of a generic child unit, when the child is being instantiated.
27707 (Inline_Instance_Body): If we are compiling the private
27708 part or the body of a child unit, restore the proper visibility of the
27709 parents after compiling the instance body.
27711 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27712 Javier Miranda <miranda@adacore.com>
27715 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27716 of a private type, in which case it is underlying_type that denotes
27717 the proper task. Also modified to use the new entity attribute
27718 that is directly available in the task type and task subtype entities
27719 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27720 arrays when other dimensions than the first are constrained by
27721 discriminants of an enclosing record.
27722 (Insert_Explicit_Dereference): If the prefix is an indexed component or
27723 a combination of indexed and selected components, find ultimate entity
27724 and generate the appropriate reference for it, to suppress spurious
27726 (Note_Possible_Modification): If an entity name has no entity, return.
27727 (Is_Variable): A function call never denotes a variable.
27728 (Requires_Transient_Scope): For record types, recurse only on
27729 components, not on internal subtypes that may have been generated for
27730 constrained components.
27732 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27734 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27735 Eliminated as candidates for resolution. Both efficient, and avoids
27736 anomalies with operators declared in deleted code.
27737 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27738 expansion is disabled (as when compiling a generic) to prevent spurious
27739 warnings on prefixes of selected components.
27741 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27743 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27744 attached to a list before checking whether it appears in the private
27745 declarations of the current package.
27746 (Make_Inequality_Operator): Insert declaration in proper declarative
27747 list rather than just setting the Parent field, so that
27748 Is_Private_Declaration can handle it properly.
27750 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27752 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27753 a renaming a body, check that the renamed subprogram in not intrinsic.
27754 (Find_Direct_Name): If several use_visible entities hide
27755 each other, and the context is a predefined file compiled through
27756 rtsfind, keep only the entity that comes from a predefined file.
27758 2005-03-15 Geert Bosch <bosch@adacore.com>
27760 * s-fatgen.adb (Valid): Extend special exceptions to account for long
27761 long float padding to also cover AMD64 and IA64.
27763 2005-03-15 Gary Dismukes <dismukes@adacore.com>
27765 * s-imgwch.adb: Add with and use of Interfaces.
27766 (Img_Wide_Character): Change type of Val to Unsigned_16.
27767 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27769 2005-03-15 Matthew Gingell <gingell@adacore.com>
27771 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27773 2005-03-15 Robert Dewar <dewar@adacore.com>
27775 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27777 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27779 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27781 2005-03-15 Robert Dewar <dewar@adacore.com>
27783 * s-bitops.adb, s-bitops.ads,
27784 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27785 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27786 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27787 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27788 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27789 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27790 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27791 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27794 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27796 * utils2.c (build_binary_op): Fix typo.
27798 2005-03-15 Doug Rupp <rupp@adacore.com>
27800 * s-crtl.ads (popen,pclose): New imports.
27802 2005-03-15 Cyrille Comar <comar@adacore.com>
27804 * comperr.adb (Compiler_Abort): remove references to obsolete
27805 procedures in the bug boxes for various GNAT builds.
27807 2005-03-15 Vincent Celier <celier@adacore.com>
27809 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27811 2005-03-15 Geert Bosch <bosch@adacore.com>
27812 Arnaud Charlet <charlet@adacore.com>
27813 Robert Dewar <dewar@adacore.com>
27814 Cyrille Comar <comar@adacore.com>
27815 Sergey Rybin <rybin@adacore.com>
27817 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27818 too specific and long-winded to be appropriate for the GNAT User's
27820 Warn about use of GCC switches not documented in the GNAT User's Guide,
27821 as these may cause generated code to not conform to Ada semantics.
27822 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27823 Add documentation for -gnat95 and -gnat05 switches
27824 Remove paragraph documenting obsolete way to refer to third party
27826 Add a few references to Ada_05 that were missing.
27827 Update documentation on -gnatZ/-gnatL.
27828 Document limitation when using -m64 under Solaris.
27829 Change the "Name Casing" subsection of the pretty-printer section
27830 according to the changes in the dictionary processing.
27832 * gnat_rm.texi: Document the Ada_05 pragma.
27833 Section on record representation clauses describes the new more
27834 relaxed rules about placement of large packed bit array components.
27835 Add documentation of GNAT.UTF_32
27837 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
27839 * misc.c (gnat_post_options): Turn off structural
27842 2005-03-08 Laurent Guerby <laurent@guerby.net>
27844 * system-linux-sparc.ads: Fix typo in previous commit.
27846 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
27847 Laurent Guerby <laurent@guerby.net>
27850 * system-linux-sparc.ads: New.
27851 * Makefile.in: Add sparc linux entry.
27853 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
27855 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27856 parameters as unused.
27858 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
27859 Partial merge from libada-gnattools-branch:
27861 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27862 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27863 into code in gnattools/Makefile.in. Remove direct dependencies on
27864 stamp-tools by tools clauses.
27865 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27866 * config-lang.in: Add gnattools to $lang_dirs.
27868 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
27871 * utils.c (gnat_type_for_mode): Return null instead of ICE because
27872 we asked for an unknown mode.
27874 2005-02-12 Richard Henderson <rth@redhat.com>
27876 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27877 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27879 2005-02-10 Andreas Jaeger <aj@suse.de>
27881 * init.c (__gnat_initialize): Mark parameter as unused.
27883 2005-02-09 Doug Rupp <rupp@adacore.com>
27885 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27886 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27888 2005-02-09 Doug Rupp <rupp@adacore.com>
27890 * gnatchop.adb (dup, dup2),
27891 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27893 * gnatlbr.adb (mkdir),
27894 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
27896 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27898 2005-02-09 Doug Rupp <rupp@adacore.com>
27900 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27902 2005-02-09 Robert Dewar <dewar@adacore.com>
27903 Thomas Quinot <quinot@adacore.com>
27904 Javier Miranda <miranda@adacore.com>
27905 Pascal Obry <obry@adacore.com>
27906 Ed Schonberg <schonberg@adacore.com>
27907 Doug Rupp <rupp@adacore.com>
27908 Gary Dismukes <dismukes@adacore.com>
27909 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27911 * g-zstspl.ads: New file.
27913 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27915 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27917 Add definition of Wide_Wide_Space for AI-285
27919 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27920 interface (to support Ada 95 and Ada 2005 units).
27921 Add Unbounded_IO files
27922 Add entries for Wide_Wide packages for AI-285
27923 Add list of containers packages to Ada 2005 unit list
27925 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27926 support new Unbounded_IO package cleanly.
27928 * g-utf_32.ads, g-utf_32.adb: New files.
27930 * Makefile.rtl: Add entry for g-utf_32
27931 Add new files for Unbounded_IO
27932 Adjust make file for new AI-285 wide wide packages
27933 Add AI-302 containers to the run time.
27935 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27936 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27937 subprograms for AI-301.
27939 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27941 * a-stunau.ads: Minor comment correction
27943 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27945 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27946 (Check_RPC): Update to match changes in expanded code.
27947 Clean up unused entity.
27949 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27950 was not taken into account.
27951 This includes proper initialization with Normalize_Scalars.
27952 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27953 normalize scalars cases (particularly the latter) to do a better job
27954 of finding invalid representations.
27956 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27958 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27961 * exp_dist.adb: Add support for wide wide character type
27962 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27963 private part, generate stub bodies at the end of the private part,
27964 not the visible part.
27965 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27967 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27968 generic wrapper to execute final processing after completing the
27969 expansion of the RPC receiver for an RACW.
27971 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27972 packages and attributes.
27973 (Preset_Names): Addition of the new reserved words of Ada 2005,
27974 that is interface, overriding and synchronized.
27975 (Get_Pragma_Id): Give support to the use of the new reserved word
27976 "interface" as a pragma name.
27977 (Is_Pragma_Name): Give support to the use of the new reserved word
27978 "interface" as a pragma name.
27979 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27980 attribute implementation.
27982 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27983 checks to entities that are output parameters of Asm operations.
27984 Handle the Stream_Size attribute.
27985 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27987 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27989 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27990 for second parameter being 0.0.
27991 Add support for wide wide character type.
27992 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27994 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27995 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27996 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27997 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27998 for wide wide character cases.
28000 * cstand.adb: Create entities for Wide_Wide_Character and
28003 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
28004 accordance with AI-258.
28005 Add new declarations for 16/32 bit C character types (Part of AI285)
28007 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
28008 (Obsolescent_Warning): New field
28009 (Rep_Clause): New local subprogram used to share code. Returns the rep
28010 clause for which the name is given in parameter.
28011 (Has_Stream_Size_Clause): New routine.
28012 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
28013 (Address_Clause): Implementation is now using Rep_Clause.
28014 (Alignment_Clause): Idem.
28015 (Size_Clause): Idem.
28017 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
28018 entity in non-Ada 2005 mode and generate warning.
28020 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
28021 (Prag): Code cleanup. Remove old gnat pragma "overriding"
28023 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
28024 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
28025 on the named unit if the pragma is not in the current compilation unit,
28026 so that elaboration calls in the current unit can set up an elaboration
28027 dependency on the named unit, as needed.
28028 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
28029 subprogram as well as for subprograms declared within a package.
28030 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
28033 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
28034 to z) to avoid some instances of duplication for Wide_Wide packages.
28036 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
28039 * scn.adb: Char_Literal_Value field is now a Uint
28041 * scng.adb: Significant rewrite to handle new Ada 2005 features
28042 allowing wide and wide wide characters in program text, e.g. for
28043 identifiers, as described in AI-285.
28044 (Set_Reserved): New procedure, makes setting up keywords cleaner.
28045 (Initialize_Scanner): Register the new reserved words of Ada 2005.
28046 (Scan): Give support to the new reserved words.
28048 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28049 warning notifying that interface, overriding, and synchronized are
28050 new reserved words.
28051 (P_Pragma): Allow the use of the new reserved word "interface" as
28054 * gnatls.adb, gnatbind.adb,
28055 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28056 identifiers named "interface" to "SAL_Interface".
28058 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28059 (Structured Exception handling).
28060 (Gen_Main_C): Idem.
28063 (Gen_Main_Ada): Set the default exit code if specified.
28064 (Gen_Main_C): Likewise.
28066 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28067 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28069 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28072 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28073 has a collision with the new Ada 2005 "interface" reserved word.
28075 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28076 generate a warning notifying that interface, overriding, and
28077 synchronized are new reserved words.
28079 * scans.ads (Token_Type): Addition of the tokens corresponding to the
28080 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28081 and Tok_Synchronized.
28083 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28084 "dispatching" rather than "primitive" operations, since dispatching
28085 calls are now allowed to abstract formal subprograms (which are not
28087 Char_Literal_Value field is now a Uint
28088 (Resolve_Slice): If the prefix is an access to an unconstrained array,
28089 compute the actual subtype of the designated object to impose the proper
28091 (Resolve_Selected_Component): Do not insert an access check if the
28092 prefix is an access type: such a node is expanded into an explicit
28093 dereference, on which the access check is performed anyway. Removes
28094 expensive duplicate checks.
28095 (Resolve_Call): Use new flag Is_Obsolescent and field
28096 Obsolescent_Warning so that pragma Obsolescent works on library
28098 Add support for wide wide character type
28099 (Resolve_Allocator): Replace the error message on wrong null-exclusion
28100 value by a warning message.
28101 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28102 as fixed-point, and one of the operands is non-static and universal, it
28103 can only be an illegal exponentiation operation, in which case there is
28104 no real value to retrieve.
28106 * exp_strm.adb: Add support for wide wide character type
28107 (Build_Elementary_Input_Call): Compute the size of the stream element by
28108 querying the rep chain to find the Stream_Attribute attribute value.
28109 (Build_Elementary_Write_Call): Ditto.
28111 * sem_aggr.adb: Char_Literal_Value field is now a Uint
28112 Add support for wide wide character type
28113 Replace the error messages on wrong null-exclusion value by warnings
28114 as described in Ada 2005.
28115 (Resolve_Extension_Aggregate): Document the fact that the error
28116 message on class-wide expressions in extensions aggregates.
28118 * sem_case.adb: Add support for wide wide character type
28120 * sem_ch13.adb: Add support for wide wide character type
28121 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28123 * sem_ch3.adb: Add support for wide wide character type
28124 (Process_Subtype): If constraint is illegal for the type, set Ekind of
28125 now-useless Itype, to prevent cascaded errors on a compiler built
28128 * sem_ch8.adb: Add with and use of Sem_Disp.
28129 (Analyze_Subprogram_Renaming): Replace unclean uses of
28130 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28131 of Corresponding_Spec to Empty).
28132 (Attribute_Renaming): Replace use of Corresponding_Spec with
28133 Corresponding_ Formal_Spec and simplify condition.
28134 (Use_One_Package): Check that scope of homonym of identifier is defined,
28135 before checking whether it is a wrapper package.
28136 Add support for wide wide character type
28138 * sem_eval.adb: Add support for wide wide character type.
28139 (Eval_Arithmetic_Op): Check for compile time known signed integer
28140 overflow in the non-static case.
28141 (Subtypes_Statically_Match): A formal scalar type and its base type do
28142 not statically match.
28144 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28145 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28147 (Unit_Declaration_Node): Ditto.
28148 (Is_Variable_Prefix): For the case of an indexed component whose prefix
28149 has a packed array type, the prefix has been rewritten into a type
28150 conversion. Determine variable-ness from the converted expression.
28151 Handle wide wide character cases.
28153 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28155 * stringt.ads, stringt.adb: Handle full UTF-32 range.
28156 Remove ["0A"] from comment, since it can look like a line terminator.
28157 Currently we don't permit this, but this is under discussion by the
28158 ARG, and it is easy enough to use a different example.
28160 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28161 handling UTF-32 encoding for wide wide character.
28162 Implement new brackets coding ["hhhhhhhh"]
28163 Add UTF-8 encodings for full UTF-32 range
28165 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28167 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28168 bit range Add full UTF-32 support.
28169 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28170 notify that constraint error will be raised at run-time
28171 because a null value is assigned to a null-excluding object.
28172 Remove some obsolete declarations and make Char_Code
28175 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28176 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28177 Rcheck subprograms.
28179 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28180 wrong null-exclusion value by a warning message.
28181 (Enable_Range_Check): Do range check if the prefix is an
28182 explicit dereference whose designated object is an unconstrained array.
28183 Current algorithm for removing duplicate checks is over-eager in this
28186 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28187 null-exclusion value by a warning message
28189 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28190 completely. Add support for Uint2 field
28192 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28193 exp_prag.adb: Char_Literal_Value field is now a Uint.
28195 * exp_util.adb (Insert_Actions): Replace
28196 N_Formal_Subprogram_Declaration by
28197 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28198 Char_Literal_Value field is now a Uint.
28200 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28201 defined for subprogram renaming declarations. When set, the field
28202 indicates the defining entity of a corresponding formal subprogram
28203 when the renaming corresponds to a formal subprogram association in an
28205 (Set_Corresponding_Formal_Spec): New procedure to return
28206 Corresponding_Formal_Spec field.
28207 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28208 (which is now a subtype).
28209 Char_Literal_Value field is now a Uint
28211 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28212 pointer to the base of the dispatch table.
28213 Minor changes to comments.
28214 (Controlling_Type): New function for determining the tagged type
28215 associated with a tagged primitive subprogram.
28216 (Expand_Dispatching_Call): Add support for a controlling actual that is
28217 directly a value of type Ada.Tag rather than a tagged object.
28219 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28220 describing the new layout.
28221 (Dispatch_Table): The expander computes the actual array size, allocates
28222 the Dispatch_Table record accordingly, and generates code that displaces
28223 the base of the record after the Typeinfo_Ptr component. The access to
28224 these components is done by means of local functions.
28225 (Offset_To_Top): New function.
28226 (Typeinfo_Ptr): New function.
28227 (Get_TSD): Modified to access the new position of the TSD.
28228 (Set_TSD): Modified to save the TSD in its new position.
28230 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28231 case of formal abstract subprograms. Add check and message for -gnat05.
28234 * sem_ch12.adb: Add with and use for Sem_Disp.
28235 (Analyze_Associations): Minor change from "=" to "in" for use of
28236 N_Formal_Subtype_Declaration (which is now a subtype).
28237 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28238 N_Formal_Subtype_Declaration (which is now a subtype).
28239 (Analyze_Formal_Subprogram): Add handling for
28240 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28241 dispatching, setting the controlling status of the formal parameters
28242 and result, and issuing an error if there is no controlling type for
28243 the formal subprogram.
28244 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28245 which is an unclean use of that field, we set the new field
28246 Corresponding_Formal_Spec to make the formal subprogram available to
28247 processing in Analyze_Subprogram_Declaration.
28248 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28249 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28250 Constrained, so that it is is does not statically match its anonymous
28253 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28254 abstract formal subprograms in error check for functions returning
28255 abstract types. Set scope of new designator for
28256 a parameterless subprogram, so that it is available when checking the
28257 body for nested subprograms, before full analysis of said body.
28258 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28259 subprogram only if inner one comes from source.
28260 (Analyze_Function_Call): If the call is given in object notation, the
28261 analysis of the name rewrites the node and analyzes it with the proper
28262 argument list. After analyzing the name, if the call has been rewritten
28263 and the result type is set, no further analysis is needed.
28264 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28265 mark in function specification, in a context where the formals are
28266 visible and hide outer homographs.
28268 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28269 as the tagged type for the cases of abstract formal subprograms and
28270 renamings of those. Clean up spec comments.
28271 (Check_Dispatching_Context): Add error message to indicate "abstract
28272 procedure", covering the case of a call to a formal abstract procedure
28273 that has statically tagged operands.
28274 (Check_Dispatching_Call): Check for the case of an actual given by
28275 a tag-indeterminate function call whose type is an ancestor of the
28276 containing call's associated tagged type. This situation can occur
28277 for inherited primitives with function defaults. In this case we
28278 use the tagged type's tag directly as the controlling argument for
28280 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28282 * sprint.adb (Sprint_Node_Actual): Split
28283 N_Formal_Subprogram_Declaration into two alternatives for the new
28284 cases N_Formal_Abstract_Subprogram_Declaration and
28285 N_Formal_Concrete_Subprogram_Declaration.
28286 Char_Literal_Value field is now a Uint.
28288 * trans.c: Get rid of junk Uint2 reference.
28289 Char_Literal_Value field is now a Uint.
28290 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28291 (gigi): Correct third arg to gimplify_body.
28293 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28294 (TYPE_LANG_FLAG_0): Check for record or union.
28296 * treepr.adb: Char_Literal_Value field is now a Uint
28298 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28301 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28302 Add full UTF-32 support
28303 Char_Code is now 32 bits
28305 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28306 wide character UTF_32 line terminators.
28307 Initialize Main_Source_File to avoid error when no main
28310 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28311 (Main_Source_File) when no main source has been loaded, to avoid
28314 2005-02-09 Robert Dewar <dewar@adacore.com>
28316 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28317 Fix name of Set routine
28319 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28322 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28323 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28326 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28327 forms of Get_Line subprograms for AI-301.
28329 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28330 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28331 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28332 a-stwima.ads: Minor reformatting.
28334 2005-02-09 Doug Rupp <rupp@adacore.com>
28335 Thomas Quinot <quinot@adacore.com>
28337 * adaint.c, adaint.h
28338 [VMS] (to_ptr32): New function.
28339 (MAYBE_TO_PTR32): New macro.
28340 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28342 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28343 [VMS] (#define fork()): Remove since unneccessary.
28344 (__gnat_set_close_on_exec): New routine to support
28345 GNAT.OS_Lib.Set_Close_On_Exec.
28347 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28348 the parent side as close-on-exec so that they are not inherited by the
28351 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28352 set or clear the FD_CLOEXEC flag on a file descriptor.
28354 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
28355 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28359 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28360 on the field if Pragma Component_Alignment (Storage_Unit).
28361 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28362 side-effects as if it were a constant; also make SAVE_EXPR to protect
28364 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28366 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28367 (components_to_record): Test it.
28368 Fix improper usage of REFERENCE_CLASS_P.
28370 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28373 * utils2.c: Minor reformatting.
28375 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28376 handle other cases like RECORD_TYPE.
28378 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28380 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28382 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28383 component of an array of arrays in an assignment context, and the
28384 aggregate has component associations that require sliding on
28385 assignment, force reanalysis of the aggregate to generate a temporary
28386 before the assignment.
28387 (Must_Slide): Make global to the package, for use in Gen_Assign.
28389 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28391 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28392 unchecked union with no inferable discriminants, return a
28393 Raise_Program_Error node, rather than inserting it at the point the
28395 (Expand_Record_Equality, Component_Equality): Handle properly the case
28396 where some subcomponent is an unchecked union whose generated equality
28397 code raises program error.
28399 2005-02-09 Doug Rupp <rupp@adacore.com>
28401 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28402 [VMS] (#define exit hack): Remove.
28404 2005-02-09 Pascal Obry <obry@adacore.com>
28405 Arnaud Charlet <charlet@adacore.com>
28407 * init.c (__gnat_initialize): Add a new parameter eh which contains the
28408 address of the exception registration. The Win32 version of this
28409 routine calls __gnat_install_SEH_handler() to initialize the SEH
28410 (Structured Exception Handling) handler.
28411 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28412 SEH (Structured Exception Handling) now.
28413 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28414 (__gnat_initialize for ppc-vxworks): Adjust comments and the
28415 preprocessor condition protecting the call to the extra eh setup
28416 subprogram, which is only available for the ppc target.
28417 (__gnat_clear_exception_count): replaced reference to
28418 variable taskIdCurrent by call to taskIdSelf(), cleaner.
28420 * seh_init.c: New file.
28422 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28423 (GNATBIND_OBJS): Idem.
28425 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28426 routine takes a new parameter (a pointer to the exception registration
28427 for the SEH (Structured Exception Handling) support.
28429 * raise.h: (__gnat_install_SEH_handler): New prototype.
28430 Update copyright notice.
28432 * s-tassta.adb (Task_Wrapper): Declare the exception registration
28433 record and initialize it by calling __gnat_install_SEH_handler.
28435 2005-02-09 Vincent Celier <celier@adacore.com>
28437 * make.adb (Gnatmake): Do not fail when the main project has no object
28440 2005-02-09 Doug Rupp <rupp@adacore.com>
28442 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28443 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28444 [VMS]: Add translations for g-enblsp.adb.
28446 * s-asthan-vms.adb: Removed.
28447 * s-asthan-vms-alpha.adb: Added.
28449 2005-02-09 Pascal Obry <obry@adacore.com>
28451 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28452 (LIBGNAT_OBJS): Add seh_init.o.
28454 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28457 * Makefile.in: Link all gnat tools with -static-libgcc, since
28458 -shared-libgcc is now used by default on some systems (e.g. linux with
28460 Remove references to Makefile.prolog/generic, no longer used.
28462 2005-02-09 Vincent Celier <celier@adacore.com>
28464 * prj-makr.adb (Process_Directory): Put file name in canonical case
28465 before matching against the patterns.
28466 If gnatname has been invoked as <prefix>-gnatname
28467 then invoke the compiler as <prefix>-gcc, not just "gcc".
28469 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28471 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28472 with expansion disabled. The actual subtype is needed among other
28473 places when the selected component appears in the context of a loop
28474 bound, and denotes a packed array.
28475 (Operator_Check): Always use the first subtype in the
28476 error message, to avoid the appearance of internal base types.
28477 (Transform_Object_Operation): Copy each actual in full
28478 to the parameter associations of the constructed call, rather than
28479 using the shallow copy mechanism of New_Copy_List. This ensures that
28480 the chaining of named associations is done properly.
28481 (Complete_Object_Operation): Rewrite node, rather than
28482 replacing it, so that we can trace back to the original selected
28485 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28486 and calls that use object notation, if the called function is not
28487 declared in a withed unit, place the elaboration constraint on the
28488 unit in the context that makes the function accessible.
28489 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28490 imposes an elaboration constraint between two packages.
28492 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28494 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28495 views of a private type after handling its private dependents, to
28496 maintain proper stack discipline between entry and exit from the
28499 2005-02-09 Cyrille Comar <comar@adacore.com>
28501 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28502 Minor reformatting.
28504 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28506 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28507 fields for foreign threads.
28509 2005-02-09 Doug Rupp <rupp@adacore.com>
28511 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28512 recursion warnings when compiled with -gnatdm.
28514 2005-02-09 Robert Dewar <dewar@adacore.com>
28516 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28517 Slight fix to documentation of -gnaty with no parameters
28519 * xr_tabls.ads: Add ??? comment for missing overall comment
28521 * xsinfo.adb: Make default file name be sinfo.h, since this is what
28522 we now use by default.
28524 * xsnames.adb: Adjust end of file test to look for five space followed
28525 by '#' instead of six spaces. The format of xsnames.adb was modified
28526 in the last update.
28528 * a-numeri.ads: Add reference to AI-388 for greek letter pi
28531 * clean.adb: Minor reformatting.
28533 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28534 gnatname.adb: Minor reformatting
28535 Add 2005 to copyright output when utility is run
28537 * csets.adb: Eliminate obsolete comment
28539 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28542 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28544 2005-02-09 Sergey Rybin <rybin@adacore.com>
28546 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28547 the difference between compact and incompact layout and add the record
28548 representation clause to the example illustrating different layouts.
28549 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28550 component clauses").
28552 2005-02-09 Florian Villoing <villoing@adacore.com>
28554 * gnat_ugn.texi: Fix typos.
28555 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28557 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28558 in the generated documentation.
28560 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28562 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28564 Update linker wrapper when linking with non GNU C++.
28566 2005-02-09 Pascal Obry <obry@adacore.com>
28569 Document the procedure to debug the DllMain routine on Windows.
28570 Add note about -funwind-tables and mixed Ada and C/C++ programming in
28572 Document new BIND qualifer /RETURN_CODES=VMS.
28574 2005-02-09 Ben Brosgol <brosgol@adacore.com>
28576 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28577 Edited gnatmetric chapter
28579 2005-02-09 Robert Dewar <dewar@adacore.com>
28582 Changes to document new wide wide character support
28584 Update documentation on Normalize_Scalars and Initialize_Scalars
28586 2005-02-09 Pascal Obry <obry@adacore.com>
28588 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28590 2005-02-09 Jose Ruiz <ruiz@adacore.com>
28592 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28593 from the VxWorks kernel) that is needed for getting the active
28594 priority of the different tasks.
28596 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28597 Use a pragma Elaborate_Body in the spec file instead.
28598 Noticed by code reading.
28600 2005-02-09 Thomas Quinot <quinot@adacore.com>
28602 * exp_util.ads: Minor correction in comment.
28604 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28606 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28607 since this procedure is now too complex to be worth inlining.
28609 2005-02-09 Richard Henderson <rth@redhat.com>
28611 * utils.c (gnat_define_builtin): Remove.
28612 (gnat_install_builtins): Use build_common_builtin_nodes.
28614 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28616 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28617 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28618 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28619 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28620 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28621 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28622 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28623 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28624 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28625 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28626 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28627 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28628 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28629 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28630 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28631 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28632 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28633 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28634 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28635 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28636 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28637 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28638 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28639 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28640 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28641 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28642 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28643 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28644 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28645 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28646 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28647 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28648 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28649 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28652 2005-01-27 Laurent Guerby <laurent@guerby.net>
28654 * Makefile.in: Fix a-intnam.ads from previous commit,
28655 add 2005 to copyright.
28656 * a-intman-rtems.ads: Renamed to...
28657 * a-intnam-rtems.ads:
28659 2005-01-27 Laurent Guerby <laurent@guerby.net>
28661 * Makefile.in: Rename GNAT RTEMS specific files.
28662 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28663 5rosinte.ads, 5rparame.adb: Replaced by files below.
28664 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28665 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28667 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
28668 Laurent Guerby <laurent@guerby.net>
28671 * 5rosinte.ads: Add No_Key constant.
28672 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28673 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28675 2005-01-26 Laurent Guerby <laurent@guerby.net>
28678 * i-cobol.adb (Valid_Numeric): Handle zero length case.
28680 2005-01-20 Richard Henderson <rth@redhat.com>
28682 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28683 a-intnam-linux.ads and system-linux-alpha.ads.
28684 * a-intnam-linux-alpha.ads: Remove file.
28685 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28686 * system-linux-alpha.ads: New file.
28688 2005-01-18 Jakub Jelinek <jakub@redhat.com>
28691 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28692 set to the new string.
28694 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
28696 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28699 2005-01-18 Richard Henderson <rth@redhat.com>
28701 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28702 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28704 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28706 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
28708 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28709 (GCC_ZCX_Support): Likewise.
28711 2005-01-11 Bastian Blank <waldi@debian.org>
28713 * system-linux-s390.ads: Define Preallocated_Stacks.
28714 * system-linux-s390x.ads: Likewise.
28716 2005-01-04 Arnaud Charlet <charlet@adacore.com>
28718 * gnat_ugn.texi: Fix texi errors with null variables.
28720 2005-01-03 Thomas Quinot <quinot@adacore.com>
28722 * gen-soccon.c: New utility program to generate g-soccon.ads
28725 * socket.c, gsocket.h: Split inclusion of system header files into a
28726 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28728 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28729 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28730 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28731 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28732 should not be edited by hand anymore, but should be regenerated using
28735 2005-01-03 Robert Dewar <dewar@adacore.com>
28736 Ed Schonberg <schonberg@adacore.com>
28737 Vincent Celier <celier@adacore.com>
28739 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28740 on/off, since this is an obsolescent feature, for which we now generate
28743 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28744 warning mode is set and obsolescent usage of this attribute occurs.
28745 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28746 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28747 predates, and partly motivates, the adoption of the AI.
28748 Implement new Ada 2005 attribute Mod
28750 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28753 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28755 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28756 pragma restrictions.
28757 New entry for Ada 2005 attribute Mod.
28760 Add recognition of new pragma Restrictions No_Dependence
28761 Recognize restriction No_Obsolescent_Features at parse time
28763 * bcheck.adb: Add circuitry for checking for consistency of
28764 No_Dependence restrictions.
28766 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28769 * restrict.ads, restrict.adb: Add subprograms to deal with
28770 No_Dependence restrictions.
28772 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28775 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28776 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28778 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28779 dummy parameter to scng instantiation.
28780 Needed for new restriction No_Obsolescent_Features
28782 * scn.adb: (Obsolescent_Check): New procedure
28783 Needed for new restriction No_Obsolescent_Features
28785 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28786 specified by AI-285, needed for implementation of AI-388 (adding greek
28787 pi to Ada.Numerics).
28788 Add new generic formal to scng, needed for new restriction
28789 No_Obsolescent_Features.
28791 * s-rident.ads: Add new restriction No_Obsolescent_Features.
28793 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28794 restrictions lines.
28795 (Scan_ALI): When finding an unexpected character on an R line, raise
28796 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28797 Ignore_Errors is True, default restrictions are set and scanning of the
28798 ALI file continues with the next line. Also, when Bad_R_Line is raised
28799 and Ignore_Errors is True, skip to the end of le line.
28801 * sem_ch10.adb: Check that explicit with's do not violate
28802 No_Dependence restrictions.
28803 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28804 illegal context clauses containing child units of instance.
28806 * sem_prag.adb: Processing and checking for new No_Dependence
28808 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28809 analyze and check the External argument.
28811 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28813 2005-01-03 Robert Dewar <dewar@adacore.com>
28815 * atree.adb: Add a fifth component to entities
28816 This allows us to add 32 flags and four new fields
28818 * atree.ads: Add a fifth component to entities
28819 This allows us to add 32 flags and four new fields
28821 * einfo.ads, einfo.adb: Document new fields and new flags now available
28822 Add routines for printing new fields
28824 * treepr.adb: Call routines to print out additional fields if present
28826 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28828 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28829 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28831 * Makefile.in: Add support to build shared Ada libraries on solaris x86
28832 Remove gpr2make, replaced by gprmake.
28833 Remove references to gnatmem and libaddr2line.
28834 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28835 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28836 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28837 a-numaux-darwin.ads and a-numaux-darwin.adb
28838 Enable mlib-tgt-lynxos.adb on lynxos.
28840 * Make-lang.in: Remove rules for gpr2make.
28841 When generating sdefault.adb, do not call Relocate_Path
28842 on S3 for function Target_Name, as it is not a path.
28843 Remove references to gnatmem and libaddr2line.
28845 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28848 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
28850 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28851 address is incompatible with its base type alignment constraints when
28852 this can be decided statically.
28854 2005-01-03 Olivier Hainque <hainque@adacore.com>
28856 * decl.c (compatible_signatures_p): New function. The intended purpose
28857 is to check if two function signatures for a call-site and a callee are
28858 compatible enough for the call to be valid. The underlying purpose is
28859 to check if a call to a mapped builtin is using the right interface.
28860 The current code actually does not check antyhing - this a placeholder
28861 for future refinements.
28862 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28863 builtin calls for convention Intrinsic.
28865 * gigi.h (builtin_decl_for): Declare (new function).
28867 * utils.c (gnat_install_builtins): Install the target specific builtins.
28868 (builtin_decl_for): New function, provide a dummy body for now.
28870 2005-01-03 Geert Bosch <bosch@adacore.com>
28872 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28873 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28874 (Pred): Implement in terms of Succ.
28876 * trans.c (convert_with_check): Reimplement conversion of float to
28879 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28880 Vincent Celier <celier@adacore.com>
28882 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28883 bounds can be negative, and must be declared Int, not Nat.
28885 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28886 array is checked after using the index in the array.
28888 * makegpr.adb (Add_Switches): Check if there is a package for the
28889 processor. If there is no package, do not look for switches.
28891 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28893 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28894 generation of predefined stream operations (specs and bodies) should
28895 proceed. Under various restrictions these subprograms must not be
28898 2005-01-03 Thomas Quinot <quinot@adacore.com>
28901 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28902 amount of PCS-specific code in RACW stubs generation.
28903 (Copy_Specification): Set Etype on copied formal parameter entities, as
28904 this information is needed for PolyORB stubs generation.
28905 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28906 variable Dynamic_Async.
28907 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28908 (Build_RPC_Receiver_Specification): Make generic again, as recent
28909 changes have allowed RPC receivers to have the same profile for both
28910 variants of the PCS.
28911 Reorganise RPC receiver generation to reduce differences between the
28912 structure of GARLIC and PolyORB RPC receivers.
28913 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28915 Simplify elaboration code for RCI packages.
28917 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28918 generation to reduce differences between the structure of GARLIC and
28919 PolyORB RPC receivers.
28921 * s-stratt.adb: Fix typo in comment.
28923 2005-01-03 Thomas Quinot <quinot@adacore.com>
28925 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28926 copied from Make_Init_Call).
28928 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28929 reads and assignments on a temporary variable declared with appropriate
28932 2005-01-03 Robert Dewar <dewar@adacore.com>
28934 * i-c.adb (To_C): Raise CE if string is null and Append_Null
28936 2005-01-03 Robert Dewar <dewar@adacore.com>
28938 * i-cstrin.adb (Update): Do not append a null in form called with a
28939 String. This avoids unintended behavior.
28941 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28944 * init.c: Fix warnings on Free BSD section.
28946 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28949 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28952 2005-01-03 Vincent Celier <celier@adacore.com>
28954 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28955 libraries when Unique_Compile is True (-u switch).
28958 2005-01-03 Robert Dewar <dewar@adacore.com>
28960 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28961 upper case letter or underscore after W, as allowed by spec.
28963 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28965 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28966 darwin port by using proper type definitions from header files.
28967 Use SIGTERM instead of SIGABRT for SIGADAABORT.
28969 2005-01-03 Robert Dewar <dewar@adacore.com>
28971 * par.adb: Enhance error message handling for configuration file
28974 2005-01-03 Robert Dewar <dewar@adacore.com>
28976 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28977 removed during the previous update (test properly for case of dividing
28978 largest negative number by -1, which generates overflow).
28980 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28981 Sergey Rybin <rybin@adacore.com>
28983 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28984 to use as the defining identifier for a formal package.
28985 (Remove_Parent): If the instance takes place within (an instance of)
28986 a sibling, preserve private declarations of common parent.
28988 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28990 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28991 to determine whether one of the operands is a fixed-point type for
28992 which a user-defined multiplication or division operation might be
28995 * sem_res.adb (Valid_Conversion): The legality rules for conversions
28996 of access types are symmetric in Ada 2005: either designated type can
28999 2005-01-03 Vincent Celier <celier@adacore.com>
29001 * s-fileio.adb (Temp_File_Record): Change length of string component
29002 Name from L_tmpnam + 1 to max_path_len + 1.
29004 2005-01-03 Arnaud Charlet <charlet@adacore.com>
29006 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
29007 Self_Id.Deferral_Level = 0.
29008 (Do_Pending_Action): Move this function to the spec.
29010 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
29011 Do_Pending_Action explicitely when needed, in case we're using
29012 No_Abort restrictions.
29014 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
29015 deferral level since it will not get changed by the generated code.
29016 Keeping a default value of 1 would prevent some operations (e.g.
29017 select or delay) to proceed successfully.
29019 2005-01-03 Ben Brosgol <brosgol@adacore.com>
29020 Robert Dewar <dewar@adacore.com>
29021 Cyrille Comar <comar@adacore.com>
29023 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
29024 porting guide chapter (vms version).
29025 Revised doc title (removed "for native platforms") and subtitle.
29026 Add discussion on warning flag for obsolescent features. First we
29027 note that it applies to obsolete GNAT features, which was previously
29028 omitted. Second we contrast the behavior with that of the new
29029 Ada 2005 AI-368 restriction No_Obsolescent_Features.
29030 Preliminary rewriting of GNAT & libraries chapter in order to take
29031 into account default project locations & new project manager
29034 2005-01-03 Robert Dewar <dewar@adacore.com>
29036 * cstand.adb (Create_Operators): Clean up format and documentation of
29037 unary and binary operator result tables. No change in code, just
29038 reformatting and addition of comments.
29040 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
29041 sem_ch2.adb: Minor reformatting
29043 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29044 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29045 comments for Tree_Read and Tree_Write.
29047 2005-01-03 Pascal Obry <obry@adacore.com>
29049 * exp_attr.ads: Minor reformatting.
29051 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
29053 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29056 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29058 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29059 whether the ancestor type is private, as may be the case with nested
29062 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
29065 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29067 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
29069 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29070 * utils2.c (build_unary_op): Likewise.
29072 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29074 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29076 2004-12-19 Richard Henderson <rth@redhat.com>
29078 * trans.c (gigi): Update gimplify_body call.
29080 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
29082 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29084 2004-12-07 Ed Falis <falis@adacore.com>
29086 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29087 current task being suspended.
29089 * init.c (__gnat_clear_exception): added to reset VxWorks exception
29091 (__gnat_map_signal): removed test for current task being suspended.
29093 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29095 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29096 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29097 targets (such as AAMP).
29099 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29101 * atree.adb (Visit_Itype): Create a new name for the generated itype,
29102 because the back-end may otherwise treat it as a redefinition of the
29105 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
29107 * back_end.adb (Scan_Back_End_Switches): Accept --param.
29109 * lang-specs.h: Accept --param.
29111 2004-12-07 Vincent Celier <celier@adacore.com>
29113 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29114 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29115 Current_Body_Suffix => Ada_Body_Suffix).
29116 Take into account Externally_Built attribute.
29118 * clean.adb (In_Extension_Chain): Always return False when one of the
29119 parameter is No_Project.
29120 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29121 Ada_Language_Index).
29122 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29123 Process_Languages for procedure Parse).
29125 * gnatcmd.adb (Carg_Switches): New table.
29126 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29127 Adapt to name changes in package Prj (Current_Spec_Suffix =>
29128 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29130 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29131 Header_Num and function Hash are now declared in package Prj,
29134 * prj.adb (Suffix_Of): New function.
29135 (Set (Suffix)): New procedure.
29136 (Hash): One function moved from Prj.Com
29137 (Is_Present, Language_Processing_Data_Of): New functions
29138 (Set): Two new procedures
29139 (Add_Language_Name, Display_Language_Name): New procedures
29141 * prj.ads: (Suffix_Of): New function
29142 (Set (Suffix)): New procedure
29143 Add several types and tables for multi-language support.
29144 (Header_Num): Type moved from Prj.Com
29145 (Hash): Two functions moved from Prj.Com
29146 (Is_Present, Language_Processing_Data_Of): New functions
29147 (Set): Two new procedures
29148 (Add_Language_Name, Display_Language_Name): New procedures
29149 (Naming): Component name changes:
29150 Current_Spec_Suffix => Ada_Spec_Suffix,
29151 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29152 Impl_Suffixes, Supp_Suffixes.
29153 (Project_Data): New components: Externally_Built, Supp_Languages,
29154 First_Language_Processing, Supp_Language_Processing, Default_Linker,
29155 Default_Linker_Path.
29157 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29158 new package Language_Processing with its attributes (Compiler_Driver,
29159 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29160 Binder_Driver, Default_Linker).
29162 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29163 (Header_Num): Type moved to package Prj
29165 * prj-env.adb: Adapt to name changes in package Prj
29166 (Current_Spec_Suffix => Ada_Spec_Suffix,
29167 Current_Body_Suffix => Ada_Body_Suffix).
29169 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29170 default to the project path, except the "-" is one of the directories
29171 in env var ADA_PROJECT_PATH.
29172 (Current_Project_Path): Global variable, replacing Project_Path
29173 that was in the body of Prj.Part.
29174 (Project_Path): New function
29175 (Set_Project_Path): New procedure
29176 Initialize Current_Project_Path during elaboration of the package
29177 Remove dependency on Prj.Com, no longer needed
29179 * prj-ext.ads (Project_Path): New function
29180 (Set_Project_Path): New procedure
29182 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29183 suffix is defined for language <lang>.
29184 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29185 accessing directly the components of Naming.
29186 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29187 Reorganise of this package.
29188 Break procedure Check in several procedures.
29190 * prj-nmsc.ads: Replace all procedures (Ada_Check,
29191 Other_Languages_Check and Language_Independent_Check) with a single
29194 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29195 Process_Languages, no longer needed.
29197 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29198 Current_Project_Path.
29199 Remove elaboration code, moved to the body of Prj.Ext
29200 Use new function Prj.Ext.Project_Path instead of old variable
29202 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29203 When comparing with project paths on the stack, first put the resolved
29204 path in canonical case.
29205 (Parse_Single_Project): Set the path name of the project file in the
29206 tree to the normalized path.
29208 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29209 parameter Process_Languages, no longer needed.
29210 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29211 Other_Languages_Check.
29213 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29214 to store the resolved canonical path of the project file.
29215 Remove dependency to Prj.Com, no longer needed
29217 * prj-util.adb: Adapt to name changes in package Prj
29218 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29221 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29222 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29223 Externally_Built, Include_Option, Language_Processing.
29225 * makegpr.adb: Numerous changes due to changes in packages
29228 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29229 default to the project path, except whe "-" is one of the directories
29230 in env var ADA_PROJECT_PATH.
29231 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29233 2004-12-07 Robert Dewar <dewar@adacore.com>
29235 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29237 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29240 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29241 flag. No longer needed now that we handle this in gnat1drv.adb.
29243 * repinfo.ads: Minor reformatting
29245 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29246 Olivier Hainque <hainque@adacore.com>
29247 Eric Botcazou <ebotcazou@adacore.com>
29249 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29250 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29251 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29252 of a bitfield, which we know is useless and causes trouble because of
29253 alignment implications.
29255 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29257 (process_attributes): Clear DECL_COMMON again when a section attribute
29259 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29260 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29261 (create_field_decl): Special case ADDRESSABLE negative to mean
29262 "no bitfield creation", to be used by make_aligning_type. Don't
29263 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29264 fields claimed addressable still have to be bitfields. Use
29265 value_factor_p instead of a raw binop construction to check for the
29266 position's alignment.
29268 2004-12-07 Geert Bosch <bosch@adacore.com>
29270 * eval_fat.adb: Revert previous change.
29272 2004-12-07 Thomas Quinot <quinot@adacore.com>
29273 Ed Schonberg <schonberg@adacore.com>
29275 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29276 with an implicit dereference as its prefix, use
29277 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29278 an explicit dereference. This ensures that a reference to the original
29279 prefix is generated, if appropriate.
29281 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29282 dereference is rewritten to an explicit one, generate a reference to
29283 the entity denoted by its prefix using the original prefix node, so
29284 the dereference can be properly recorded as a read of the denoted
29285 access value, if appropriate.
29287 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29288 emitting 'assigned but never read' warning on a variable on the basis
29289 that it has an access type.
29290 (Check_References): Emit unreferenced warning when the scope is a
29293 2004-12-07 Robert Dewar <dewar@adacore.com>
29294 Ed Schonberg <schonberg@adacore.com>
29296 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29299 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29300 leaving call unchanged.
29301 This deals with the case where the pragma Import specified
29302 an external name, to be handled by the back end.
29304 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29305 subprogram which is Imported with convention Intrinsic if an
29306 External_Name argument is specified.
29307 (Process_Import_Or_Interface): Properly diagnose link name argument.
29308 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29309 with Sem_Ch6.Cannot_Inline.
29310 (Process_Inline): Provide separate warning for inapplicable inline
29312 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29313 treatment is uniform on different targets.
29315 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29317 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29318 construct is rewritten, preserve end label to permit source navigation.
29320 2004-12-07 Thomas Quinot <quinot@adacore.com>
29322 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29323 Specific_Build_Stub_Target): New subprograms.
29324 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29325 the PCS implementation used, using the above PCS-customized subprograms.
29326 Minor reformatting.
29327 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29328 for generation of DSA code targeted to the PolyORB PCS.
29329 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29330 implementation of the partition communication subsystem in ancillary
29332 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29333 PolyORB_Support.Build_Stub_Type): New subrograms containing the
29334 PCS-specific part of Add_Stub_Type.
29335 (Insert_Partition_Check): Use runtime library function to perform
29338 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29339 (RE_Same_Partition): New entity, from s-parint.
29341 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29343 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29345 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29346 Output the copyright message on a separate line from the version
29349 2004-12-07 Joel Brobecker <brobecker@adacore.com>
29351 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29352 compile-time warning.
29354 2004-12-07 Robert Dewar <dewar@adacore.com>
29356 * g-regpat.adb: (Match): Change a misuse of or to or else
29358 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29361 (Generate_Reference): Handle properly a reference to an entry formal,
29362 when an accept statement has a pragma Unreferenced for it.
29364 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29365 and the Has_Pragma_Unreferenced flag for each formal before analyzing
29366 the body, to ensure that warnings are properly emitted for each accept
29367 statement of a given task entry.
29369 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
29371 * Makefile.in: Add support for foreign threads on VMS.
29373 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29375 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29377 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29379 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29381 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29383 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29385 2004-12-07 Robert Dewar <dewar@adacore.com>
29387 * nlists.adb (Prepend_Debug): Remove parameters and nest within
29389 (Remove_Next_Debug): Same fix
29391 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29392 maintain back pointers now, though we did not used to, and comments
29394 (Prepend): Remove pragma Inline.
29395 (Remove_Next): Same cleanup
29397 2004-12-07 Thomas Quinot <quinot@adacore.com>
29399 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29400 used to record an implicit dereference as a read operation on its
29401 prefix when operating under -gnatc. Necessary to avoid spurious
29402 'variable assigned but never read' warnings in that mode.
29403 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29404 is a non-overloaded implicit dereference, call the above subprogram to
29405 ensure proper recording of references.
29407 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29409 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29410 to be resolved later as part of Analyze_Iteration_Scheme's call to
29413 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29415 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29416 prefix is not a scalar type, place error message on prefix, not on
29419 2004-12-07 Bernard Banner <banner@adacore.com>
29421 * vxaddr2line.adb: Add support for x86 vxworks
29423 2004-12-07 Thomas Quinot <quinot@adacore.com>
29425 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29426 documentation of the behaviour of these functions when passed an IP
29427 address that has no record in the system hosts database and no reverse
29430 * cstand.adb, a-tags.ads: Fix typos in comment.
29432 2004-12-07 Robert Dewar <dewar@adacore.com>
29434 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29435 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29436 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29437 s-poosiz.ads: Minor reformatting
29439 * make.adb: Minor reformatting
29440 Add some ??? comments asking for more comments
29442 * s-poosiz.adb: Minor reformatting
29443 Add comments on alignment requirement
29445 * sinfo.ads: Remove obsolete comment and fix typo.
29447 2004-12-07 Vincent Celier <celier@adacore.com>
29448 Sergey Rybin <rybin@adacore.com>
29450 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29451 Files" with the new tool and package names.
29452 Reformatting to suppress most of the warnings for line too long
29453 Document the new section "Project Search Path:" in the output of
29455 Add gnatmetric section
29457 2004-12-07 Vincent Celier <celier@adacore.com>
29459 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29460 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29461 and -eit to -ept. Added qualifier
29462 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29464 2004-11-27 Andreas Schwab <schwab@suse.de>
29466 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29468 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29470 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29471 internal implementation unit GNAT.Sockets.Thin,
29472 as their usage for sockets is non-portable (using the read and write
29473 functions from the system runtime library is fine on UNIX but won't
29474 work under Windows).
29476 * mingw32.h: Update copyright notice.
29478 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29480 * ada-tree.h: Minor reformatting of previous change to avoid lines
29481 longer than 79 characters.
29483 2004-11-25 Olivier Hainque <hainque@adacore.com>
29485 * tb-gcc.c: GCC infrastructure based implementation of
29488 2004-11-24 Steven Bosscher <stevenb@suse.de>
29490 * misc.c (gnat_post_options): Don't clear
29491 flag_inline_functions.
29493 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
29496 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29499 2004-11-21 Andreas Jaeger <aj@suse.de>
29501 * stylesw.adb: Change Style_Check_Subprogram_Order to
29502 Style_Check_Order_Subprograms.
29504 2004-11-18 Arnaud Charlet <charlet@adacore.com>
29506 * adaint.h, adaint.c
29507 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29509 Add also a cast to kill another warning.
29510 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29511 parameter with the priority class of the parent process instead of
29512 always using the NORMAL_PRIORITY_CLASS.
29513 (__gnat_dup): New function.
29514 (__gnat_dup2): New function.
29515 (__gnat_is_symbolic_link): Enable the effective body of this
29516 function when __APPLE__ is defined.
29518 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29521 2004-11-18 Olivier Hainque <hainque@adacore.com>
29523 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29524 address of which may be used to represent "others" and "all others"
29525 choices in exception tables, instead of the current harcoded
29526 (void *)0 and (void *)1.
29527 (Setup_Exception): Do nothing in the GNAT SJLJ case.
29529 * gigi.h (others_decl, all_others_decl): New decls representing the
29530 new Others_Value and All_Others_Value objects.
29531 (struct attrib): Rename "arg" component as "args", since GCC expects a
29532 list of arguments in there.
29534 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29535 corresponding objects exported by a-exexpr, instead of hardcoded dummy
29538 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29539 others_decl and all_others_decl instead of hardcoded dummy addresses
29540 to represent "others" and "all others" choices, which is cleaner and
29541 more flexible with respect to the possible eh pointer encoding policies.
29543 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29544 (process_attributes): Account for the naming change of the "args"
29545 attribute list entry component.
29547 * decl.c (build_attr_list): Rename into prepend_attributes to allow
29548 cumulating attributes for different entities into a single list.
29549 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29550 attributes for the current entity and propagate first subtype
29551 attributes to other subtypes.
29552 <E_Procedure>: Attribute arguments are attr->args and not
29553 attr->arg any more.
29554 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29555 argument provided, as this is what GCC expects. Use NULL_TREE instead
29558 2004-11-18 Robert Dewar <dewar@adacore.com>
29560 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29561 Minor reformatting througout (including new function specs)
29562 Add ??? comments asking for clarification.
29564 2004-11-18 Thomas Quinot <quinot@adacore.com>
29566 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29567 incomplete duplicate implementation of this subprogram from butil.
29569 2004-11-18 Thomas Quinot <quinot@adacore.com>
29571 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29572 procedures factors the common processing for building an RPC receiver
29573 for an RCI package or an RACW type.
29574 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29575 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29576 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29578 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29580 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29582 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29583 distribution subprogram identifiers that are either subprogram numbers
29585 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29586 string distribution identifiers assigned to a given subprogram.
29587 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29588 (Add_RAS_Dereference_TSS): Add comments.
29589 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29590 is not referenced yet because it will be used by the PolyORB DSA
29592 (Insert_Partition_Check): Remove fossile code.
29593 (First_RCI_Subprogram_Id): Document this constant.
29594 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29596 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29597 replaced with calls to Get_Library_Unit_Name_String. Previously there
29598 were several instances of the same code in different locations in the
29599 compiler; this checkin completes the replacement of all of these
29600 instances with calls to a common subprogram.
29601 Minor reformatting.
29603 * sem_dist.adb: Remove comment noting that RPC receiver generation
29604 should be disabled for RACWs that implement RASs.
29605 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29607 * sem_util.ads, sem_util.adb (Has_Stream): New function
29608 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29609 qualified name of a library unit into the name buffer.
29610 (Note_Possible_Modification): Generate a reference only
29611 if the context comes from source.
29613 * snames.ads (PCS_Names): New subtype corresponding to names of
29614 supported implementations of the Partition Communication Subsystem
29615 (PCS) (i.e. the runtime library support modules for the distributed
29618 2004-11-18 Robert Dewar <dewar@adacore.com>
29619 Ed Schonberg <schonberg@adacore.com>
29621 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29622 (Has_Rep_Pragma): New function
29623 (Has_Attribute_Definition_Clause): New function
29624 (Record_Rep_Pragma): Moved here from sem_ch13.adb
29625 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29627 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29629 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29630 (Expand_Pragma_Psect_Object): New procedure
29631 These procedures contain the revised and cleaned up processing for
29632 these two pragmas. This processing was formerly in Sem_Prag, but
29633 is more appropriately moved here. The cleanup involves making sure
29634 that the pragmas are properly attached to the tree, and that no
29635 nodes are improperly shared.
29637 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29638 pragmas to Exp_Prag, which is more appropriate.
29639 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29640 check for duplicates Remove use of Is_Psected flag, no longer needed.
29641 Use new Make_String_Literal function with string.
29643 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29644 that are functions return universal values, that have to be converted
29645 to the context type.
29646 Use new Make_String_Literal function with string.
29647 (Get_Stream_Convert_Pragma): New function, replaces the use of
29648 Get_Rep_Pragma, which had to be kludged to work in this case.
29650 * freeze.adb: Use new Has_Rep_Pragma function
29652 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29653 function with string.
29654 Use new Has_Rep_Pragma function.
29656 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29659 2004-11-18 Robert Dewar <dewar@adacore.com>
29661 * errout.ads, errout.adb: (First_Sloc): New function
29663 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29664 check (-gnatyx) instead of being included as a redundant construct
29667 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29668 Style_Check_Order_Subprograms.
29670 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29671 stylesw.adb: Add Style_Check_Xtra_Parens
29673 * usage.adb: Add line for -gnatyx (check extra parens)
29675 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29677 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29678 Robert Dewar <dewar@adacore.com>
29680 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29681 discriminant of a constrained subtype, analyze the copy of the
29682 corresponding constraint, because in some cases it may be only
29683 partially analyzed.
29684 Removes long-lived ??? comments.
29686 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29687 handled controlled or secondary-stack expressions within the
29688 iteration_scheme of a loop.
29690 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29691 bounds that may contain functions calls, to prevent memory leaks when
29692 the bound contains a call to a function that uses the secondary stack.
29693 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29694 generate temporaries for loop bounds that might contain function calls
29695 that require secondary stack and/or finalization actions.
29697 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29698 selected component and the selector is overloadable (not just a
29699 function) treat as function call, Analyze_Call will disambiguate if
29701 (Analyze_Selected_Component): Do not generate an actual subtype for the
29702 selected component if expansion is disabled. The actual subtype is only
29703 needed for constraint checks.
29704 (Analyze_Allocator): If restriction No_Streams is set, then do
29705 not permit objects to be declared of a stream type, or of a
29706 composite type containing a stream.
29708 * restrict.ads: Remove the a-stream entry from Unit_Array, since
29709 No_Streams no longer prohibits with'ing this package.
29711 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29712 discriminants, but the parent base has unknown discriminants, there is
29713 no discriminant constraint to inherit. Such a discrepancy can arise
29714 when the actual for a formal type with unknown discriminants is a
29715 similar private type whose full view has discriminants.
29716 (Analyze_Object_Declaration): If restriction No_Streams is set, then
29717 do not permit objects to be declared of a stream type, or of a
29718 composite type containing a stream.
29720 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29722 * exp_dbug.ads: Update documentation to reflect simpler encoding for
29723 protected operations.
29725 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29726 generated name, it complicates decoding in gdb and hinders debugging
29727 of protected operations.
29728 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29729 flag for the protected entry barrier function.
29730 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29731 flag for the protected entry function.
29733 2004-11-18 Nicolas Setton <setton@adacore.com>
29735 * expect.c: Define __unix__ when __APPLE__ is defined.
29737 * Makefile.in: Inform the value of the variable GMEM_LIB in the
29738 Darwin-specific section.
29740 * lang-specs.h: Change the placement of the %1 marker.
29741 Works around the fact that gcc adds -fPIC by default under Darwin.
29743 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29745 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29746 type of the object with the packed array type, set the Analyzed flag
29747 on the object if it is an entity or simple indexed component, to avoid
29748 spurious type errors.
29750 2004-11-18 Gary Dismukes <dismukes@adacore.com>
29752 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29753 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29754 separate line from the version message.
29756 2004-11-18 Ed Falis <falis@adacore.com>
29758 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29760 (init_float): Eliminate initialization of floating point status for
29761 AE653. The instructions have no effect for vThreads.
29763 2004-11-18 Vincent Celier <celier@adacore.com>
29765 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29766 gnatbind is invoked with -shared.
29768 2004-11-18 Jose Ruiz <ruiz@adacore.com>
29770 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29771 for Detect_Blocking which is redundant with the check done within the
29772 procedure Protected_Single_Entry_Call.
29773 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29774 Detect_Blocking which is redundant with the check done within the
29775 procedure Protected_Single_Entry_Call.
29777 2004-11-18 Vincent Celier <celier@adacore.com>
29779 * makegpr.adb (Compile): Put the compiling switches (in package
29780 Compiler and on the command line) immediately after "-c", instead of
29781 at the end of the command line invocation of the compiler, when
29782 compiling a non-Ada file.
29783 (Build_Global_Archive): When there is no need to rebuild the archive,
29784 set Global_Archive_Exists, so that the archive is passed to the linker
29787 2004-11-18 Robert Dewar <dewar@adacore.com>
29788 Sergey Rybin <rybin@adacore.com>
29791 Remove extra paren check from list of checks for redundant constructs
29792 Add documentation of new -gnatyx style check (check extra parens)
29793 Remove paragraph about gnatelim debug options.
29795 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29796 objects rather than forbidding dependencies on the package Ada.Streams.
29798 * sinfo.ads: Add ??? note that we should document pragmas passed to
29801 * g-expect.ads: Fix a few typos in the comments.
29803 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29805 * misc.c (gnat_handle_option): Use %< and %> for quoting in
29808 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29810 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29812 2004-11-07 Andreas Schwab <schwab@suse.de>
29814 * Makefile.in (install-gnatlib): Remove spurious hyphen.
29816 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
29819 * Makefile.in (darwin): Set soext to .dylib.
29821 2004-10-26 Vincent Celier <celier@gnat.com>
29822 Thomas Quinot <quinot@act-europe.fr>
29824 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29825 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29826 there is no use of GNAT.Sockets.Constants.
29827 Remove remaining pragma Import for C_Write
29828 Remove C_Read and C_Write from internal implementation unit
29829 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29830 the read and write functions from the system runtime library is fine
29831 on UNIX but won't work under Windows).
29833 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29834 (Check_Selector): Use C_Recv instead of C_Read.
29835 Selectors are the GNAT.Sockets abstraction to perform a select()
29836 call on a set of descriptors. To allow abortion of an ongoing
29837 select operation, some data is written to a dedicated socket that
29838 is always monitored.
29839 Under Windows, the write and read library functions cannot operate
29840 on sockets, so we need to use send and recv instead, which is portable
29841 across all supported platforms.
29843 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29844 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29845 (using the read and write functions from the system runtime library is
29846 fine on UNIX but won't work under Windows).
29848 2004-10-26 Nicolas Setton <setton@act-europe.fr>
29850 * mlib-tgt-darwin.adb: New file.
29852 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29853 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29854 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29855 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29858 * Makefile.in: Add support for building shared libraries under Darwin.
29859 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29860 the low level EH init subprogram to be called from __gnat_initialize.
29862 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29863 indicates which options to pass to the archive indexer.
29865 * mlib-utl.adb: Add support for calling ranlib with additional
29866 options. This is needed for instance under Mac OS X.
29867 (Ranlib_Options): New global variable, used to store the potential
29868 options to pass to ranlib.
29869 (Ar): Use Ranlib_Options when spawning ranlib.
29870 (Initialize): Set the value of ranlib option.
29872 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29874 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29875 instead of 8K, to reflect the real potential needs for stack-checking
29878 2004-10-26 Pascal Obry <obry@gnat.com>
29880 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29882 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29883 Windows only the initial thread stack size can be set so it is good to
29884 start we a low stack size.
29885 The OS will adjust the size as needed.
29887 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29888 Nicolas Setton <setton@act-europe.fr>
29890 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29891 "__unix__" instead of "unix".
29892 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29893 sections were just mistakenly ignored. The former is
29894 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29895 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29896 of hpux. This prevents an unwanted definition of the symbol
29897 convert_addresses in adaint.o.
29899 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29901 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29902 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29904 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29906 * a-filico.ads, a-filico.adb: fix incorrect header.
29908 2004-10-26 Javier Miranda <miranda@gnat.com>
29910 * a-ststio.ads: Fix typo in identifier
29912 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29914 * sem_ch4.adb: Minor reformatting.
29916 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29918 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29919 enabled, check the result of unary and binary operations when the
29920 expression is the right-hand side of an assignment.
29922 2004-10-26 Vincent Celier <celier@gnat.com>
29924 * clean.adb (Delete): Do not output warnings when in quiet output and
29925 not in verbose mode.
29926 (Force_Deletions): New Boolean flag, defaulted to False
29927 (Delete): Only delete a file if it is writable, and when
29928 Force_Deletions is True.
29929 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29930 (Usage): Line for new switch -f
29931 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29934 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
29936 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29937 JM type only if its size matches that of the wrapper. When a size is
29938 prescribed and the field is not aliased, remove the wrapper of a JM
29939 type only if the size is not greater than that of the packed array.
29940 (gnat_to_gnu_entity): Change the extension of packed array wrappers
29943 2004-10-26 Geert Bosch <bosch@gnat.com>
29945 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29946 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29947 (Pred): Implement in terms of Succ.
29949 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29951 * exp_aggr.adb (Safe_Component): An aggregate component that is an
29952 unchecked conversion is safe for in-place use if the expression of the
29953 conversion is safe.
29954 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29955 be expandable in place even if the aggregate does not come from source.
29956 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29957 designated object of an allocator in place, rather than building it
29958 first on the stack. The previous scheme forces a full copy of the array,
29959 and may be altogether unsusable if the size of the array is too large
29960 for stack allocation.
29962 2004-10-26 Robert Dewar <dewar@gnat.com>
29964 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29965 compares if the component is atomic.
29967 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29968 array assignment if the component type is atomic.
29970 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29971 Eric Botcazou <ebotcazou@act-europe.fr>
29973 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29974 is aliased and is a by_reference type, do not pass by copy.
29975 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29976 detect whether the call is in the right side of an assignment or
29977 the expression of an object declaration. Recurse on component
29978 association within aggregates.
29979 Call it in the condition that determines whether the temporary is
29980 necessary for correct stack-checking.
29982 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29984 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29985 RACW_Type, used in the PolyORB version.
29986 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29987 version and the GARLIC version.
29989 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29990 Rename RCI_Info to RCI_Locator for better consistency between the
29991 GARLIC and PolyORB versions of the distributed systems annex.
29992 (DSA_Implementation_Name): This enumeration lists the possible
29993 implementations of the Partition Communication Subsystem for the
29994 Distributed Systems Annex (DSA). The three available implementations
29995 are the dummy stub implementation (No_DSA), and two versions based on
29996 two different distribution runtime libraries: GARLIC and PolyORB. Both
29997 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29999 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30002 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
30003 between the GARLIC and PolyORB versions of the distributed systems
30005 Remove RE_Unbounded_Reclaim_Pool since it is unused.
30007 2004-10-26 Gary Dismukes <dismukes@gnat.com>
30009 * gnat1drv.adb: Suppress calling the back end when
30010 Frontend_Layout_On_Target is true.
30012 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30014 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
30015 Set_Read_Only): New subprograms.
30016 These new routines allow the user to set or unset the Owner execute
30017 and Owner write permission flags on a file.
30019 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
30020 GNAT.OS_Lib.Set_Executable instead of rolling our own.
30022 2004-10-26 Matthew Gingell <gingell@gnat.com>
30024 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
30026 2004-10-26 Pascal Obry <obry@gnat.com>
30028 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
30029 memory before the faulting page we properly test the process read
30030 access for this address using appropriate Win32 routine.
30031 (HPUX sections): guard with "__hpux__" instead of "hpux".
30033 2004-10-26 Robert Dewar <dewar@gnat.com>
30035 * lib-xref.adb (Generate_Reference): Don't complain about reference to
30036 entry parameter if pragma Unreferenced set, since we do not properly
30037 handle the case of multiple parameters.
30039 2004-10-26 Vincent Celier <celier@gnat.com>
30041 * prj-env.adb: (Contains_ALI_Files): New Boolean function
30042 (Ada_Objects_Path.Add): For a library project, add to the object path
30043 the library directory only if there is no object directory or if the
30044 library directory contains ALI files.
30045 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30047 2004-10-26 Vincent Celier <celier@gnat.com>
30049 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30050 extension of library projects.
30052 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30053 path defaults to ".:<prefix>/lib/gnat".
30054 (Parse): For an extending all project, allow direct import of a project
30055 that is virtually extended.
30057 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30058 the specified name is directly imported, return its ID. Otherwise, if
30059 an extension of this project is imported, return the ID of the
30062 2004-10-26 Robert Dewar <dewar@gnat.com>
30064 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30065 (Sub3): New procedure, used by Scaled_Divide
30066 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30067 correct more than one instance of failure to propagate carries
30069 (Double_Divide): Handle overflow case of largest negative number
30070 divided by minus one.
30072 * s-arit64.ads (Double_Divide): Document that overflow can occur in
30073 the case of a quotient value out of range.
30076 2004-10-26 Robert Dewar <dewar@gnat.com>
30078 * s-bitops.adb (Bit_Eq): Remove redundant check.
30080 * s-bitops.ads: Minor comment updates
30081 Change some occurrences of Address to System.Address
30083 * s-carsi8.ads: Fix minor cut-and-paste error in comments
30085 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30087 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30088 accessibility check to prefix that is a protected operation.
30090 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30092 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30093 empty, post message on stub.
30095 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30096 Javier Miranda <miranda@gnat.com>
30098 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30099 current instance appears within a unit that is directly in the context
30101 Used to determine whether the body of the instance should be analyzed
30102 immediately after its spec, to make its subprogram bodies available
30103 for front-end inlining.
30104 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30105 constraint is not allowed on the component type (AARM 12.5.3(3))
30107 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30109 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30110 'Storage_Pool): enhance, document & limit detection of non-sharable
30113 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30115 * s-pooglo.ads: Add more documentation now that this pool is properly
30118 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30120 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30121 or protected type with discriminants, do not constrain the
30122 corresponding record type if the subtype declaration has no
30123 discriminant constraints. This can be the case in source code, or in
30124 the subtype declaration created to rename an actual type within an
30127 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30129 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30130 different kind of stub (possibly wrong name for file), do not check
30132 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30133 includes call to some function that returns an unconstrained type, do
30136 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30138 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30139 appear in the code for the main unit. Dependencies among units in the
30140 context of the main unit are established when those other units are
30141 compiled. Otherwise spurious elaboration constraints can generate
30142 incorrect elaboration circularities.
30144 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30145 Ed Schonberg <schonberg@gnat.com>
30147 * sem_util.adb (Is_Aliased_View): Defend against the case where this
30148 subprogram is called with a parameter that is not an object name. This
30149 situation arises for some cases of illegal code, which is diagnosed
30150 later, and in this case it is wrong to call Is_Aliased, as that might
30151 cause a compiler crash.
30152 (Explain_Limited_Type): Refine previous fix to include
30153 inherited components of derived types, to provide complete information.
30155 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30156 is the prival for a protected object.
30157 It is necessary to mark this entity as a variable, in addition to
30158 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30159 modified to avoid checking the Aliased flag on entities that are not
30160 objects. (Checking that flag for non-objects is erroneous and could
30161 lead to a compiler crash).
30163 2004-10-26 Robert Dewar <dewar@gnat.com>
30165 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30166 X_Frac = 0.5, then we know that the number X must be positive.
30167 (Succ): Remove the same redundant test, and also fix the primary test
30168 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30170 (Decompose): Add fuller comments to spec
30172 2004-10-26 Pascal Obry <obry@gnat.com>
30174 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30175 validity (process must have read access). Set to 0 in all other cases.
30176 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30177 violation on Win32.
30178 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30179 segmentation violation.
30181 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30183 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30184 whose type is a constructed subtype of an aliased object with an
30185 unconstrained nominal subtype, convert the actual to the constructed
30186 subtype before taking its address.
30188 2004-10-26 Vincent Celier <celier@gnat.com>
30190 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30191 (Is_Path_Name_Case_Sensitive): New function
30193 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30194 (Base_Name, Simple_Name, Current_Directory, Compose,
30195 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30198 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30199 Vasiliy Fofanov <fofanov@act-europe.fr>
30200 Vincent Celier <celier@gnat.com>
30202 * gnat_ugn.texi: Generalize "finding memory problems" section into a
30203 "memory management issues" section and document some of the useful
30204 memory pools provided as part of the GNAT library.
30205 Remove "virtual" from declaration of A::method2 in
30206 the simple example of Ada/C++ mixed system.
30207 Library Projects may be virtually extended: their virtual extensions
30208 are not Library Projects.
30209 Added section on extending project hierarchies.
30211 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30213 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30215 (__gnat_portable_spawn): Remove const.
30217 * mingw32.h (MAXPATHLEN): Check for previous definition.
30219 2004-10-17 Matthias Klose <doko@debian.org>
30221 * gnatvsn.ads: Set gnat library version to 4.0.
30223 2004-10-05 Vincent Celier <celier@gnat.com>
30225 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30227 2004-10-04 Laurent Guerby <laurent@guerby.net>
30230 * Makefile.in: Define and use RANLIB_FLAGS.
30232 2004-10-04 Pascal Obry <obry@gnat.com>
30234 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30235 other x86 platforms).
30237 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30239 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30240 in general and triggers stack alignment adjustment for thread entry
30241 points on targets where this is necessary.
30243 2004-10-04 Bernard Banner <banner@gnat.com>
30246 * Makefile.in: Add section for powerpc linux
30247 Add variant i-vxwork-x86.ads
30249 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30251 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30253 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30254 table registration calls when need be. Ensures no reference to the crt
30255 ctors symbol are issued in the SJLJ case, which avoids possible
30256 undefined symbol errors in the case of modules to be statically linked
30259 2004-10-04 Javier Miranda <miranda@gnat.com>
30261 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30262 in-line the code corresponding to subprogram Analyze_Actuals. In
30263 addition, analyze the actuals only in case of subprogram call.
30265 2004-10-04 Ed Falis <falis@gnat.com>
30267 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30269 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
30271 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30272 in the documentation.
30274 2004-10-04 Robert Dewar <dewar@gnat.com>
30276 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30278 (Analyze_Block_Statement): Add circuitry to detect following dead code
30279 (Check_Unreachable_Code): Handle case of block exit
30281 2004-10-04 Robert Dewar <dewar@gnat.com>
30283 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30284 (XMatchD): Avoid warning for Logic_Error call
30286 2004-10-04 Robert Dewar <dewar@gnat.com>
30288 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30289 consider expressions buried within a procedure actual to be an actual.
30290 This caused some blowups with uses of packed slices within a procedure
30293 2004-10-04 Robert Dewar <dewar@gnat.com>
30295 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30296 longer need to be initialized to zero.
30297 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30298 initialized to zero.
30300 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30301 considered valid, even if the representation is modular. That's correct
30302 now that we no longer initialize packed modular arrays to zero.
30304 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30305 suffixes. These are now documented as the only cases in which the
30306 debugger ignores outer records.
30307 Previously, the spec allowed arbitrary suffixes for this purpose.
30308 Change name of LJM to JM for packed array pad records
30309 Create separate section on packed array handling, and add a whole new
30310 set of comments to this section describing the situation with packed
30311 modular types and justification requirements depending on endianness.
30313 2004-10-04 Robert Dewar <dewar@gnat.com>
30315 * a-except.adb: Add a comment for last change
30317 * einfo.ads: Minor spelling correction in comment
30319 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30321 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30324 * sem_util.ads: Minor comment update
30326 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30328 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30329 Inline_Always when in Configurable_Run_Time mode.
30331 * sem_prag.adb (Process_Convention): If entity is an inherited
30332 subprogram, apply convention to parent subprogram if in same scope.
30333 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30334 when in Configurable_Run_Time mode.
30336 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30338 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30339 class_wide type after component list has been inherited.
30341 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30343 * sem_ch12.adb (Check_Generic_Actuals): New predicate
30344 Denotes_Previous_Actual, to handle properly the case of a private
30345 actual that is also the component type of a subsequent array actual.
30346 The visibility status of the first actual is not affected when the
30347 second is installed.
30348 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30349 make fully recursive the treatment of formals of packages declared
30351 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30352 the above on exit from an instantiation.
30353 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30354 current instantiation which is now complete.
30355 (Analyze_Package_Instantiation): No instantiated body is needed if the
30356 main unit is generic. Efficient, and avoid anomalies when a instance
30357 appears in a package accessed through rtsfind.
30359 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30361 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30362 do not generate a declaration for a temporary if the call is part of a
30363 library-level instantiation.
30365 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30367 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30368 searching for a limited component to flag.
30370 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30371 expansion of Input, to account for the fact that the implicit call
30372 generated by the attribute reference must freeze the user-defined
30373 stream subprogram. This is only relevant to 'Input, because it can
30374 appear in an object declaration, prior to the body of the subprogram.
30376 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30377 expansion can proceed and further errors uncovered.
30378 (Minor clean up): Fix cases of using | instead of \ for continuation
30381 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30383 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30385 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30386 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30387 Use gcc_assert and gcc_unreachable.
30389 * decl.c (gnat_to_gnu_entity, case object): Check and process a
30390 specified alignment before validating size.
30391 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30392 stripped-down declaration for the type of the inner field when making
30395 * utils.c (finish_record_type): Do not compute the size in units
30396 incrementally. Instead compute it once for the rep clause case.
30397 Use gcc_assert and gcc_unreachable.
30399 2004-10-04 Vincent Celier <celier@gnat.com>
30401 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30403 (Is_Valid_Path_Name): Take '/' as a directory separator.
30405 2004-10-04 Vincent Celier <celier@gnat.com>
30407 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30408 (Extended_Project) only if Extended_Project is defined, to avoid
30410 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30412 (Parse_Single_Project): Ditto.
30414 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30415 Add_To_Project_Path for virtual projects.
30417 2004-10-04 Vincent Celier <celier@gnat.com>
30419 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30420 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30421 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30422 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30423 parameter Options_2.
30425 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30426 Build_Dynamic_Library with an empty Options_2.
30428 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30431 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30432 directory separator, if any.
30433 (Gprmake): Do not allow mains on the command line for library projects.
30434 Do not attempt to link when the project is a library project.
30435 (Library_Opts): New table to store Library_Options.
30436 (Build_Library): If Library_Options is specified, pass these options
30437 when building a shared library.
30439 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30441 * s-tposen.adb (Service_Entry): The object must be always unlocked at
30442 the end of this procedure now that the unlock operation was inserted
30445 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30447 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30448 corresponding to the Preallocated_Stacks flags in System.
30449 (Get_Target_Parameters): Including the processing for
30450 Preallocated_Stacks.
30452 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30453 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30454 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30455 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30456 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30457 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30458 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30459 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30460 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30461 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30462 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30463 used to signal whether the compiler creates the required stacks and
30464 descriptors for the different tasks (when True) or it is done by the
30465 underlying operating system at run time (when False).
30466 It is initially set to False in all targets.
30468 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30469 if it is supported by the target.
30470 (Make_Task_Create_Call): Pass the stack address if it has been
30471 previously created. Otherwise pass a Null_Address.
30473 * snames.adb: Add _stack.
30475 * snames.ads: Add Name_uStack. Required to allow the expander to
30476 statically allocated task stacks.
30478 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30479 Stack_Address argument.
30480 Check that its value is equal to Null_Address because this target does
30481 not support the static stack allocation.
30483 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30485 * usage.adb: Change "pragma inline" to "pragma Inline" in information
30488 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30490 * exp_dist.adb: Split declaration of asynchronous flag out of
30491 Add_RACW_Read_Attribute.
30492 Minor reformatting for better alignment with PolyORB version.
30493 Store the entity for the asynchronous flag of an RACW, rather than the
30494 expression, in the asynchronous flags table. This will allow this flag
30495 to be used in other subprograms beside Add_RACW_Read_Attribute.
30497 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30499 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30500 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30501 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30502 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30503 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
30504 sockets constant MSG_NOSIGNAL (Linux-specific).
30505 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30506 all Send operations.
30507 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30508 from trigerring SIGPIPE.
30509 Rename components to avoid clash with Ada 2005 possible reserved
30511 (Check_Selector): When the select system call returns with an error
30512 condition, propagate Socket_Error to the caller.
30514 2004-10-01 Jan Hubicka <jh@suse.cz>
30516 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30518 2004-09-23 Robert Dewar <dewar@gnat.com>
30521 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30522 instead do this at freeze time (we won't do it if there is an address
30524 Change "pragma inline" to "pragma Inline" in information and error
30526 Minor reformatting.
30528 * freeze.adb (Check_Address_Clause): Remove previous change, not the
30529 right way of doing things after all.
30530 (Freeze_Entity): For object, set Is_Public for imported entities
30531 unless there is an address clause present.
30533 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
30535 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30536 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30537 ensures proper handling of types with rep clauses, which might have
30538 their TYPE_SIZE set already.
30540 2004-09-21 Robert Dewar <dewar@gnat.com>
30542 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30543 packed array types in both little- and big-endian cases. This change
30544 ensures that we no longer count on the unused bits being initialized
30545 for such types (and in particular ensures that equality testing will
30546 only read the relevant bits).
30547 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30548 These changes mean that we no longer need to initialize small packed
30550 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30551 optimization to an LJM field as to its parent field.
30553 * ada-tree.h, trans.c, utils.c, utils2.c:
30554 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30556 2004-09-20 Jan Hubicka <jh@suse.cz>
30558 * utils.c (gnat_finalize): Remove.
30559 (end_subprog_body): Directly call cgraph_finalize_function;
30560 do not lower the nested functions.
30562 2004-09-20 Robert Dewar <dewar@gnat.com>
30565 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30566 if an address clause is present, since that means that the Import
30569 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
30571 * 5tsystem.ads: Removed, no longer used.
30573 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
30574 Zack Weinberg <zack@codesourcery.com>
30576 * ada-tree.def: Use tree_code_class enumeration constants
30577 instead of code letters.
30578 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30579 Update for new tree-class enumeration constants.
30581 2004-09-17 Vincent Celier <celier@gnat.com>
30583 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30584 capabilities of the general project manager.
30586 2004-09-09 Vincent Celier <celier@gnat.com>
30588 * a-direct.ads: Add pragma Ada_05
30589 (Directory_Entry_Type): Give default value to component Kind to avoid
30590 not initialized warnings.
30592 * a-direct.adb (Current_Directory): Remove directory separator at the
30594 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30595 an existing directory.
30596 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30597 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30598 Convert the result to File_Size.
30600 * prj.ads: (Project_Error): New exception
30602 * prj-attr.adb: Except in procedure Initialize, Fail comes from
30603 Prj.Com, not from Osint.
30604 (Attrs, Package_Attributes): Tables moved to private part of spec
30605 (Add_Attribute, Add_Unknown_Package): Moved to new child package
30607 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30608 Prj.Project_Error after call to Fail.
30609 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30610 Fail. Check that package name is not already in use.
30612 * prj-attr.ads: Comment updates to indicate that all subprograms may be
30613 used by tools, not only by the project manager, and to indicate that
30614 exception Prj.Prj_Error may be raised in case of problem.
30615 (Add_Unknown_Package, Add_Attribute): Moved to new child package
30617 (Attrs, Package_Attributes): Table instantiations moved from the body to
30618 the private part to be accessible from Prj.Attr.PM body.
30620 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30621 from new package Prj.Attr.PM.
30622 (Parse_Attribute_Declaration): Call Add_Attribute from new package
30625 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30627 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30628 instead of Elaboration_Checks).
30630 * a-calend.adb: Minor reformatting
30632 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30634 * gigi.h (maybe_pad_type): New declaration.
30635 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30637 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30639 * cuintp.c: Convert to use buildN.
30641 * decl.c (maybe_pad_type): No longer static.
30642 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30644 Convert to use buildN.
30646 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30647 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
30648 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30650 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30651 (gnat_gimplify_expr, case ADDR_EXPR): New case.
30652 Convert to use buildN.
30654 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30655 TREE_READONLY for const.
30656 Convert to use buildN.
30658 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30659 (create_var_decl): Refine when TREE_STATIC is set.
30660 Convert to use buildN.
30662 2004-09-09 Gary Dismukes <dismukes@gnat.com>
30664 * gnat_ugn.texi: Delete text relating to checking of ali and object
30667 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30670 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
30672 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30673 pragmas recognized by GNAT.
30675 * gnat_rm.texi: Document pragma Detect_Blocking.
30677 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30678 raise Program_Error if called from a protected operation.
30680 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30681 the protected action nesting level.
30682 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30683 protected action nesting level.
30684 (Unlock): When pragma Detect_Blocking is active decrease the protected
30685 action nesting level.
30687 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30688 Protected_Action_Nesting.
30690 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30691 Common_ATCB record. It contains the dynamic level of protected action
30692 nesting for each task. It is needed for checking whether potentially
30693 blocking operations are called from protected operations.
30694 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30695 Detect_Blocking is active or not in the partition.
30697 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30698 raise Program_Error if called from a protected operation.
30699 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30700 Program_Error if called from a protected operation.
30701 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30702 Program_Error if called from a protected operation.
30704 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30705 raise Program_Error if called from a protected operation.
30707 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30708 raise Program_Error if called from a protected operation, and increase
30709 the protected action nesting level.
30710 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30711 Program_Error if called from a protected operation, and increase the
30712 protected action nesting level.
30713 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30714 protected action nesting level.
30716 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30717 raise Program_Error if called from a protected operation, and increase
30718 the protected action nesting level.
30719 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30720 Program_Error if called from a protected operation, and increase the
30721 protected action nesting level.
30722 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30723 raise Program_Error if called from a protected operation.
30724 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30725 active, raise Program_Error if called from a protected operation.
30726 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30727 protected action nesting level.
30729 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30730 insertion of the statement raising Program_Error. The run time
30731 contains the required machinery for handling that.
30733 * sem_util.ads: Change comment associated to procedure
30734 Check_Potentially_Blocking_Operation.
30735 This procedure does not insert a call for raising the exception because
30736 that is currently done by the run time.
30738 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30740 * init.c: Add the global variable __gl_detect_blocking that indicates
30741 whether pragma Detect_Blocking is active (1) or not (0). Needed for
30742 making the pragma available at run time.
30743 (__gnat_set_globals): Pass and update the detect_blocking parameter.
30745 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30746 pragma Detect_Blocking is active.
30748 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30750 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30751 DB is found in the ali file. Any unit compiled with pragma
30752 Detect_Blocking active forces its effect in the whole partition.
30754 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30755 Detect_Blocking is active and delay is called from a protected
30758 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30759 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30760 Detect_Blocking is active (0 otherwise).
30761 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30762 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30765 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
30767 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30768 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30771 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30772 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30773 Update API in placeholder implemetation of s-parint to reflect changes
30774 in distribution runtime library.
30776 * sem_ch3.adb (Expand_Derived_Record): Rename to
30777 Expand_Record_Extension.
30779 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30780 primitive operations of potentially distributed object types that have
30781 non-controlling anonymous access formals.
30783 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30785 New implementation of expansion for remote access-to-subprogram types,
30786 based on the RACW infrastructure.
30787 This version of sem_dist is compatible with PolyORB/DSA as well as
30790 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30791 Asynchrronous that applies to a remote access-to-subprogram type, mark
30792 the underlying RACW type as asynchronous.
30794 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30795 __gnat_using_gnu_linker to 1.
30797 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30798 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30799 GNAT.Perfect_Hash_Generators, and remove the empty
30800 GNAT.Perfect_Hash package.
30802 * atree.adb: Minor reformatting
30804 * exp_ch3.adb (Expand_Derived_Record): Rename to
30805 Expand_Record_Extension.
30806 (Build_Record_Init_Proc.Build_Assignment): The default expression in
30807 a component declaration must remain attached at that point in the
30808 tree so New_Copy_Tree copies it if the enclosing record type is derived.
30809 It is therefore necessary to take a copy of the expression when building
30810 the corresponding assignment statement in the init proc.
30811 As a side effect, in the case of a derived record type, we now see the
30812 original expression, without any rewriting that could have occurred
30813 during expansion of the ancestor type's init proc, and we do not need
30814 to go back to Original_Node.
30816 * exp_ch3.ads (Expand_Derived_Record): Rename to
30817 Expand_Record_Extension.
30819 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30820 Returns the RACW type used to implement a remote access-to-subprogram
30822 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30823 New subprograms. Used to create a proxy tagged object for a remote
30824 subprogram. The proxy object is used as the designated object
30825 for RAS values on the same partition (unless All_Calls_Remote applies).
30826 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30827 System.Partition_Interface.Get_Unique_Remote_Pointer.
30828 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30829 Renamed from Add_RAS_*_Attribute.
30830 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30832 New implementation of expansion for remote access-to-subprogram types,
30833 based on the RACW infrastructure.
30835 * exp_dist.ads (Copy_Specification): Update comment to note that this
30836 function can copy the specification from either a subprogram
30837 specification or an access-to-subprogram type definition.
30839 2004-09-09 Ed Schonberg <schonberg@gnat.com>
30841 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30842 in an instance, between an explicit subprogram an one inherited from a
30843 type derived from an actual.
30845 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30846 add a polling call if the subprogram is to be inlined by the back-end,
30847 to avoid repeated calls with multiple inlinings.
30849 * checks.adb (Apply_Alignment_Check): If the expression in the address
30850 clause is a call whose name is not a static entity (e.g. a dispatching
30851 call), treat as dynamic.
30853 2004-09-09 Robert Dewar <dewar@gnat.com>
30855 * g-trasym.ads: Minor reformatting
30857 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30858 packed arrays, since unused bits are expected to be zero for a
30861 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
30863 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30866 2004-09-09 Pascal Obry <obry@gnat.com>
30868 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30869 enable map file generation. Add the right option to generate the map
30870 file if Map_File is set to True.
30872 * gnatdll.adb (Gen_Map_File): New variable.
30873 (Syntax): Add info about new -m (Map_File) option.
30874 (Parse_Command_Line): Add support for -m option.
30875 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30876 Minor reformatting.
30878 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
30880 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30881 new gnatdist implementation.
30882 Define a subpackage isolating the output routines specific to this
30885 2004-09-09 Joel Brobecker <brobecker@gnat.com>
30887 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30889 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30891 2004-09-09 Cyrille Comar <comar@act-europe.fr>
30893 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30896 * opt.ads: Add Ada_Version_Runtime constant used to decide which
30897 version of the language is used to compile the run time.
30899 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
30901 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30902 of variable length temporaries for function return now that the
30903 back-end and gigi support it.
30905 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30907 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30909 * trans.c (struct stmt_group): Delete field GLOBAL.
30910 (gnat_init_stmt_group): Do not initialize it.
30911 (call_to_gnu): Use save_expr, not protect_multiple_eval.
30912 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30913 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30914 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30915 (start_stmt_group): Likewise.
30916 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30918 * utils2.c (ggc.h): Include.
30919 (build_call_raise): Call build_int_cst, not build_int_2.
30921 * utils.c (gnat_init_decl_processing): Fix arg to
30922 build_common_tree_nodes.
30923 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30924 (gnat_define_builtin): Set built_in_decls.
30925 (init_gigi_decls): Call build_int_cst, not build_int_2.
30927 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30928 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30929 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30930 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30931 SET_TYPE_MODULE): Use them.
30932 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30933 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30934 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30935 SET_TYPE_ADA_SIZE): Likewise.
30936 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30937 (DECL_CONST_CORRESPONDING_VAR,
30938 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30939 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30940 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30941 (TYPE_RM_SIZE_NUM): New macro.
30942 (TYPE_RM_SIZE): Modified to use above.
30944 * cuintp.c: (build_cst_from_int): New function.
30945 (UI_To_gnu): Use it.
30947 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30948 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30949 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30950 MIN_EXPR for the size, copy it into new.
30952 2004-09-01 Robert Dewar <dewar@gnat.com>
30954 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30955 packed indexed component where array is an IN OUT formal. This
30956 generated garbage code previously.
30958 * gnat_ugn.texi: Document -fverbose-asm
30960 * gnat-style.texi: Minor updates (note that boolean constants and
30961 variables are joined with AND/OR rather than short circuit forms).
30963 2004-09-01 Ed Schonberg <schonberg@gnat.com>
30965 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30966 it is an upward conversion of an untagged type with no representation
30969 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
30971 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30972 System.Partition_Interface.
30974 * checks.adb (Apply_Access_Checks): Do not generate checks when
30975 expander is not active (but check for unset reference to prefix of
30978 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30979 pragma Debug as an if statement with a constant condition, for
30980 consistent treatment of entity references contained within the
30981 enclosed procedure call.
30983 2004-09-01 Vincent Celier <celier@gnat.com>
30985 * bindgen.adb: (Set_EA_Last): New procedure
30986 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30988 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30989 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30990 linked without errors.
30991 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30993 (Gen_Exception_Table_C): Correct same bugs
30995 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30997 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30998 on Windows, make sure that the drive letter is in upper case.
31000 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
31001 Windows, when the drive letter is added and Case_Sensitive is True, the
31002 drive letter is forced to upper case.
31004 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
31005 to Options_2 for the call to MLib.Utl.Gcc.
31007 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
31008 directory separator when defining BASE_DIR.
31010 2004-09-01 Pascal Obry <obry@gnat.com>
31012 * gprcmd.adb (Extend): Do not output trailing directory separator. This
31013 is not needed and it confuses Windows GNU/make which does not report
31014 directory terminated by a slash as a directory.
31015 (gprcmd): Idem for "pwd" internal command.
31017 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
31018 target names rewrite to fix regressions with recent version of
31019 GNU/make. Starting with GNU/make 3.80 the pipe character was not
31020 handled properly anymore.
31022 2004-09-01 Andreas Schwab <schwab@suse.de>
31024 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
31025 * raise.c [!IN_RTS]: Undef abort.
31027 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
31029 * utils2.c (build_allocator): Use ssize_int.
31031 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
31033 2004-08-27 Andreas Schwab <schwab@suse.de>
31035 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
31037 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31038 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31040 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
31042 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31044 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31045 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31046 * utils.c (init_gigi_decls): Likewise.
31047 * utils2.c (build_call_raise, build_allocator): Likewise.
31049 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
31051 * utils.c (gnat_init_decl_processing): Adjust
31052 build_common_tree_nodes call.
31054 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31056 * utils2.c (build_allocator): Use build_int_cst for negative
31059 2004-08-18 Richard Henderson <rth@redhat.com>
31061 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31063 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
31065 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31067 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31068 (gnat_to_gnu): Likewise.
31070 2004-08-16 Pascal Obry <obry@gnat.com>
31072 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31073 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31074 option and not mdll anymore. Update comment.
31076 2004-08-16 Pascal Obry <obry@gnat.com>
31078 * bld.adb (Put_Include_Project): Properly handle directory separators
31081 2004-08-16 Ed Schonberg <schonberg@gnat.com>
31083 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31084 decreasing the number of allocated junk nodes while searching for the
31085 appropriate subprogram.
31087 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
31089 * cuintp.c (UI_To_gnu): Use build_int_cst..
31090 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31091 * utils.c (init_gigi_decls): Likewise.
31092 * utils2.c (build_call_raise): Likewise.
31094 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
31096 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31097 for a global aliased object with a variable size and an unconstrained
31098 nominal subtype, pretend there is no initializer if the one we have is
31099 incomplete, and avoid referencing an inexistant component in there. The
31100 part we have will be rebuilt anyway and the reference may confuse
31101 further operations.
31103 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
31105 * einfo.ads: Minor reformatting
31107 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31108 restrictions in the ALI if we only want to warn about violations.
31110 2004-08-13 Vincent Celier <celier@gnat.com>
31112 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31113 when creating a new Unit_Record in table Units.
31115 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31116 that are violated, if any.
31118 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31119 add directory separator if path already ends with a directory separator.
31121 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31123 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31124 unit, this is an attempt to inline a construct that is not available in
31125 the current restricted mode, so abort rather than trying to continue.
31127 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31128 discriminants that rename those of the parent, recover names of
31129 original discriminants for the constraint on the full view of the
31131 (Complete_Private_Subtype): Do not create a subtype declaration if the
31132 subtype is an itype.
31134 * gnat_rm.texi: Added section on implementation of discriminated
31135 records with default values for discriminants.
31137 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31140 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31141 the second operand is overloaded.
31143 2004-08-10 Richard Henderson <rth@redhat.com>
31145 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31146 add __builtin_alloca.
31148 2004-08-10 Richard Henderson <rth@redhat.com>
31150 * config-lang.in (boot_language): Yes.
31152 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
31154 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31155 from complaining on potential uninitialized reference.
31156 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31157 new specification and test explicitly for non-zero return value.
31159 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31160 returning C.int, to avoid using a derived boolean type.
31162 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31163 Duplicate_Subexpr_No_Checks in preference to direct use of
31164 Remove_Side_Effects and New_Copy_Tree.
31165 Clear Comes_From_Source on prefix of 'Size attribute reference.
31167 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31168 g-socthi-vxworks.adb: Change calls to
31169 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31170 and test explicitly for non-zero return value.
31172 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31173 (Is_Socket_In_Set): Declare imported function as returning C.int, to
31174 avoid using a derived boolean type.
31176 2004-08-09 Albert Lee <lee@gnat.com>
31178 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31180 2004-08-09 Pascal Obry <obry@gnat.com>
31182 * gnat_ugn.texi: Document new way to build DLLs on Windows using
31183 GCC's -shared option.
31185 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31186 Options_2 parameter (options put after object files).
31188 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
31190 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31191 ignore overflows on low and high bounds of an index to also account for
31192 differences in signedness between sizetype and gnu_index_subtype.
31193 These are as legitimate as the ones caused by a lower TYPE_PRECISION
31196 2004-08-09 Robert Dewar <dewar@gnat.com>
31198 * s-solita.ads, s-solita.adb: Minor reformatting
31200 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31201 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31202 obsolescent section
31203 Add note that No_Implicit_Conditionals does not suppress
31204 run time constraint checks.
31206 * vms_conv.ads: Minor reformatting
31208 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31209 and necessary for following change).
31210 (Mark): Return new format Mark_Id containing sec stack address
31211 (Release): Use sec stack address from Mark_Id avoiding Self call
31213 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31214 pointer (cleanup and necessary for following change).
31215 Define Mark_Id as record containing address of secondary stack, that way
31216 Release does not need to find the stack again, decreasing the number of
31217 calls to Self and improving efficiency.
31219 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31221 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31222 case variable into the individual case branches when possible.
31224 * sem_ch11.adb: Minor reformatting
31226 * prj.ads: Correct spelling of suffixs
31228 * prj-nmsc.adb: Minor reformatting
31229 Correct spelling suffixs throughout (also in identifiers)
31231 * freeze.adb: Minor spelling correction
31233 * exp_ch2.adb: Cleanups to handling of Current_Value
31234 (no functional effect).
31236 * bld.adb: Correct spelling of suffixs
31238 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31240 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31243 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31244 package or of a child, private entities are both immediately_visible
31247 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31249 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31250 there are no range checks on the value of the literal.
31252 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31253 wrapped is the triggering alternative of an asynchronous select, action
31254 statements mustbe inserted before the select itself.
31256 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31257 case where the prefix is a protected function call.
31258 (Resolve_Attribute, case 'Access): The attribute reference on a
31259 subprogram is legal in a generic body if the subprogram is declared
31262 2004-08-09 Vincent Celier <celier@gnat.com>
31264 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31265 languages, otherwise building the library may fail with unresolved
31267 (Compile_Sources): Do not build libraries if -c switch is used
31269 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31270 (Write_Usage): If map file creation is supported, output new switches
31272 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31273 gcc call, when supported.
31275 * Makefile.in: Added indepsw.o to the object list for gnatlink
31276 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31278 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31279 indepsw.adb, indepsw.ads: New files.
31281 2004-08-09 Bernard Banner <banner@gnat.com>
31283 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31285 * Makefile.in: add section for vxworks x86
31287 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31289 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31290 per-object constrained components where the discriminant is of an
31292 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31293 the parent initialization procedure for derived Unchecked_Unions.
31294 Instead, derived Unchecked_Unions build their own initialization
31296 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31297 Check the body of the subprogram for details.
31298 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31299 functions for derived Unchecked_Union types by introducing a condition.
31300 Allow the creation of TSS equality functions for Unchecked_Unions.
31301 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31302 Add formal parameter Discr to function signature. Discr is used to
31303 control the generated case statement for Unchecked_Union types.
31304 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31306 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31308 Check the body of the subprogram for details.
31309 (Expand_Composite_Equality): Augment composite type equality to include
31310 correct handling of Unchecked_Union components.
31311 (Expand_N_In): Add condition to detect illegal membership tests when the
31312 subtype mark is a constrained Unchecked_Union and the expression lacks
31313 inferable discriminants, and build a Raise_Program_Error node.
31314 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31315 to detect types that contain components of unconstrained Unchecked_Union
31316 subtype. Add condition to detect equality between types that have an
31317 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31318 node. Add condition to detect equality between Unchecked_Union types
31319 that lack inferable discriminants, and build a Raise_Program_Error node.
31320 Otherwise build a TSS equality function call.
31321 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31322 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31323 with the operand lacking inferable discriminants, and build a Raise_
31324 Program_Error node.
31325 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31326 composite equality.
31327 (Has_Inferable_Discriminants): Implement new predicate for objects and
31328 expressions of Unchecked_Union type. Check the body of subprogram for
31330 (Has_Unconstrained_UU_Components): Add function
31331 Component_Is_Unconstrained_UU. It is used to detect whether a single
31332 component is of an unconstrained Unchecked_Union subtype. Add function
31333 Variant_Is_Unconstrained_UU. It is used to detect whether a single
31334 component inside a variant is of an unconstrained Unchecked_Union type.
31336 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31337 inferred discriminant values. Add condition to generate a case
31338 statement with an inferred discriminant as the switch.
31339 (Make_Component_List_Assign): Introduce a Boolean flag that determines
31340 the behaviour of the subprogram in the presence of an Unchecked_Union.
31341 Add condition to trigger the usage of the inferred discriminant value
31342 as the generated case statement switch.
31343 (Make_Field_Assign): Introduce a Boolean flag that determines the
31344 behaviour of the subprogram in the presence of an Unchecked_Union. Add
31345 condition to trigger the usage of the inferred discriminant value as
31346 the right-hand side of the generated assignment.
31348 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31349 parameter generation when dealing with Unchecked_Unions.
31351 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31352 checks for Unchecked_Unions.
31354 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31356 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31357 Raise_Program_Error nodes for the execution of Read and Write
31358 attributes of Unchecked_Union types and the execution of Input and
31359 Output attributes of Unchecked_Union types that lack default
31360 discriminant values.
31362 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31363 Unchecked_Union. Add procedure Check_Component. It is used to inspect
31364 per-object constrained components of Unchecked_Unions for being
31365 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31366 check individual components withing a variant.
31368 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31369 comparison of Unchecked_Unions.
31370 (Resolve_Equality_OP): Remove guard that prevents equality between
31373 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31374 of component subtypes for Unchecked_Union components.
31375 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31376 since it is the actual subtype.
31378 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31379 pass of Unchecked_Union subtypes as generic actuals to formal types
31380 that lack known_discriminant_parts or that are derived Unchecked_Union
31381 types, and do nothing. In any other case, produce an error message.
31383 * sem_ch3.adb (Analyze_Component_Declaration): Add function
31384 Contains_POC. It determines whether a constraint uses the discriminant
31385 of an enclosing record type.
31386 Add condition to detect per-object constrained component and set the
31388 (Derived_Type_Declaration): Remove guard that prevents derivation from
31389 Unchecked_Union types.
31390 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31393 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31394 references to Unchecked_Union discriminants.
31396 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31397 formal generation when dealing with Unchecked_Unions.
31398 (Set_Actual_Subtypes): Add condition to prevent generation of actual
31399 subtypes for Unchecked_Unions.
31401 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31402 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31403 completions of discriminated partial views by Unchecked_Unions and
31404 produce an error message.
31406 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31408 * trans.c (struct stmt_group): New field, GLOBAL.
31409 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31410 (struct elab_info): New struct.
31411 (elab_info_list, gnu_elab_proc_stack): New variables.
31412 (Compilation_Unit_to_gnu): New procedure.
31413 (gigi): Call it and also handle elaboration procs we've saved.
31414 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31415 global field from parent.
31416 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31417 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31418 (start_stmt_group): Initialize global field from parent.
31419 (add_decl_expr): Set to global for current statement group.
31420 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31423 * utils.c (global_bindings_p): True when no current_function_decl; no
31424 longer check current_binding_level.
31426 2004-08-09 Ben Brosgol <brosgol@gnat.com>
31428 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31431 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31433 2004-08-06 Andreas Schwab <schwab@suse.de>
31435 * utils.c (gnat_define_builtin): Remove second parameter of
31437 (begin_subprog_body): Likewise.
31439 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
31441 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31442 optimization, not supported by the tree-ssa back-end.
31444 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
31446 * s-mastop-irix.adb: Update comments.
31448 * a-except.adb (Exception_Information): Raise Constraint_Error if
31449 exception Id is Null_Id.
31450 This is required behavior, which is more reliably and clearly checked
31451 at the top level interface level.
31453 2004-07-26 Javier Miranda <miranda@gnat.com>
31455 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31456 call if a component has no default_expression and the box is used.
31458 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31459 default_expression and you use box, it behaves as if you had declared a
31460 stand-alone object.
31461 (Resolve_Record_Aggregate): If a component has no default_expression and
31462 you use box, it behaves as if you had declared a stand-alone object.
31464 * sem_ch10.adb (Install_Siblings): Do not make visible the private
31465 entities of private-with siblings.
31467 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31469 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31470 for a component of an itype, set the parent pointer for analysis,
31471 there is no list in which to insert it.
31473 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31474 bona-fide renamings, not for inherited operations.
31476 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31477 actual for a formal that is an access parameter, create local
31478 finalization list even if the expression is not an aggregate.
31480 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31483 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31484 Diagnose properly illegal subprogram renamings that are library units.
31486 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31489 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31490 conversion rewritten as an unchecked conversion, check that original
31491 expression is a variable.
31493 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31494 unchecked_conversion, create new node rather than rewriting in place,
31495 to preserve original construct.
31497 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31499 * gigi.h (gnat_expand_body): Deleted.
31501 * Make-lang.in: (trans.o): Depends on function.h.
31503 * misc.c: (gnat_expand_body): Moved to here.
31505 * trans.c (gnat_expand_body_1): Deleted.
31506 (gnat_expand_body): Moved from here.
31507 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31508 (add_stmt): Check for marked visited with global_bindings_p.
31509 (gnat_gimplify_expr, case COMPONENT_REF): New case.
31510 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31512 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31513 VIEW_CONVERT_EXPR if not operation type.
31515 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31518 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31519 changes: reformatting of negation operators, removing unneeded
31520 inequality comparison with zero, converting equality comparisons with
31521 zero to negations, changing int/0/1 to bool/false/true, replace calls
31522 to gigi_abort with abort, and various other similar changes.
31524 2004-07-26 Vincent Celier <celier@gnat.com>
31526 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31529 * make.adb (Gnatmake): Fail when a library is not present and there is
31530 no object directory.
31532 * mlib-prj.adb (Check_Library): No need to check if the library needs
31533 to be rebuilt if there is no object directory, hence no object files
31534 to build the library.
31536 * opt.ads (Setup_Projects): New Boolean flag.
31538 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31540 Create directory when Kind /= "" and in "gnat setup". Report error if
31541 directory cannot be created.
31542 (Ada_Check): Create library interface copy dir if it does not exist
31543 and we are in "gnat setup".
31544 (Find_Sources): No error if in "gnat setup" and no Ada sources were
31546 (Language_Independent_Check): Create object directory, exec directory
31547 and/or library directory if they do not exist and we are in
31550 * vms_conv.ads: (Command_Type): New command Setup.
31552 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31554 * vms_data.ads: Add qualifiers/switches for new built-in command
31557 2004-07-25 Richard Henderson <rth@redhat.com>
31559 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31560 DECL_IGNORED_P on RESULT_DECL.
31562 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
31564 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31565 allocation and potentially overflowing update with
31566 Tailored_Exception_Information. Use the sec-stack free procedural
31567 interface to output Exception_Information instead.
31569 * a-except.adb (To_Stderr): New subprogram for character, and string
31570 version moved from a-exextr to be visible from other separate units.
31571 (Tailored_Exception_Information): Remove the procedural version,
31572 previously used by the default Last_Chance_Handler and not any more.
31573 Adjust various comments.
31575 * a-exexda.adb: Generalize the exception information procedural
31576 interface, to minimize the use of secondary stack and the need for
31577 local buffers when the info is to be output to stderr:
31578 (Address_Image): Removed.
31579 (Append_Info_Character): New subprogram, checking for overflows and
31580 outputing to stderr if buffer to fill is of length 0.
31581 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31582 (Append_Info_Address, Append_Info_Exception_Name,
31583 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31584 Append_Info_Basic_Exception_Traceback,
31585 Append_Info_Exception_Information): New subprograms.
31586 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31587 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31588 Exception_Info_Maxlength, Exception_Name_Length,
31589 Exception_Message_Length): New subprograms.
31590 (Exception_Information): Use Append_Info_Exception_Information.
31591 (Tailored_Exception_Information): Use
31592 Append_Info_Basic_Exception_Information.
31593 Export services for the default Last_Chance_Handler.
31595 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31596 other separate units.
31598 2004-07-20 Vincent Celier <celier@gnat.com>
31600 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31602 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31604 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31605 emit itype references for the designated types of component types that
31606 are declared outside of the full record declaration, and that may
31607 denote a partial view of that record type.
31609 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31612 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31613 which is the designated type in an access component declaration, to the
31614 list of incomplete dependents of the parent type, to avoid elaboration
31615 issues with out-of-scope subtypes.
31616 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31617 full view of the parent.
31619 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31622 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31623 entities that are hidden, such as references to generic actuals
31624 outside an instance.
31626 2004-07-20 Javier Miranda <miranda@gnat.com>
31628 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31629 support to the new notation.
31630 (Analyze_Selected_Component): Add call to Try_Object_Operation.
31632 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
31634 * s-taprob.adb: Adding the elaboration code required for initializing
31635 the tasking soft links that are common to the full and the restricted
31638 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31639 restricted run time has been moved to the package
31640 System.Soft_Links.Tasking.
31642 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31643 restricted run time has been moved to the package
31644 System.Soft_Links.Tasking.
31646 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31648 * s-solita.ads, s-solita.adb: New files.
31650 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31652 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31653 Case_Statement_to_gnu): Split off from gnat_to_gnu.
31654 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31655 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31656 Exception_Handler_to_gnu_zcx): Likewise.
31658 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
31660 * gigi.h (builtin_function): Declare.
31662 2004-07-15 Robert Dewar <dewar@gnat.com>
31664 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31667 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31668 access values as an example of a warning.
31670 * gnat_rm.texi: Document new attribute Has_Access_Values
31672 * gnat-style.texi: Document that box comments belong on nested
31675 * sem_util.ads (Has_Access_Values): Improved documentation
31677 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31679 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31680 (Process_Interface_Name): Call to this new procedure
31681 (Set_Extended_Import_Export_External_Name): Call to this new procedure
31683 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31685 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31687 * einfo.ads: Minor comment typo fixed
31689 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
31691 * snames.adb: Add _atcb.
31693 * snames.ads: Add Name_uATCB.
31695 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31696 (in the expanded code) when using the restricted run time.
31698 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31699 a in parameter in order to allow ATCBs to be preallocated (in the
31702 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31703 order to allow ATCBs to be preallocated. In case of error, the ATCB is
31704 deallocated in System.Tasking.Stages.
31706 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31707 order to allow ATCBs to be preallocated.
31709 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31710 here. It was previously done in Initialize_ATCB.
31712 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31714 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31715 Restricted run time.
31717 * exp_ch3.adb: When using the Restricted run time, pass the
31718 preallocated Ada_Task_Control_Block when creating a task.
31720 2004-07-15 Ed Schonberg <schonberg@gnat.com>
31722 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31723 function call that is itself an actual in an enclosing call, diagnose
31724 problem here rather than assuming that resolution will catch it.
31726 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31727 the local copy of a generic unit for a formal package, and the generic
31728 is a child unit, install private part of ancestors before compiling
31729 private part of spec.
31731 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31732 use scope entities rather than tree structures, to handle properly
31733 parent units that are instances rewritten as bodies for inlining
31736 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31737 Remove_Parents): Handle properly a parent unit that is an
31738 instantiation, when the unit has been rewritten as a body for inlining
31741 * par.adb (Goto_List): Global variable to collect goto statements in a
31742 given unit, for use in detecting natural loops.
31744 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31745 use in detecting natural loops.
31747 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31748 backwards goto's, and rewrite as a infinite loop, to improve locality
31751 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31752 subcomponent that includes an indexed reference, to prevent the
31753 generation of copies that would miscompile the desired assignment
31755 (Build_Task_Image_Decls): Add a numeric suffix to
31756 generated name for string variable, to avoid spurious conflicts with
31757 the name of the type of a single protected object.
31759 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31760 loop with an explicit exit statement, to avoid generating an
31761 out-of-range value with 'Succ leading to spurious constraint_errors
31762 when compiling with -gnatVo.
31764 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
31766 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31767 might not be analyzed yet, even if its Etype is already set (case of an
31768 unchecked conversion built using Unchecked_Convert_To, for example).
31769 If the prefix has already been analyzed, this will be a nop anyway.
31771 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31772 controller type, or an assignment of a record type with controlled
31773 components, copy only user data, and leave the finalization chain
31774 pointers untouched.
31776 2004-07-15 Vincent Celier <celier@gnat.com>
31778 * make.adb (Collect_Arguments): Improve error message when attempting
31779 to compile a source not part of any project, when -x is not used.
31781 * prj.ads: (Defined_Variable_Kind): New subtype
31783 * prj-attr.adb (Register_New_Package): Two new procedures to register
31784 a package with or without its attributes.
31785 (Register_New_Attribute): Mew procedure to register a new attribute in a
31787 New attribute oriented subprograms: Attribute_Node_Id_Of,
31788 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31789 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31791 New package oriented subprograms: Package_Node_Id_Of,
31792 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31794 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31796 (Package_Node_Id): Now a private, self initialized type
31797 (Register_New_Package): New procedure to register a package with its
31799 New attribute oriented subprograms: Attribute_Node_Id_Of,
31800 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31801 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31803 New package oriented subprograms: Package_Node_Id_Of,
31804 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31806 * prj-dect.adb (Parse_Attribute_Declaration,
31807 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31809 * prj-makr.adb (Make): Parse existing project file before creating
31810 other files. Fail if there was an error during parsing.
31812 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31813 new spec of Prj.Attr.
31815 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31816 to new spec of Prj.Attr.
31818 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31820 * utils2.c: Fix typo in comment.
31822 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31824 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31825 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31827 2004-07-14 Andreas Schwab <schwab@suse.de>
31829 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31831 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31833 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31835 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31838 * misc.c (gnat_types_compatible_p): New function.
31839 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31840 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31842 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31843 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31844 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31845 (mark_visited): Don't mark dummy type.
31846 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31847 parameter, we must remove any LJM building from GNU_NAME.
31848 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31849 (pos_to_constructor): Use int_const_binop.
31850 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31853 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31854 (gnat_pushlevel): Set TREE_USE on BLOCK node.
31855 (gnat_install_builtins): Add __builtin_memset.
31857 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
31859 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31860 for a renaming, stabilize the initialization expression if we are at a
31861 local level. At the local level, uses of the renaming may be performed
31862 by a direct dereference of the initializing expression, and we don't
31863 want possible variables there to be evaluated for every use.
31865 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31866 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31867 them on the way. Account for the fact that we may introduce side
31868 effects in the process.
31870 2004-07-13 Richard Henderson <rth@redhat.com>
31872 * misc.c (default_pass_by_ref): Use pass_by_reference.
31874 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
31876 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31877 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31879 2004-07-08 Richard Henderson <rth@redhat.com>
31881 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31884 2004-07-06 Vincent Celier <celier@gnat.com>
31886 * vms_conv.ads: Minor reformatting.
31887 Alphabetical order for enumerated values of type Command_Type, to have
31888 the command in alphabetical order for the usage.
31890 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31891 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31893 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31895 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31896 (Add_Archive_Path): Only add the global archive if there is one.
31897 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31898 or not any object file to put in the global archive, and don't build
31899 a global archive if there is none.
31900 (X_Switches): New table
31901 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31902 in the X_Switches table, if any.
31903 (Initialize): Make sure the X_Switches table is empty
31904 (Scan_Arg): Record -X switches in table X_Switches
31906 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31908 * make.adb: Minor comment fix
31910 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31911 invoked with directory information, add the directory in front of the
31914 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31915 invoked with directory information, add the directory in front of the
31918 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31919 when Keep_Temporary_Files is False.
31920 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31921 directory information, add the directory in front of the path.
31922 When not on VMS, handle new switch -dn before the command to set
31923 Keep_Temporary_Files to True.
31924 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31927 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31928 invoked with directory information, add the directory in front of the
31931 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
31933 * snames.ads, snames.adb (Name_Stub): New name for the distributed
31936 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31937 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31939 * g-socket.adb (To_Timeval): Fix incorrect conversion of
31940 Selector_Duration to Timeval for the case of 0.0.
31942 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31943 documentation from Evolve_And_Then.
31945 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
31947 * s-taprop-tru64.adb, s-taprop-os2.adb,
31948 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31950 2004-07-06 Robert Dewar <dewar@gnat.com>
31952 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31953 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31954 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31955 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31956 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31957 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31958 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31959 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31960 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31961 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31962 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31963 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31964 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31965 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31966 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31967 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31968 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31969 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31970 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31971 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31972 vms_data.ads: Minor reformatting,
31973 Fix bad box comment format.
31975 * gnat_rm.texi: Fix minor grammatical error
31977 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31979 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31980 more cases of discriminated records to be recognized as not needing a
31982 (Has_Access_Values): New function.
31984 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31986 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31987 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31988 with LRM terminology).
31989 Change terminology in comments primitive type => elementary type.
31991 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31994 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31995 parameters do not impose any requirements on the presence of a body.
31997 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32000 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
32001 compilation unit and is in an open scope at the point of instantiation,
32002 assume that a body may be present later.
32004 2004-07-06 Ed Schonberg <schonberg@gnat.com>
32006 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
32007 Improve error message when specified size is not supported.
32009 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
32010 is never a primitive operation.
32012 2004-07-05 Andreas Schwab <schwab@suse.de>
32014 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
32015 RECORD_OR_UNION_CHECK.
32016 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
32018 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
32020 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
32021 dependency on xgnatugn, instead build it via a submake.
32022 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
32024 2004-07-04 Richard Henderson <rth@redhat.com>
32026 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
32028 2004-07-01 Richard Henderson <rth@redhat.com>
32030 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
32031 * utils.c (max_size): Likewise.
32033 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32035 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
32036 and rest_of_type_compilation; add arg to create_*_decl.
32037 (annotate_decl_with_node): Deleted.
32038 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
32039 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
32040 (get_current_block_context, gnat_pushdecl): New declarations.
32041 (gnat_init_stmt_group): Likewise.
32042 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32043 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32044 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32045 (gnat_init): Call gnat_init_stmt_group.
32046 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32047 (gnu_pending_elaboration_list): Deleted.
32048 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32049 (gigi): Rearrange initialization calls and move some to last above.
32050 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32051 Delete calls to add_decl_expr; add arg to create_*_decl.
32052 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32053 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32054 begin_subprog_body and call it.
32055 Don't push and pop ggc context.
32056 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32057 (add_stmt): Remove handling of DECL_EXPR from here.
32058 If not in function, mark visited.
32059 (add_decl_expr): Put global at top level.
32060 Check for cases of DECL_INITIAL we have to handle here.
32061 (process_type): Add extra arg to create_type_decl.
32062 (build_unit_elab): Rework to just gimplify.
32063 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32064 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32065 (get_pending_elaborations, pending_elaborations_p): Likewise.
32066 (push_pending_elaborations, pop_pending_elaborations): Likewise.
32067 (get_elaboration_location, insert_elaboration_list): Likewise.
32068 (gnat_binding_level): Renamed from ada_binding_level.
32069 (init_gnat_to_gnu): Don't clear pending_elaborations.
32070 (global_bindings_p): Treat as global if no current_binding_level.
32071 (set_current_block_context): New function.
32072 (gnat_pushdecl): Renamed from pushdecl; major rework.
32073 All callers changed.
32074 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32075 (finish_record_type): Call call pushdecl for stub decl.
32076 (function_nesting_depth): Deleted.
32077 (begin_subprog_body): Delete obsolete code.
32078 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32080 2004-06-28 Robert Dewar <dewar@gnat.com>
32082 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32083 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32084 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32085 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32086 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32088 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32089 deal with problem of inefficient slices on machines with strict
32090 alignment, when the slice is a component of a composite.
32092 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32093 machines, we need the check there as well.
32095 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32097 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32098 determine safe copying direction for overlapping slice assignments
32099 when component is controlled.
32101 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32102 formal derived type in the actual for a formal package are visible in
32103 the enclosing instance.
32105 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32108 * sem_util.adb (Trace_Components): Diagnose properly an illegal
32109 circularity involving a private type whose completion includes a
32110 self-referential component.
32111 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32112 renaming or an instantiation from an implicit derived operation.
32114 2004-06-28 Pascal Obry <obry@gnat.com>
32116 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32118 (Library_File_Name_For): Idem.
32120 2004-06-28 Matthew Gingell <gingell@gnat.com>
32122 * g-traceb.ads: Add explanatory note on the format of addresses
32123 expected by addr2line.
32125 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
32127 * Makefile.in: Force debugging information on s-tasdeb.adb,
32128 a-except.adb and s-assert.adb needed by the debugger.
32130 2004-06-28 Vincent Celier <celier@gnat.com>
32132 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32136 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32138 * prj.adb: Minor reformatting
32139 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32141 * prj.ads: Comment updates
32143 (Project_Data): Change Flag1 to Need_To_Build_Lib.
32144 Remove Flag2: not used.
32146 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32149 * gnat_ugn.texi: Put a "null;" declaration in one project file example
32151 * gnat_rm.texi: Document Empty declarations "null;".
32153 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32154 front of the linker options.
32155 (Link_Foreign): Put the global archives and the libraries in front of
32156 the linker options.
32158 2004-06-28 Javier Miranda <miranda@gnat.com>
32160 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32161 (RTU_Loaded): Code cleanup
32162 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32163 withed predefined units.
32165 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32166 explicitly withed predefined units.
32167 Fix typo in comment
32169 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32170 explicitly withed predefined units.
32172 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32174 * ada-tree.def (DECL_STMT): Deleted.
32175 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32176 (DECL_STMT_VAR): Deleted.
32177 * decl.c: add_decl_stmt now add_decl_expr.
32178 * gigi.h: Likewise.
32179 * trans.c: Likewise.
32180 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32181 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32182 (add_stmt): Only handle padded type here.
32183 (add_stmt_with_node): Allow gnat_node to not be present.
32184 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32185 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32186 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32187 make a SAVE_EXPR for the entire fat pointer.
32188 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32189 (create_index_type): Make a DECL_EXPR.
32190 (end_subprog_body): Don't call allocate_struct_function here but
32193 2004-06-25 Pascal Obry <obry@gnat.com>
32195 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32196 Relocatable from Build_Dynamic_Library call.
32198 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32199 Relocatable are now synonym.
32201 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32203 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32204 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32207 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32208 Lib_Address and Relocatable.
32209 (Default_DLL_Address): Removed.
32211 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32212 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32213 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32214 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32215 (Default_DLL_Address): Removed.
32217 * mlib-tgt-mingw.adb: Ditto.
32218 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32220 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32221 the initial thread stack size.
32223 * a-strmap.ads: Move package L to private part as it is not used in
32224 the spec. Found while reading code.
32226 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
32228 * tracebak.c: Introduce support for a GCC infrastructure based
32229 implementation of __gnat_backtrace.
32231 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32232 any more. Use accessors instead. This eases maintenance and relaxes
32233 some alignment constraints.
32234 (_GNAT_Exception structure): Remove the Ada specific fields
32235 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32237 (is_handled_by, __gnat_eh_personality): Replace component references to
32238 exception structure by use of the new accessors.
32240 * init.c (__gnat_initialize): Adjust comments to match the just
32241 reverted meaning of the -static link-time option.
32243 * adaint.c (convert_addresses): Arrange not to define a stub for
32244 mips-irix any more, as we now want to rely on a real version from a
32245 recent libaddr2line.
32247 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32248 the personality routine can use them and not have to rely on a C
32249 counterpart of the record anymore. This simplifies maintenance and
32250 relaxes the constraint of having Standard'Maximum_Alignment match
32252 Update comments, and add a section on the common header alignment issue.
32254 2004-06-25 Geert Bosch <bosch@gnat.com>
32256 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32257 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32259 2004-06-25 Robert Dewar <dewar@gnat.com>
32261 * gnat_rm.texi: Fix section on component clauses to indicate that the
32262 restriction on byte boundary placement still applies for bit packed
32264 Add comment on stack usage from Initialize_Scalars
32266 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32268 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32269 limiting nesting level.
32271 * usage.adb: Add line for -gnatyLnnn switch
32273 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32274 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32276 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32277 type as well as on the subtype. This corrects a problem in freeze in
32278 setting alignments of atomic types.
32280 * sem_eval.ads: Minor comment typo fixed
32282 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32283 level. Minor reformatting.
32285 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32286 minus sign. This means that file names like a--b.adb will not be
32287 considered predefined.
32289 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32290 record Test new flag and give diagnostic for bad component clause.
32291 (Freeze_Entity): Set alignment of array from component alignment in
32292 cases where this is safe to do.
32294 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32297 * cstand.adb: (Create_Standard): Set alignment of String to 1
32299 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32301 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32302 code in the common constrained array cases.
32304 * a-storio.adb: Change implementation to avoid possible alignment
32305 problems on machines requiring strict alignment (data should be moved
32306 as type Buffer, not type Elmt).
32308 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32309 killing the overflow checks which we really do not need (64-bits is
32312 2004-06-25 Vincent Celier <celier@gnat.com>
32314 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32315 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32316 inconditionally for the main project.
32317 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32318 (Link_Executables.Check_Time_Stamps): New procedure
32319 (Link_Executables.Link_Foreign): New procedure
32320 Changes made to reduce nesting level of this package
32321 (Check): New procedure
32322 (Add_Switches): When not in quiet output, check that a switch is not
32323 the concatenation of several valid switches. If it is, issue a warning.
32324 (Build_Global_Archive): If the global archive is rebuilt, linking need
32326 (Compile_Sources): Rebuilding a library archive does not imply
32327 rebuilding the global archive.
32328 (Build_Global_Archive): New procedure
32329 (Build_Library): New name for Build_Archive, now only for library
32331 (Check_Archive_Builder): New procedure
32332 (Create_Global_Archive_Dependency_File): New procedure
32333 (Gprmake): Call Build_Global_Archive before linking
32334 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32336 (Scan_Arg): Display the Copyright notice when -v is used
32338 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32341 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32343 Add new GNAT LIST qualifier /FILES=
32344 Added qualifier /DIRECTORY= to GNAT METRIC
32345 Added qualifier /FILES= to GNAT METRIC
32346 Added qualifier /FILES to GNAT PRETTY
32348 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32349 to take into account both versions of the switch.
32351 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32352 always be the last switch to the gcc driver. Disable switch storing so
32353 that switches automatically added by the gcc driver are not put in the
32356 * prj.adb (Project_Empty): Take into account changes in components of
32359 * prj.ads (Languages_Processed): New enumaration value All_Languages.
32361 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32362 used. Split Boolean component Ada_Sources_Present in two Boolean
32363 components Ada_Sources_Present and Other_Sources_Present.
32366 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32367 instead of Sources_Present.
32368 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32370 * prj-nmsc.adb: Minor reformatting
32371 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32372 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32373 Check_Ada_Naming_Scheme.
32374 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32377 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32379 Make sure that all cycles where there is at least one "limited with"
32381 (Parse_Single_Project): New Boolean parameter In_Limited
32383 * prj-proc.adb (Recursive_Check): When Process_Languages is
32384 All_Languages, call first Prj.Nmsc.Ada_Check, then
32385 Prj.Nmsc.Other_Languages_Check.
32387 * prj-proc.adb (Process): Use Ada_Sources_Present or
32388 Other_Sources_Present (instead of Sources_Present) depending on
32391 * lang-specs.h: Keep -g and -m switches in the same order, and as the
32394 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32395 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32397 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32400 * lib.ads (Disable_Switch_Storing): New procedure.
32402 * make.adb: Modifications to reduce nesting level of this package.
32403 (Check_Standard_Library): New procedure
32404 (Gnatmake.Check_Mains): New procedure
32405 (Gnatmake.Create_Binder_Mapping_File): New procedure
32406 (Compile_Sources.Compile): Add switch -gnatez as the last option
32407 (Display): Never display -gnatez
32409 * Makefile.generic:
32410 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32412 * gnatcmd.adb (Check_Project): New function
32413 (Process_Link): New procedure to reduce nesting depth
32414 (Check_Files): New procedure to reduce the nesting depth.
32415 For GNAT METRIC, include the inherited sources in extending projects.
32416 (GNATCmd): When GNAT LS is invoked with a project file and no files,
32417 add the list of files from the sources of the project file. If this list
32418 is too long, put it in a temp text files and use switch -files=
32419 (Delete_Temp_Config_Files): Delete the temp text file that contains
32420 a list of source for gnatpp or gnatmetric, if one has been created.
32421 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32422 in the project file is too large, create a temporary text file that
32423 list them and pass it to the tool with "-files=<temp text file>".
32424 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32426 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32427 generated file is in not in Ada.
32429 * gnatls.adb: Remove all parameters And_Save that are no longer used.
32430 (Scan_Ls_Arg): Add processing for -files=
32431 (Usage): Add line for -files=
32433 * g-os_lib.adb (On_Windows): New global constant Boolean flag
32434 (Normalize_Pathname): When on Windows and the path starts with a
32435 directory separator, make sure that the resulting path will start with
32438 * clean.adb (Clean_Archive): New procedure
32439 (Clean_Project): When there is non-Ada code, delete the global archive,
32440 the archive dependency files, the object files and their dependency
32441 files, if they exist.
32442 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32444 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
32446 * sinfo.ads: Fix typo in comment.
32448 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32449 the TSS for remote access-to-subprogram types, since these TSS are
32450 always present once the type has been analyzed.
32451 (RAS_E_Dereference): Same.
32453 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32454 reference raises Bad_Attribute, mark the reference as analyzed so the
32455 node (and any children resulting from rewrites that could have occurred
32456 during the analysis that ultimately failed) is not analyzed again.
32458 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32460 * exp_dist.adb: Minor comment fix.
32462 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32463 type is an anonymous access type, no unchecked deallocation of the
32464 allocated object can occur. If the object is controlled, attach it with
32465 a count of 1. This allows attachment to the Global_Final_List, if
32466 no other relevant list is available.
32467 (Get_Allocator_Final_List): For an anonymous access type that is
32468 the type of a discriminant or record component, the corresponding
32469 finalisation list is the one of the scope of the type.
32471 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32473 * sem_ch3.adb (Replace_Type): When computing the signature of an
32474 inherited subprogram, use the first subtype if the derived type
32475 declaration has no constraint.
32477 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32478 before applying previous optimization. Minor code cleanup.
32480 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32481 placed at the beginning of an unpacked record without explicit
32482 alignment, a slice of it will be aligned and does not need a copy when
32485 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32489 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32490 reference is written with expressions mimicking parameters.
32492 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
32495 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32496 STEP 2a. The constraints of a full type declaration of a derived record
32497 type are checked for conformance with those declared in the
32498 corresponding private extension declaration. The message
32499 "not conformant with previous declaration" is emitted if an error is
32502 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32504 * g-traceb.ads: Document the need for -E binder switch in the spec.
32506 * g-trasym.ads: Document the need for -E binder switch in the spec.
32508 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
32510 * sem_prag.adb: Add handling of pragma Detect_Blocking.
32512 * snames.h, snames.ads, snames.adb: Add entry for pragma
32515 * s-rident.ads: Change reference to pragma Detect_Blocking.
32517 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32520 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32521 to indicate whether pragma Detect_Blocking is active.
32523 * par-prag.adb: Add entry for pragma Detect_Blocking.
32525 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32526 of not handling WITH.
32527 Note that this replaces the previous update which was incorrect.
32529 2004-06-25 Javier Miranda <miranda@gnat.com>
32531 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32532 use-clauses to have a clean environment.
32534 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32535 the installation of the use-clauses to stablish a clean environment in
32536 case of compilation of a separate unit; otherwise the call to
32537 use_one_package is protected by the barrier Applicable_Use.
32539 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32540 the installation of the use-clauses to stablish a clean environment in
32541 case of compilation of a separate unit.
32542 (End_Use_Clauses): Minor comment cleanup.
32544 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
32546 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32548 2004-06-23 Richard Henderson <rth@redhat.com>
32550 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32552 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32554 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32555 now bool instead of int.
32556 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32557 * trans.c (gnu_switch_label_stack): New function.
32558 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32559 elaboration of renamed entity returns.
32560 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32561 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32562 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32563 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32564 DECL_SIZE_UNIT and simplify variable-sized case.
32565 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32566 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32567 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32568 (build_unit_elab): Disable for now.
32569 * utils.c (mark_visited): New function.
32570 (pushdecl): Walk tree to call it for global decl.
32571 (update_pointer_to): Update all variants of pointer and ref types.
32572 Add arg to COMPONENT_REF.
32573 (convert): Likewise.
32574 Move check for converting between variants lower down.
32575 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32576 (build_allocator): Don't force type of MODIFY_EXPR.
32577 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32578 put_var_into_stack.
32580 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32582 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32583 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32584 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32586 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32587 all callers changed.
32588 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32589 the way that EXIT_STMT finds the loop label.
32590 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32591 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32592 (add_stmt): Use annotate_with_locus insted of setting directly.
32593 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32594 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32595 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32596 (build_vms_descriptor): Add extra args to ARRAY_REF.
32597 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32598 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32600 (build_binary_op): Don't make explicit CONVERT_EXPR.
32601 Add extra rgs to ARRAY_REF.
32603 2004-06-14 Pascal Obry <obry@gnat.com>
32605 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32606 Windows. Fix minor typo.
32608 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32609 which is now supported on Windows. With this implementation using the
32610 Library Project feature is no different on Windows than on UNIX.
32612 2004-06-14 Vincent Celier <celier@gnat.com>
32614 * makegpr.adb (Compile_Sources): Nothing to do when there are no
32617 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32619 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32620 found, show the project name and the path of the previously parsed
32623 2004-06-14 Ed Schonberg <schonberg@gnat.com>
32625 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32626 array, avoid copying the actual before the call.
32628 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
32630 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32631 Instead, allocate memory on worst-case alignment assumptions, and then
32632 return an aligned address within the allocated zone.
32634 2004-06-14 Robert Dewar <dewar@gnat.com>
32636 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32637 elab entities in predefined units in No_Run_Time_Mode.
32638 (Gen_Adainit_C): Same fix
32639 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32640 units in No_Run_Time_Mode
32641 (Gen_Elab_Calls_C): Same fix
32643 * symbols-vms-alpha.adb: Minor reformatting
32645 * g-debpoo.ads: Minor reformatting
32647 * lib.adb (In_Same_Extended_Unit): Version working on node id's
32649 * lib.ads (In_Same_Extended_Unit): Version working on node id's
32651 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32654 * make.adb: Minor reformatting
32656 * par-ch12.adb: Minor reformatting
32658 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32660 * prj-strt.adb: Minor reformatting
32662 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32665 * sem_attr.adb: Minor reformatting
32667 * sem_ch7.adb: Minor reformatting
32669 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32670 for type in the same unit as the object declaration.
32672 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32673 static string expressions and not just string literals.
32675 (Set_Warning): Reset restriction warning flag for restriction pragma
32676 Implement pragma Profile_Warnings
32677 Implement pragma Profile (Restricted)
32678 Give obolescent messages for old restrictions and pragmas
32680 * snames.h, snames.ads, snames.adb: Add new entry for pragma
32683 * s-rident.ads: Add declarations for restrictions required by profile
32684 Restricted and profile Ravenscar.
32686 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32688 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32689 configuration pragmas.
32691 2004-06-11 Vincent Celier <celier@gnat.com>
32693 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32694 gnatsym, when symbol policy is Restricted.
32696 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32697 gnatsym, when symbol policy is Restricted.
32699 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32700 read the symbol file.
32701 (Finalize): Fail in symbol policy Restricted if a symbol in the original
32702 symbol file is not in the object files. Do not create a new symbol file
32703 when symbol policy is Restricted.
32705 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32708 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32710 (Usage): Line for new switch -R
32712 * make.adb (Initialize): When the platform is not VMS, add the
32713 directory where gnatmake is invoked in the front of the path, if
32714 gnatmake is invoked with directory information. Change the Scan_Args
32715 while loop to a for loop.
32716 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32717 if Depth is equal or greater than the proposed depth, there is nothing
32719 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32722 * prj.ads: Add new symbol policy Restricted.
32724 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32725 with the new parameters Check_All_Labels and Case_Location.
32727 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32728 (Library_Symbol_File needs to be defined).
32730 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32731 and Case_Location If Check_All_Labels is True, check that all values of
32732 the string type are used, and output warning(s) if they are not.
32734 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32737 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32739 * gnat_ugn.texi: Update documentation about the library directory in
32742 * makegpr.adb (Display_Command): In verbose mode, also display the
32743 value of the CPATH env var, when the compiler is gcc.
32744 (Initialize): Change the Scan_Args while loop to a for loop
32745 (Compile_Individual_Sources): Change directory to object directory
32746 before compilations.
32748 * symbols.ads: New symbol policy Restricted.
32750 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
32752 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32753 is now taken care of internally in the Exception_Propagation package
32754 and does not require clients assistance any more.
32756 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32757 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32758 functions. Helpers to maintain a predicate required in the handling of
32759 occurrence transfer between tasks.
32760 This is now handled internally and does not require clients assistance
32761 for the setup/propagate separation anymore.
32762 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32763 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32766 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32767 raise_after_setup, now that everything is handled internally within the
32768 setup/propagation engine.
32770 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32772 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32773 Add additional conditions for the case of an actual being a simple
32774 name or literal. Improve inlining by preventing the generation
32775 of temporaries with a short lifetime (one use).
32777 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32780 * einfo.ads: Minor comment updates for Has_Completion and
32781 E_Constant list of flags.
32783 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32784 and constant redeclarations now set the Has_Completion flag of their
32785 defining identifiers.
32787 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32788 Inspect_Deferred_Constant_Completion.
32789 Used to detect private deferred constants that have not been completed
32790 either by a constant redeclaration or pragma Import. Emits error message
32791 "constant declaration requires initialization expression".
32793 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32794 completes a deferred constant.
32796 2004-06-11 Geert Bosch <bosch@gnat.com>
32798 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32800 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32801 calculating exponent for scaling denormal numbers.
32802 (Leading_Part): Properly raise Constraint_Error for zero or negative
32804 (Remainder): Properly raise Constraint_Error for zero divisor.
32806 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
32808 * sem_util.adb: Minor reformatting.
32810 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32811 dereference when accessing the entry parameter record.
32812 (Check_Array_Type): Always check for possible implicit dereference.
32813 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32814 Abort if a pointer is still present (denoting that an implicit
32815 dereference was left in the tree by the front-end).
32817 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32818 dereference when accessing the entry parameter record.
32819 (Check_Array_Type): Always check for possible implicit dereference.
32820 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32821 Abort if a pointer is still present (denoting that an implicit
32822 dereference was left in the tree by the front-end).
32824 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
32826 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32827 message, like the compiler itself does. Easier to parse the output.
32829 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32831 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32832 be base names, and not includes directories.
32834 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32836 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32837 so that dependencies are properly taken into account by make.
32839 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32842 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32843 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32845 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
32847 * Makefile.in (install-gnatlib): install target-specific run-time files.
32849 * Make-lang.in: Remove obsolete targets.
32851 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32853 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32854 specification, to catch misuses of program unit names.
32856 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32857 superfluous conversions in an instance.
32859 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32862 * sem_ch12.adb (Save_References): If operator node has been folded to
32863 enumeration literal, associated_node must be discarded.
32865 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
32867 * s-stchop-vxworks.adb: Add required pragma Convention to
32868 Task_Descriptor because it is updated by a C function.
32870 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
32873 * Makefile.in: Remove target specific SO_OPT on IRIX
32875 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32877 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32878 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32879 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32880 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32881 (STMT_STMT, USE_STMT): New statement codes.
32882 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32883 * ada-tree.h: Reflect above changes.
32884 (struct tree_loop_id): Deleted.
32885 (union lang_tree_node, struct lang_decl, struct lang_type):
32886 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32887 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32888 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32889 (IS_ADA_STMT): New macro.
32890 * decl.c (annotate_decl_with_node): New function.
32891 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32892 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32893 Call add_stmt_with_node to do needed assignments.
32894 Add call to update setjmp buffer directly, not via EXPR_STMT.
32895 (maybe_variable): Argment GNAT_NODE deleted.
32896 * gigi.h (maybe_variable): Likewise.
32897 (make_transform, add_stmt_with_node, set_block_for_group): New.
32898 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32899 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32900 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32901 (set_lineno, set_lineno_from_sloc): Likewise.
32902 (record_code_position, insert_code_for): Likewise.
32903 (gnat_poplevel): Now returns void.
32904 (end_subprog_body): Now takes argument.
32905 * misc.c (cgraph.h, tree-inline.h): New includes.
32906 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32907 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32908 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32909 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32910 (gnat_parse_file): Don't set immediate_size_expand.
32911 Call cgraph functions.
32912 (gnat_expand_expr): Remove most cases.
32913 (record_code_position, insert_code_for): Remove from here.
32914 * trans.c (toplev.h, tree-gimple.h): Now included.
32915 (discard_file_names): Deleted.
32916 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32917 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32918 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32919 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32920 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32921 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32922 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32923 (set_block_for_group, add_stmt_list): Likewise.
32924 (start_stmt_group): Renamed from start_block_stmt.
32925 (end_stmt_group): Likewise, from end_block_stmt.
32926 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32927 (gigi): Don't set discard_file_names or call set_lineno.
32928 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32929 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32930 Numerous changes throughout to reflect new names and complete
32931 function-at-a-time implementation.
32932 (gnat_expand_stmt): Delete or comment out all cases.
32933 (process_inlined_subprograms): Use add_stmt.
32934 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32935 call set_lineno; also remove unneeded block handling.
32936 (process_type): Remove unneeded block handling.
32937 (build_unit_elab): Remove calls to deleted functions.
32938 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32939 (tree-dump.h): Likewise.
32940 (struct ada_binding_level): Add field jmpbuf_decl.
32941 (gnat_define_builtin, gnat_install_builtins): New.
32942 (gnat_gimplify_function, gnat_finalize): Likewise.
32943 (gnat_poplevel): No longer return BLOCK, set it instead.
32944 Remove code dealing with nested functions.
32945 (gnat_init_decl_processing): Also set size_type_node.
32946 Call gnat_install_builtins.
32947 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32948 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32949 Remove special-case for "main".
32950 (end_subprog_body): Add arg and rework for tree-ssa.
32951 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32952 Add case for BOOLEAN_TYPE.
32953 * utils2.c (rtl.h): Now include.
32954 (build_call_raise): Test Debug_Flag_NN directly.
32955 (build_call_alloc_dealloc): Don't use local stack allocation for now.
32956 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32957 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32959 2004-06-07 Robert Dewar <dewar@gnat.com>
32961 * a-direct.ads, einfo.ads: Minor comment updates
32963 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32964 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32965 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32966 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32967 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32969 * s-interr-sigaction.adb: Remove unreferenced variable
32970 (Attached_Interrupts). Minor reformatting.
32971 Avoid use of variable I (replace by J).
32973 * par-ch10.adb: Fix text of one error message
32975 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32976 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32977 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32978 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32979 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32980 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32981 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32982 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32983 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32984 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32985 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32988 2004-06-07 Doug Rupp <rupp@gnat.com>
32990 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32992 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32994 * mlib-tgt-vms-ia64.adb: New file.
32996 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32997 Add mlib-tgt-vms-ia64.adb
32998 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32999 Move to alpha specific ifeq section.
33000 Add VMS specific versions of symbols.adb
33001 Renaming of 5q vms files.
33003 * 5qsystem.ads renamed to system-vms_64.ads.
33005 2004-06-07 Vincent Celier <celier@gnat.com>
33007 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
33008 explain that when a time of day corresponding to the non existing hour
33009 on the day switching to DST is specified, Split may return a different
33012 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
33015 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
33016 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
33018 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
33020 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
33021 the linking options.
33022 (Build_Library.Check_Libs): On VMS, if there is a dependency on
33023 g-trasym.ads, set Gtrasymobj_Needed to True.
33025 * prj-attr.adb: Add new package Metrics for gnatmetric
33027 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
33028 canonical case to take into account files with upper case characters on
33030 (Ada_Check): Load the reference symbol file name in the name buffer to
33031 check it, not the symbol file name.
33033 * snames.ads, snames.adb: Add standard name Metrics (name of project
33034 file package for gnatmetric).
33036 * vms_conv.ads: Add Metric to Comment_Type
33038 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
33040 * vms_data.ads: Add qualifiers for GNAT METRIC
33042 * makegpr.adb (Link_Executables): Take into account the switches
33043 specified in package Linker of the main project.
33045 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
33047 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33048 the index of the last element is Units.Last, not Units.Table'Last
33049 (which is usually not a valid index within the actually allocated
33050 storage for the table).
33052 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33053 determines whether to generate a call to a checked storage pool
33054 Dereference action.
33055 Generate such a call only for a dereference that either comes from
33056 source, or is the result of rewriting a dereference that comes from
33059 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33061 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33063 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
33065 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33066 file level, elaborate the stride for inner dimensions in alignment
33069 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33072 2004-06-07 Javier Miranda <miranda@gnat.com>
33074 * exp_ch6.adb: Correct wrong modification in previous patch
33076 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
33078 * g-trasym.ads: Corrected comment to properly reflect level of support
33081 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
33083 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33084 includes case of a variable referenced on the left hand side of an
33085 assignment, therefore remove redundant code. Variables and prefixes of
33086 indexed or selected components are now marked as referenced on left
33087 hand side. Warnings are now properly emitted when variables or prefixes
33088 are assigned but not read.
33090 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33091 left hand side referenced variables. Private access types do not
33092 produce the warning "variable ... is assigned but never read".
33093 Add also additional checks to left hand side referenced variables.
33094 Aliased, renamed objects and access types do not produce the warning
33095 "variable ... is assigned but never read" since other entities may read
33096 the memory location.
33098 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
33100 * Makefile.in: In the powerpc/vxworks-specific section, restore
33101 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33104 2004-06-07 Ed Schonberg <schonberg@gnat.com>
33106 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33107 predefined operators.
33108 Removes spurious type errors from g-trasym-vms.adb.
33110 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33111 distinct from the operator appearing in the source, call appropriate
33112 routine to insert conversions when needed, and complete resolution of
33114 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33115 interpretations for rewritten right operand.
33116 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33117 the other operand is overloaded and the context is a type conversion.
33119 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33121 * ada-tree.def (BLOCK_STMT): Now has two operands.
33124 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33126 * gigi.h: (gnat_poplevel): Now returns a tree.
33128 * trans.c (end_block_stmt): Add arg; all callers changed.
33129 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33130 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33131 (add_stmt): Set TREE_TYPE.
33132 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33133 (gnat_expand_stmt, case BREAK_STMT): New case.
33135 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33137 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
33139 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33140 procedure Set_Stack_Size that is not needed.
33142 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
33144 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33145 used for gnatpp input file and for the files upon which it depends
33147 2004-06-07 Ben Brosgol <brosgol@gnat.com>
33149 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33151 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
33153 * gnatvsn.ads: Bump version numbers appropriately.
33154 Add new build type.
33156 2004-06-07 Pascal Obry <obry@gnat.com>
33158 * gnat_ugn.texi: Improve comments about imported names and link names
33159 on Windows. Add a note about the requirement to use -k gnatdll's option
33160 when working with a DLL which has stripped stdcall symbols (no @nn
33163 2004-05-27 Vincent Celier <celier@gnat.com>
33165 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33166 COMMENTS_LAYOUT=UNTOUCHED
33168 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33169 symbols-vms-alpha.adb
33171 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
33173 * sem.ads: Clarify documentation on checks suppression.
33175 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33177 2004-05-27 Ed Schonberg <schonberg@gnat.com>
33179 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33180 the case of multiple derivations.
33181 (Is_Object_Reference): For a selected component, verify that the prefix
33182 is itself an object and not a value.
33184 * sem_ch12.adb (Same_Instantiated_Constant): New name for
33185 Same_Instantiated_Entity.
33186 (Same_Instantiated_Variable): Subsidiary to
33187 Check_Formal_Package_Instance, to recognize actuals for in-out generic
33188 formals that are obtained from a previous formal package.
33189 (Instantiate_Subprogram_Body): Emit proper error when
33190 generating code and the proper body of a stub is missing.
33192 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33193 has a universal interpretation, do the disambiguation here.
33195 * exp_ch4.adb (Expand_N_Type_Conversion,
33196 Expand_N_Unchecked_Type_Conversion): Special handling when target type
33197 is Address, to avoid typing anomalies when Address is a visible integer
33200 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33201 to determine whether a subprogram should not be marked Pure, even when
33202 declared in a pure package.
33204 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
33206 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33208 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33209 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33210 Update the documentation about the Ravenscar profile, following the
33211 definition found in AI-249.
33213 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33214 setting the Profile (Ravenscar). This must be done in addition to
33215 setting the required restrictions.
33217 * rtsfind.ads: Add the set of operations defined in package
33220 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33223 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33225 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33226 if -gnatc or -gnats is passed.
33228 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33230 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33231 a significant reference. Warnings are now properly emitted when a
33232 discriminated type is not referenced.
33234 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33235 record representation clause or record type discriminant does not
33236 produce a reference to its corresponding entity. Warnings are now
33237 properly emitted when deferred constants and record types are not
33240 2004-05-27 Geert Bosch <bosch@gnat.com>
33242 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33243 Fixes ACATS Annex G tests.
33245 2004-05-27 Robert Dewar <dewar@gnat.com>
33247 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33250 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33252 * s-interr.adb (Server_Task): Take into account case of early return
33253 from sigwait under e.g. linux.
33255 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
33257 * gnat_ugn.texi: Add description for the new gnatpp options:
33258 -rnb - replace the original source without creating its backup copy
33259 -c0 - do not format comments
33261 2004-05-24 Geert Bosch <bosch@gnat.com>
33263 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33264 with 192 bits of precision, sufficient to reduce a double-extended
33265 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33266 in -2.0**32 .. 2.0**32.
33267 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33268 reduction by the processor, which only uses a 68-bit approximation of
33270 (Tan): Always reduce arguments and compute function either using
33271 the processor's fptan instruction, or by dividing sin and cos as needed.
33273 2004-05-24 Doug Rupp <rupp@gnat.com>
33275 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33276 gcc error on 32/64 bit VMS.
33278 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
33280 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33281 since this is what we get for stack overflows although not documented
33283 Document the issues which may require adjustments to our signal
33286 2004-05-24 Ed Schonberg <schonberg@gnat.com>
33288 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33289 enclosing dynamic scope if the instantiation is within a generic unit.
33291 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33293 * exp_dbug.ads: Fix typo.
33295 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33296 Rename it to its proper name: system-linux-ia64.ads
33297 (stamp-gnatlib1): Remove extra target specific run time files when
33298 setting up the rts directory.
33300 2004-05-24 Javier Miranda <miranda@gnat.com>
33302 * einfo.ads, einfo.adb (Limited_Views): Removed.
33303 (Limited_View): New attribute that replaces the previous one. It is
33304 now a bona fide package with the limited-view list through the
33305 first_entity and first_private attributes.
33307 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33308 limited-private-with clause.
33309 (Install_Limited_Withed_Unit): Install the private declarations of a
33310 limited-private-withed package. Update the installation of the shadow
33311 entities according to the new structure (see Build_Limited_Views)
33312 (Build_Limited_Views): Replace the previous implementation of the
33313 limited view by a package entity that references the first shadow
33314 entity plus the first shadow private entity (required for limited-
33315 private-with clause)
33316 (New_Internal_Shadow_Entity): Code cleanup.
33317 (Remove_Limited_With_Clause): Update the implementation to undo the
33318 new work carried out by Build_Limited_Views.
33319 (Build_Chain): Complete documentation.
33320 Replace Ada0Y by Ada 0Y in comments
33323 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33324 types the level of accessibility depends on the enclosing type
33327 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33328 entities. Complete documentation of previous change.
33330 2004-05-24 Robert Dewar <dewar@gnat.com>
33332 * namet.adb: Minor reformatting
33333 Avoid use of name I (replace by J)
33334 Minor code restructuring
33336 * sem_ch6.adb: Minor reformatting
33338 * lib-writ.adb: Do not set restriction as active if this is a
33339 Restriction_Warning case.
33341 * sem_prag.adb: Reset restriction warning flag if real pragma
33342 restriction encountered.
33344 * s-htable.adb: Minor reformatting
33345 Change rotate count to 3 in Hash (improves hash for small strings)
33347 * 5qsystem.ads: Add comments for type Address (no literals allowed).
33349 * gnat_ugn.texi: Add new section of documentation "Code Generation
33350 Control", which describes the use of -m switches.
33352 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
33354 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33355 through the DECL_INITIAL for renamed variables.
33357 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33359 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33361 2004-05-19 Joel Brobecker <brobecker@gnat.com>
33363 * exp_dbug.ads: Correct comments concerning handling of overloading,
33364 since we no longer use $ anymore.
33366 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
33368 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33369 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33370 with illegal subunits.
33372 2004-05-19 Ed Schonberg <schonberg@gnat.com>
33374 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33375 body with front-end inlining enabled, check whether an inline pragma
33376 appears immediately after the body and applies to it.
33378 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33379 enabled and the pragma appears after the body of the subprogram.
33381 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33383 Part of function-at-a-time conversion
33385 * misc.c (adjust_decl_rtl): Deleted.
33386 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33389 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33390 (add_decl_stmt, add_stmt, block_has_vars): New functions.
33391 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33393 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33394 when making a decl.
33395 (gnat_to_gnu_entity): Likewise.
33396 Use add_stmt to update setjmp buffer.
33397 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33399 No longer call adjust_decl_rtl.
33400 (DECL_INIT_BY_ASSIGN_P): New macro.
33401 (DECL_STMT_VAR): Likewise.
33403 * trans.c (gigi): Call start_block_stmt to make the outermost
33405 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33406 Call start_block_stmt and end_block_stmt temporarily.
33407 Use gnat_expand_stmt instead of expand_expr_stmt.
33408 (add_decl_stmt): New function.
33409 (tree_transform): Call it.
33410 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33411 (end_block_stmt): Set type and NULL_STMT.
33412 (gnat_expand_stmt): Make recursize call instead of calling
33414 (gnat_expand_stmt, case DECL_STMT): New case.
33415 (set_lineno_from_sloc): Do nothing if global.
33416 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33417 (start_block_stmt, add_stmt, end_block_stmt): New functions.
33418 (build_block_stmt): Call them.
33419 (gnat_to_code): Don't expand NULL_STMT.
33420 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33422 (tree_transform): Likewise.
33423 (tree_transform, case N_Null_Statement): Return NULL_STMT.
33424 (gnat_expand_stmt, case NULL_STMT): New case.
33425 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33428 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33431 * utils.c (create_var_decl): Do not call expand_decl or
33433 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33434 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33436 (struct e_stack): Add chain_next to GTY.
33437 (struct binding_level): Deleted.
33438 (struct ada_binding_level): New struct.
33439 (free_block_chain): New.
33440 (global_binding_level, clear_binding_level): Deleted.
33441 (global_bindings_p): Rework to see if no chain.
33442 (kept_level_p, set_block): Deleted.
33443 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33444 new data structure and work directly on BLOCK node.
33445 (gnat_poplevel): Similarly.
33446 (get_decls): Look at BLOCK_VARS.
33447 (insert_block): Work directly on BLOCK node.
33448 (block_has_var): New function.
33449 (pushdecl): Rework for new binding structures.
33450 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33452 (build_subprog_body): Likewise.
33453 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33455 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33457 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33458 (DECL_STMT_VAR): Likewise.
33460 2004-05-17 Robert Dewar <dewar@gnat.com>
33462 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33465 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33466 of restriction synonyums by using
33467 Restrict.Process_Restriction_Synonyms.
33469 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33471 * s-restri.ads (Tasking_Allowed): Correct missing comment
33473 * s-rident.ads: Add entries for restriction synonyms
33475 * ali.adb: Fix some problems with badly formatted ALI files that can
33476 result in infinite loops.
33478 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33479 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33480 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33481 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33482 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33483 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33484 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33485 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33486 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33487 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33488 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33489 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33490 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33491 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33492 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33493 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33494 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33495 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33496 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33497 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33498 to Task_Id (minor cleanup).
33500 2004-05-17 Vincent Celier <celier@gnat.com>
33502 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33503 directory separator.
33505 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33506 project being extended, if Languages is not declared in extending
33509 2004-05-17 Javier Miranda <miranda@gnat.com>
33511 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33512 limited view of a visible sibling.
33514 2004-05-14 Robert Dewar <dewar@gnat.com>
33516 * gnat_ugn.texi: Minor change to -gnatS documentation
33518 * sprint.adb: Remove some instances of Assert (False) and for this
33519 purpose replace them by output of a ??? string.
33521 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33524 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33525 flag processing. This was suppressing required dependencies in
33526 No_Run_Time mode and is not needed since the binder does not generate
33527 references for things in libgnat anyway.
33529 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33532 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
33534 * gnat_ugn.texi: Document AIX-specific issue with initialization of
33537 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33538 action for the case of an actual parameter in an init proc call.
33540 2004-05-14 Ed Schonberg <schonberg@gnat.com>
33542 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33543 subtype, check visible entities in base type.
33545 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33546 actions if the object is a renaming.
33548 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33549 Check_Formal_Package_Instance, to determine more precisely when the
33550 formal and the actual denote the same entity.
33552 2004-05-14 Javier Miranda <miranda@gnat.com>
33554 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33556 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33557 corresponding to a private_with must be removed from visibility; it
33558 will be made visible later, just before we analyze the private part of
33560 (Check_Private_Child_Unit): Allow private_with clauses in public
33562 (Install_Siblings): Make visible the private entities of private-withed
33564 (Install_Withed_Unit): Do not install the private withed unit if we
33565 are compiling a package declaration and the Private_With_OK flag was
33566 not set by the caller. These declarations will be installed later,
33567 just before we analyze the private part of the package.
33569 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33570 during the evaluation of the expression that initializes the object,
33571 decorate it with the expected type to avoid cascade errors.
33574 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33575 subprogram we have to install the private_with clauses after its
33576 specification has been analyzed (as documented in AI-262.TXT).
33578 * sem_ch8.adb (Has_Private_With): New function. Determines if the
33579 current compilation unit has a private with on a given entity.
33580 (Find_Direct_Name): Detect the Beaujolais problem described in
33583 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33584 provides the functionality of the function Is_Ancestor that was
33585 previously available in sem_ch10. It has been renamed to avoid
33588 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33590 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33592 * utils.c (build_vms_descriptor): Use SImode pointers.
33594 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
33596 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33598 2004-05-14 GNAT Script <nobody@gnat.com>
33600 * Make-lang.in: Makefile automatically updated
33602 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
33604 Renaming of target specific files for clarity
33606 * Makefile.in: Rename GNAT target specific files.
33608 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33609 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33610 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33611 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33612 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33613 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33614 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33615 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33616 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33617 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33618 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33619 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33620 51osinte.adb, 51osinte.ads, 51system.ads,
33621 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33622 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33623 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33624 56tpopsp.adb, 57system.ads, 58system.ads,
33625 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33626 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33627 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33628 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33629 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33630 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33631 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33632 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33633 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33634 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33635 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33636 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33637 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33638 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33639 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33640 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33641 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33642 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33643 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33644 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33645 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33646 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33647 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33648 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33649 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33650 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33651 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33652 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33653 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33654 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33655 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33656 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33657 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33658 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33659 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33660 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33661 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33662 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33663 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33664 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33666 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33667 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33668 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33669 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33670 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33671 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33672 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33673 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33674 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33675 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33676 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33677 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33678 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33679 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33680 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33681 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33682 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33683 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33684 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33685 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33686 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33687 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33688 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33689 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33690 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33691 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33692 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33693 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33694 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33695 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33696 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33697 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33698 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33699 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33700 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33701 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33702 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33703 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33704 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33705 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33706 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33707 s-osinte-vms.ads, s-osinte-vxworks.adb,
33708 s-osinte-vxworks.ads, s-osprim-mingw.adb,
33709 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33710 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33711 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33712 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33713 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33714 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33715 s-stchop-vxworks.adb, s-taprop-dummy.adb,
33716 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33717 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33718 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33719 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33720 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33721 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33722 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33723 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33724 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33725 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33726 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33727 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33728 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33729 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33730 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33731 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33732 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33733 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33734 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33735 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33736 system-irix-o32.ads, system-linux-x86_64.ads,
33737 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33738 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33739 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33740 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33741 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33742 system-vxworks-mips.ads, system-vxworks-ppc.ads,
33743 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33746 2004-05-13 Zack Weinberg <zack@codesourcery.com>
33748 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33750 2004-05-13 Diego Novillo <dnovillo@redhat.com>
33752 Merge from tree-ssa-20020619-branch.
33754 * config-lang.in (boot_language, build_by_default): Set
33756 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33757 (max_size): Add static chain op for call_expr.
33759 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
33762 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33764 2004-05-11 Roger Sayle <roger@eyesopen.com>
33766 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33769 2004-05-10 Doug Rupp <rupp@gnat.com>
33771 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33774 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33776 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33778 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33779 Fixes undefined symbols in IA64 gnatlib.
33781 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33783 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33784 Short_Address). This will be moved to system.auxdec.
33786 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
33788 * sem_util.adb: Replace test for presence of a node that is always
33789 present with a call to Discard_Node.
33791 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33792 Analyze on the library unit node after generation of distribution stub
33793 constructs. The call was a no-op because Unit_Node has already been
33794 Analyzed, and the tree fragments for the distribution stubs are
33795 analyzed as they are inserted in Exp_Dist.
33796 Update comment regarding to distribution stubs to reflect that we
33797 do not generate stub in separate files anymore.
33799 * einfo.ads: Clarify the fact that a tagged private type has the
33800 E_Record_Type_With_Private Ekind.
33802 * erroutc.adb: Minor reformatting
33804 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33805 values if line length is increased using -gnatyM (noticed during code
33808 * eval_fat.adb: Minor reformatting
33809 Put spaces around exponentiation operator
33811 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33814 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33815 has been rewritten as an explicit dereference, retrieve type of
33816 original node to check for possibly unconstrained record type.
33818 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33820 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33821 overriding, use the operation of the parent unconditionally.
33823 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33824 operation when either operand is a literal, to avoid further
33827 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33828 overridden by a previous explicit declaration, mark the previous entity
33831 * sem_disp.adb (Check_Dispatching_Operation): New predicate
33832 Is_Visibly_Controlled, to determine whether a declaration of a
33833 primitive control operation for a derived type overrides an inherited
33834 one. Add warning if the explicit declaration does not override.
33836 2004-05-10 Vincent Celier <celier@gnat.com>
33838 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33839 some cases when the sources are no longer present.
33841 * make.adb (Collect_Arguments): Fail if an external source, not part
33842 of any project need to be compiled, when switch -x has not been
33845 * makeusg.adb: Document new switch -x
33847 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33848 defaulted to False.
33850 * switch-m.adb (Scan_Make_Switches): New switch -x
33852 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33853 gnatmake switch -x.
33855 * gnat_ugn.texi: Document new gnatmake switch -x
33857 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
33859 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33861 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33862 (process_attributes): Likewise.
33864 2004-05-10 Joel Brobecker <brobecker@gnat.com>
33866 * s-inmaop.ads: Fix spelling mistake in one of the comments.
33868 2004-05-10 Robert Dewar <dewar@gnat.com>
33870 * gnat_ugn.texi: Document that for config pragma files, the maximum
33871 line length is always 32767.
33873 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33874 literals is now allowed.
33876 * gnat-style.texi: Remove statement about splitting long lines before
33877 an operator rather than after, since we do not follow this rule at all.
33878 Clarify rule (really lack of rule) for spaces around exponentiation
33880 * sem_elim.adb: Allow concatenation of string literals as well as a
33881 single string literal for pragma arguments.
33883 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33885 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33886 written for append case.
33888 * frontend.adb: Changes to avoid checking max line length in config
33891 * g-os_lib.ads: Minor reformatting
33893 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33894 wrong in any case. Instead use standard value. Noticed during code
33897 * opt.ads (Max_Line_Length): New field, used to implement removal of
33898 limitation on length of lines when scanning config pragma files.
33900 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33901 makeutl.ads, makeutl.adb: Minor reformatting
33903 * scn.adb: Do not check line length while scanning config pragma files
33904 Do not check line length while scanning out license information
33906 * scng.adb: Changes to avoid line length checks while parsing config
33909 2004-05-10 GNAT Script <nobody@gnat.com>
33911 * Make-lang.in: Makefile automatically updated
33913 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
33915 * osint.adb (Find_Program_Name): Fix handling of VMS version
33918 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
33920 * g-os_lib.ads (Invalid_Time): New constant
33922 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33923 return OS_Time instead of time_t to match what is imported by Ada.
33924 Now return -1 if the file doesn't exist, instead of a random value
33926 2004-05-05 Robert Dewar <dewar@gnat.com>
33928 * usage.adb: Add line for -gnatR?s switch
33930 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33932 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33933 and for Match (Data_First, Data_last)
33935 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33936 written when we are dealing with multi-unit files.
33938 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
33940 * Makefile.in: Remove unused targets and variables.
33942 2004-05-05 Vincent Celier <celier@gnat.com>
33944 * switch-m.adb: New gnatmake switch -eI
33946 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33947 of new gnatmake switch -eInnn.
33949 * makegpr.adb: Take into account new parameters Index and Src_Index in
33952 * clean.adb: Implement support for multi-unit sources, including new
33955 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33958 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33959 (Extract_From_Q): New out parameter Index
33960 (Mark, Is_Marked): Subprograms moved to Makeutl
33961 (Switches_Of): New parameter Source_Index
33962 (Add_Switch): New parameter Index
33963 (Check): New parameter Source_Index
33964 (Collect_Arguments): New parameter Source_Index
33965 (Collect_Arguments_And_Compile): New parameter Source_Index
33966 (Compile): New parameter Source_Index
33967 Put subprograms in alphabetical order
33968 Add support for multi-source sources, including in project files.
33970 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33971 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33974 * makeusg.adb: New gnatmake switch -eInnn
33976 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33979 * opt.ads (Main_Index): New variable, defaulted to 0.
33981 * osint.ads, osinte.adb (Add_File): New parameter Index
33982 (Current_Source_Index): New function
33984 * prj.adb: Take into account new components Index and Src_Index
33986 * prj.ads (String_Element): New component Index
33987 (Variable_Value): New component Index
33988 (Array_Element): New component Src_Index
33990 * prj-attr.adb: Indicate that optional index may be specified for
33991 attributes Main, Executable, Spec, Body and some of Switches.
33993 * prj-attr.ads (Attribute_Kind): New values for optional indexes
33994 (Attribute_Record): New component Optional_Index
33996 * prj-com.ads (File_Name_Data): New component Index
33998 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34000 * prj-env.adb (Put): Output optional index
34002 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
34003 attributes Spec and Body.
34005 * prj-nmsc.adb: Process optional indexes
34007 * prj-pp.adb: Ouput "at" for optional indexes
34009 * prj-proc.adb: Take into account optional indexes
34011 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
34012 Optional_Index. For string literal,
34013 process optional index when Optional_Index is True.
34014 (Parse_Expresion): New Boolean parameter Optional_Index
34016 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
34017 (Set_Source_Index_Of): New procedure
34019 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
34022 * prj-util.ads (Executable_Of): New parameter Index
34023 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
34024 New parameter Src_Index, defaulted to 0.
34026 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34029 * sem_ch3.adb (Access_Definition): If this is an access parameter
34030 whose designated type is imported through a limited_with clause, do
34031 not add the enclosing subprogram to the list of private dependents of
34034 2004-05-05 Ed Schonberg <schonberg@gnat.com>
34037 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
34038 a limited_with clause, and the other is its non-limited view.
34040 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
34042 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34044 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34045 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34046 Stand.Boolean_Literals to produce references to entities
34047 Standard_False and Standard_True from compile-time computed boolean
34050 * stand.ads (Boolean_Literals): New variable, provides the entity
34051 values for False and True, for use by the expander.
34053 2004-05-05 Doug Rupp <rupp@gnat.com>
34055 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34056 5vinmaop.adb: Unchecked convert Short_Address vice Address
34058 * adaint.c, raise.c: Caste CRTL function return value
34059 to avoid gcc error on 32/64 bit IVMS.
34061 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34064 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34066 * 5qsystem.ads (Address): Declare as Long_Integer
34067 (Short_Address): Declare as 32 bit subtype of Address
34068 Declare abstract address operations to avoid gratuitous ambiguities.
34070 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
34072 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34073 instead of the old Boolean_Entry_Barriers.
34074 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34076 2004-05-05 GNAT Script <nobody@gnat.com>
34078 * Make-lang.in: Makefile automatically updated
34080 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34082 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34084 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
34087 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34088 alone. Replacing object references by literals is inappropriate in a
34089 so low level context.
34091 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34093 * a-exexpr.adb: Add comments
34095 2004-05-03 Joel Brobecker <brobecker@gnat.com>
34097 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34098 declare the Ancestor_Tags array in Type_Specific_Data with a small size
34099 without risking a bounds check error when accessing one of its
34101 (Type_Specific_Data): Define Ancestor_Tags as a small array.
34102 This prevents us from hitting a limitation during the debug info
34103 generation when using stabs.
34105 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34107 This prevents us from hitting a limitation during the debug info
34108 generation when using stabs.
34110 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
34112 lang-specs.h: Remove -gnatz* from specs.
34114 2004-05-03 Vincent Celier <celier@gnat.com>
34116 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34118 * Make-lang.in, Makefile.in: Add gprmake
34120 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
34122 * sem_aggr.adb: Fix typo in comment.
34124 2004-05-03 Robert Dewar <dewar@gnat.com>
34126 * make.adb: Minor reformatting
34128 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34130 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34131 so that it works when address is not a private type.
34133 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34134 properly with rewritten unchecked conversions. This prevents
34135 order-of-elaboration issues that can otherwise arise.
34136 (Minimum_Size): Don't check size of access types under VMS
34138 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34139 interpretations of integer literals as type System.Address.
34141 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34142 (Is_Descendent_Of): New function
34144 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
34146 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34147 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34148 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34150 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34151 of the old Max_Entry_Queue_Depth.
34153 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34154 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34155 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34157 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34158 New entry for proper handling of Max_Entry_Queue_Depth.
34159 New entry for proper handling of No_Dynamic_Interrupts.
34161 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34162 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34163 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34164 the GNAT specific restriction Max_Entry_Queue_Depth.
34165 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34166 the GNAT specific restriction No_Dynamic_Interrupts.
34168 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34169 instead of the old Boolean_Entry_Barriers.
34170 Use the new restriction No_Dynamic_Attachment instead of the old
34171 No_Dynamic_Interrupts.
34173 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34174 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34176 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34177 of the old Max_Entry_Queue_Depth.
34179 2004-05-03 GNAT Script <nobody@gnat.com>
34181 * Make-lang.in: Makefile automatically updated
34183 2004-04-29 Ed Schonberg <schonberg@gnat.com>
34185 * checks.adb (Enable_Range_Check): If the prefix of an index component
34186 is an access to an unconstrained array, perform check unconditionally.
34188 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34190 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34193 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
34195 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34196 alternate stack setting. There was no support for the tasking cases
34197 and the changes eventually caused a number of side-effect failures in
34198 the non-tasking case too.
34200 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
34202 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34205 2004-04-29 Vincent Celier <celier@gnat.com>
34207 * make.adb (Gnatmake): Increase max size of argument array for
34208 gnatbind for the potential addition of -F.
34209 If there are Stand-Alone Library projects, invoke gnatbind with -F to
34210 be sure that elaboration flags will be checked.
34212 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34214 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
34216 * sem_warn.adb (Check_References): Move '<access-variable> may be
34217 null' warning out of under Warn_On_No_Value_Assigned.
34219 2004-04-29 Ed Falis <falis@gnat.com>
34221 * gnat_ugn.texi: Fixed texi error
34223 2004-04-29 Robert Dewar <dewar@gnat.com>
34225 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34226 abstract operations if they come from predefined files.
34228 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34231 * s-addope.adb: Correct obvious error in mod function
34233 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34235 * Makefile.in: Add target pairs for powerpc darwin*
34238 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34239 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34241 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34243 * Makefile.in: Add target macro definitions for s390*-linux*.
34244 * system-linux-s390.ads: New file.
34245 * system-linux-s390x.ads: New file.
34247 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34249 * gnat_ugn.texi: Correct argument to @setfilename.
34251 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34253 * a-exexpr.adb (Unwind_Word): New data type.
34254 (Unwind_Exception): Use it as type of Private1 and Private2.
34256 * raise.c (db_action_for): Fix debug printf.
34258 2004-04-27 Ed Schonberg <schonberg@gnat.com>
34260 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34263 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34265 * decl.c (gnat_to_gnu_entity, case object): Call
34266 __builtin_update_setjmp_buf.
34268 * gigi.h (update_setjmp_buf): Deleted.
34269 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34271 * misc.c: (update_setjmp_buf): Deleted.
34273 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34274 around block of RTL.
34276 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34278 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
34280 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34281 subprogram for which no pragma All_Calls_Remote applies, store the
34282 address of the real subprogram in the underlying record type, so local
34283 dereferences do not go through the PCS.
34285 2004-04-26 Robert Dewar <dewar@gnat.com>
34287 * i-c.ads: Add some type qualifications to avoid ambiguities when
34288 compiling with s-auxdec.ads and a non-private address type.
34290 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34292 * Makefile.rtl: Fix error in previous check-in:
34293 Add s-addope.o to non tasking object list (rather than tasking object
34296 2004-04-26 Javier Miranda <miranda@gnat.com>
34298 * sem_aggr.adb: Fix typo in comments
34299 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34300 Required to check the null-exclusion attribute.
34302 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34303 case of anonymous access types in record and array components. For a
34304 component definition the level is the same of the enclosing composite
34307 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34308 that are anonymous access types the level of accessibility depends on
34309 the enclosing type declaration. In order to have this information, set
34310 the scope of the anonymous access type to the enclosing record type
34312 (Array_Type_Declaration): In case of components that are anonymous
34313 access types the level of accessibility depends on the enclosing type
34314 declaration. In order to have this information, set the scope of the
34315 anonymous access type to the enclosing array type declaration.
34317 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34320 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34321 renaming of anonymous access-to-constant types allowed if and only if
34322 the renamed object is access-to-constant.
34324 * sem_util.adb (Type_Access_Level): In case of anonymous access types
34325 that are component_definition or discriminants of a nonlimited type,
34326 the level is the same as that of the enclosing component type.
34328 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
34330 * sem_elim.adb: Some minor code reorganization from code reading. Fix
34331 misprint in the function name (File_Name_Match).
34333 2004-04-23 Laurent Guerby <laurent@guerby.net>
34335 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34338 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34340 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34342 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
34344 * adaint.c (__gnat_try_lock): No longer requires that the parent
34345 directory be writable, the directory itself is enough.
34346 (gnat_is_absolute_path): Change profile, so that the call from
34347 GNAT.OS_Lib can be made more efficient.
34349 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34350 from GNAT.OS_Lib can be made more efficient.
34352 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34353 one copy of the file name. Found by code reading.
34355 2004-04-23 Vincent Celier <celier@gnat.com>
34357 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34358 Correct documentation on gnatmake switches transmitted to the compiler
34360 * ali.ads: Minor comment fix
34362 2004-04-23 Javier Miranda <miranda@gnat.com>
34364 * sem_ch6.adb: (Confirming Types): Code cleanup
34366 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34367 subprogram types: E_Anonymous_Access_Subprogram_Type and
34368 E_Anonymous_Access_Protected_Subprogram_Type.
34370 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
34372 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34373 whether a pragma All_Calls_Remote applies to the subprogram on which
34375 No functional change is introduced by this revision; the new parameter
34376 will be used to allow calls to local RCI subprograms to be optimized
34377 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34378 as is already done in the PolyORB implementation of the DSA.
34380 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34381 whether a pragma All_Calls_Remote applies to the subprogram on which
34383 No functional change is introduced by this revision; the new parameter
34384 will be used to allow calls to local RCI subprograms to be optimized
34385 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34386 as is already done in the PolyORB implementation of the DSA.
34388 2004-04-23 Robert Dewar <dewar@gnat.com>
34390 * Makefile.rtl: Add entry for s-addope.o in run time library list
34391 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34392 * s-addope.ads, s-addope.adb: New files.
34394 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34395 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34396 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34397 System.Address to be non-private and signed.
34399 * sem_elim.adb: Minor reformatting (fairly extensive)
34400 Some minor code reorganization from code reading
34401 Add a couple of ??? comments
34403 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34405 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34406 (tree_transform, case N_If_Statement): Remove non-determinism.
34408 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34410 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
34412 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34413 Eliminate' section.
34415 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34416 no longer used as a parameter name for Eliminate pragma).
34418 2004-04-22 Laurent Guerby <laurent@guerby.net>
34420 PR optimization/14984
34421 PR optimization/14985
34422 * trans.c (gigi): Fix non determinism leading to bootstrap
34423 comparison failures.
34425 2004-04-21 Pascal Obry <obry@gnat.com>
34427 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34428 passed to spawnvp() to properly handle program pathname with spaces on
34431 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
34433 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34434 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34435 unlocked in case of exceptions.
34437 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34439 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34440 This function does not exist anymore.
34442 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34444 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34446 * link.c: Move variables to the __gnat name space.
34448 * Makefile.in: list link.o explicitly when needed.
34450 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34452 2004-04-21 Javier Miranda <miranda@gnat.com>
34454 * einfo.adb (Original_Access_Type): New subprogram
34455 (Set_Original_Access_Type): New subprogram
34456 (Write_Field21_Name): Write the name of the new field
34458 * einfo.ads (Original_Access_Type): New field present in access to
34460 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34461 E_Anonymous_Access_Protected_Subprogram_Type.
34463 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34466 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34467 to anonymous access to subprogram types.
34469 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34470 to subprogram types.
34472 * sem_ch3.adb (Access_Definition): Complete decoration of entities
34473 corresponding to anonymous access to subprogram types.
34474 (Analyze_Component_Declaration): Add new actual to the call to
34475 subprogram replace_anonymous_access_to_protected_subprogram.
34476 (Array_Type_Declaration): Add new actual to the call to subprogram
34477 replace_anonymous_access_to_protected_subprogram.
34478 (Process_Discriminants): Add new actual to the call to subprogram
34479 replace_anonymous_access_to_protected_subprogram.
34480 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34482 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34485 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34486 access to subprogram types.
34488 * sem_util.adb (Has_Declarations): Addition of package_specification
34491 2004-04-21 Ed Schonberg <schonberg@gnat.com>
34493 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34494 inlined flags to renamed entity only if in current unit.
34496 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34498 * s-parint.ads: Add DSA implementation marker.
34500 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34501 value of System.Partition_Interface.DSA_Implementation to determine
34502 what version of the distributed systems annex is available (no
34503 implementation, GLADE, or PolyORB).
34505 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34507 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34509 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34511 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34512 with new type if alias sets differ.
34513 Fixes ACATS c41103b.
34515 2004-04-21 Vincent Celier <celier@gnat.com>
34517 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34518 Add array Lang_Args for the language specific compiling argument
34521 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34523 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
34525 * gnat_rm.texi: Update the descripton of the Eliminate pragma
34526 according to the recent changes in the format of the parameters of the
34527 pragma (replacing Homonym_Number with Source_Location).
34529 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
34531 * 5isystem.ads: Removed, unused.
34533 * gnat_rm.texi: Redo 1.13 change.
34535 2004-04-19 Robert Dewar <dewar@gnat.com>
34537 * s-stoele.ads: Clean up definition of Storage_Offset (the new
34538 definition is cleaner, avoids the kludge of explicit Standard operator
34539 references, and also is consistent with a visible System.Address with
34540 no visible operations.
34542 * s-geveop.adb: Add declarations to avoid assumption of visible
34543 operations on type System.Address (since these might not be available
34544 if Address is a non-private type for which the operations
34545 are made abstract).
34547 * sem_eval.adb: Minor reformatting
34549 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34550 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34551 reformatting (new function spec format).
34553 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34554 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34555 s-caun64.adb: Add declarations to avoid assumption of visible
34556 operations on type System.Address (since these might not be available
34557 if Address is a non-private type for which the operations are made
34560 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34562 * exp_intr.adb: Minor comment update
34564 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34566 * 5omastop.adb: Add declarations to avoid assumption of visible
34567 operations on type System.Address (since these might not be available
34568 if Address is a non-private type for which the operations
34569 are made abstract).
34571 2004-04-19 Vincent Celier <celier@gnat.com>
34573 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34575 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34578 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34580 Call Check with Process_Languages.
34581 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34582 with Process_Languages.
34583 (Recursive_Check): New Boolean parameter Process_Languages. Call
34584 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34587 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34589 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34590 parameter Ada_Main, defaulted to True.
34591 Check for Ada specific characteristics only when Ada_Main is True.
34593 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34595 * prj.adb: (Project_Empty): Add new Project_Data components.
34597 * prj.ads: New types and tables for non Ada languages.
34598 (Project_Data): New components Languages, Impl_Suffixes,
34599 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34600 Include_Path, Include_Data_Set.
34602 * prj-env.ads, prj-env.adb: Minor reformatting
34604 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34605 Put subprograms in alphabetical order
34607 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34608 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34611 * mlib-prj.adb: Back out modification in last version, as they are
34613 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34615 * make.adb: (Mains): Moved to package Makeutl
34616 (Linker_Opts): Moved to package Makeutl
34617 (Is_External_Assignment): Moved to package Makeutl
34618 (Test_If_Relative_Path): Moved to package Makeutl
34619 (Gnatmake): Move sorting of linker options to function
34620 Makeutl.Linker_Options_Switches.
34622 * makeutl.ads, makeutl.adb: New files.
34624 * Makefile.in: Add makeutl.o to the object files for gnatmake
34626 * makeusg.adb: Add line for new switch -eL.
34628 * gnatls.adb (Image): New function.
34629 (Output_Unit): If in verbose mode, output the list of restrictions
34630 specified by pragmas Restrictions.
34632 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34635 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34636 needed, to put it in the range 1970 (included) - 2026 (excluded).
34637 (Time_Of): Do not shift Unix_Min_Year (1970).
34638 Shift the date by multiple of 56 years, if needed, to put it in the
34639 range 1970 (included) - 2026 (excluded).
34641 * adaint.h, adaint.c (__gnat_set_executable): New function.
34643 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34645 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34646 and pop GC context.
34647 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34648 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34649 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34650 (tree_transform, case N_Code_Statement): Likewise.
34651 (gnat_expand_stmt, case LABEL_STMT): Don't look at
34652 LABEL_STMT_FIRST_IN_EH.
34653 (gnat_expand_stmt, case ASM_STMT): New case.
34655 * utils2.c (build_unary_op): Properly set TREE_READONLY of
34656 UNCONSTRAINED_ARRAY_REF.
34658 * utils.c (poplevel): Temporarily push/pop GC context around inline
34659 function expansion.
34661 * decl.c (maybe_variable): Properly set TREE_READONLY of
34662 UNCONSTRAINED_ARRAY_REF.
34663 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34665 * ada-tree.def: (ASM_STMT): New.
34667 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34668 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34669 ASM_STMT_INPUT): New.
34670 (ASM_STMT_CLOBBER): Likewise.
34672 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
34674 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34675 general rcheck mechanism to raise Program_Error for E.4(18), instead
34676 of a custom raiser in System.Partition_Interface.
34677 Part of general cleanup work before PolyORB integration.
34679 * snames.ads, snames.adb: Add new runtime library entities and names
34682 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34684 (Build_Subprogram_Id): New subprogram provided by exp_dist
34685 Code reorganisation in preparation for PolyORB integration.
34687 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34689 (Build_Subprogram_Id): New subprogram provided by exp_dist
34691 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34692 actual parameter types for call to dereference of an
34693 access-to-subprogram type.
34695 * rtsfind.ads: Add new runtime library entities and names for PolyORB
34698 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34699 instead, which has the same behaviour here since we never pass it a
34702 * link.c (run_path_option, Solaris case): Use -Wl, as for other
34705 * Makefile.in: adjust object file lists for gnatlink and gnatmake
34706 to account for new dependency upon Interfaces.C.Strings + link.o
34707 For x86 FreeBSD, use 86numaux.
34709 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34710 from Mlib.Tgt to Mlib.
34712 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34713 target-independent.
34715 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34716 target-specific versions of this subprogram, now implemented as a
34717 target-independent function in Mlib.
34719 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34720 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34721 (Linker_Library_Path_Option): Remove target-specific versions of this
34722 subprogram, now implemented as a target-independent function in Mlib.
34724 * atree.adb: (Allocate_Initialize_Node): New subprogram.
34725 Factors out node table slots allocation.
34726 (Fix_Parents): New subprogram.
34727 Encapsulate the pattern of fixing up parent pointers for syntactic
34728 children of a rewritten node.
34729 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34730 (Rewrite): Use New_Copy when creating saved copy of original node.
34731 (Replace): Use Copy_Node to copy nodes.
34733 2004-04-19 Javier Miranda <miranda@gnat.com>
34735 * sprint.adb (Sprint_Node_Actual): Give support to the new
34736 Access_To_Subprogram node available in Access_Definition nodes. In
34737 addition, give support to the AI-231 node fields: null-exclusion,
34738 all-present, constant-present.
34740 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34742 * sinfo.ads, sinfo.adb:
34743 New field Access_To_Subprogram_Definition in Access_Definition nodes
34745 * sem_ch6.adb (Process_Formals): Move here the code that creates and
34746 decorates internal subtype declaration corresponding to the
34747 null-excluding formal. This code was previously in Set_Actual_Subtypes.
34748 In addition, carry out some code cleanup on this code. In case of
34749 access to protected subprogram call
34750 Replace_Anonymous_Access_To_Protected_Subprogram.
34751 (Set_Actual_Subtypes): Code cleanup.
34753 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34754 Find_Type in case of anonymous access renamings. Add warning in case of
34755 null-excluding attribute used in anonymous access renaming.
34757 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34760 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34762 (Access_Definition): In case of anonymous access to subprograms call
34763 the corresponding semantic routine to decorate the node.
34764 (Access_Subprogram_Declaration): Addition of some comments indicating
34765 some code that probably should be added here. Detected by comparison
34766 with the access_definition subprogram.
34767 (Analyze_Component_Declaration): In case of access to protected
34768 subprogram call Replace_Anonymous_Access_To_Protected.
34769 (Array_Type_Declaration): In case of access to protected subprogram call
34770 Replace_Anonymous_Access_To_Protected_Subprogram.
34771 (Process_Discriminants): In case of access to protected subprogram call
34772 Replace_Anonymous_Access_To_Protected_Subprogram.
34774 * par.adb (P_Access_Definition): New formal that indicates if the
34775 null-exclusion part was present.
34776 (P_Access_Type_Definition): New formal that indicates if the caller has
34777 already parsed the null-excluding part.
34779 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34780 (P_Identifier_Declarations): Code cleanup and give support to renamings
34781 of anonymous access to subprogram types.
34782 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34783 (P_Array_Type_Definition): Give support to AI-254.
34784 (P_Component_Items): Give support to AI-254.
34785 (P_Access_Definition): New formal that indicates if the header was
34786 already parsed by the caller.
34787 (P_Access_Type_Definition): New formal that indicates if the caller has
34788 already parsed the null-excluding part.
34790 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34791 call to P_Access_Definition.
34793 2004-04-19 Geert Bosch <bosch@gnat.com>
34795 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34796 the delicate semantics of floating-point to integer conversion.
34797 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34799 * eval_fat.adb (Machine_Mantissa): Moved to spec.
34800 (Machine_Radix): New function.
34802 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34804 (Machine_Radix): New function also for use in conversion checks.
34806 2004-04-19 Ed Schonberg <schonberg@gnat.com>
34808 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34810 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34811 to decorate the access-to-protected subprogram and the equivalent type.
34813 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34814 to anonymous access to subprogram types.
34816 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34817 constant-folding, for legality checks in contexts that require an RM
34820 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34821 temporary but stack checking is not enabled, increment serial number
34822 to so that symbol generation is consistent with and without stack
34825 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34826 independent on whether stack checking is enabled, caller must check
34827 the corresponding flag.
34829 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34831 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34832 parent if it has discriminants.
34833 (Build_Derived_Private_Type): Constructed full view does
34834 not come from source.
34835 (Process_Discriminants): Default discriminants on a tagged type are
34836 legal if this is the internal completion of a private untagged
34839 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34840 no constraint checks, because it corresponds to an existing object.
34842 * sem_prag.adb (Process_Convention): Pragma applies
34843 only to subprograms in the same declarative part, i.e. the same unit,
34844 not the same scope.
34846 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34847 ignore type mismatch on a numeric conversion if expression comes from
34850 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
34852 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34853 Homonym_Number parameter, add processing for Source_Location parameter
34855 (Check_Eliminated): Remove the check for homonym numbers, add the check
34856 for source location traces.
34858 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34859 with Arg_Source_Location corresponding to the changes in the format of
34862 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34863 Eliminate pragma corresponding to the changes in the format of the
34864 pragma: Homonym_Number is replaced with Source_Location, two ways of
34865 distinguishing homonyms are mutially-exclusive.
34867 2004-04-19 Joel Brobecker <brobecker@gnat.com>
34869 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34871 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34872 No_Dollar_In_Label, no longer necessary, as it is always True.
34873 (Strip_Suffixes): Likewise.
34875 2004-04-19 Gary Dismukes <dismukes@gnat.com>
34877 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34878 modulus for compatibility with size clause on targets with 16-bit
34881 * layout.adb (Discrimify): In the case of private types, set Vtyp to
34882 full type to fix type mismatches on calls to size functions for
34883 discriminant-dependent array components.
34885 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
34887 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34890 2004-04-19 Pascal Obry <obry@gnat.com>
34892 * mdll-utl.adb (Locate): New version is idempotent.
34894 2004-04-17 Laurent Guerby <laurent@guerby.net>
34896 PR ada/14988 (partial)
34897 * impunit.adb: Fix typo.
34899 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
34901 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34902 and install-rts-cert targets. Remove all gnatlib and gnattools
34903 targets and all other rts-* targets (moved to libada). Remove (now)
34904 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34905 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34907 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34909 * trans.c (tree_transform): Shortcut returning error_mark_node for
34910 statements in annotate_only_mode.
34911 (tree_transform, case N_Label, case N_Return_Statement,
34912 N_Goto_Statement): Make statement tree instead of generating code.
34913 (tree_transform, case N_Assignment_Statement): No longer check
34914 type_annotate_only.
34915 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34917 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34919 (gnat_to_gnu): Collect any RTL generated and deal with it.
34920 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34921 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34922 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34924 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34926 * ada-tree.def (EXPR_STMT): Fix typo in name.
34927 (BLOCK_STMT, IF_STMT): New nodes.
34929 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34930 LABEL_STMT_FIRST_IN_EH): New macros.
34931 (RETURN_STMT_EXPR): Likewise.
34933 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34934 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34936 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34938 * atree.ads: Correct documentation on extended nodes.
34940 * link.c: Set run_path_option for FreeBSD.
34942 2004-04-08 Vincent Celier <celier@gnat.com>
34944 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34945 one of the ALI file, do not link with DEC lib.
34947 * par.adb Remove the last two characters ("%s" or "%b") when checking
34948 if a language defined unit may be recompiled.
34950 2004-04-08 Ed Schonberg <schonberg@gnat.com>
34952 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34953 removal of abstract operation leaves no possible interpretation for
34956 * sem_eval.adb (Eval_Qualified_Expression): Use
34957 Set_Raises_Constraint_Error on node when needed, so that it does not
34958 get optimized away by subsequent optimizations.
34960 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34961 operands even when they are not wrapped in a type conversion.
34963 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
34965 * sem_prag.adb (Set_Exported): Warn about making static as result of
34966 export only when the export is coming from source. This may be not
34967 be true e.g. on VMS where we expand export pragmas for exception codes
34968 together with imported or exported exceptions, and we don't want the
34969 user to be warned about something he didn't write.
34971 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34973 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34974 duplication between normal entities and those declared as renamings.
34975 No functional change.
34977 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34978 inline functions returning an unconstrained result.
34980 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
34982 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34983 conform to what other front-ends do.
34985 2004-04-08 Doug Rupp <rupp@gnat.com>
34987 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34990 2004-04-06 Pascal Obry <obry@gnat.com>
34992 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34994 * osint.adb (Program_Name): Do not look past a directory separator.
34996 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
34998 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35000 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
35001 requirement for preserving a copy of the original assignment node.
35003 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
35005 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
35007 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
35010 2004-04-06 Ed Schonberg <schonberg@gnat.com>
35012 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
35013 operator calls in functional notation, and apply
35014 Universal_Interpretation to operands, not to their type.
35016 2004-04-06 Robert Dewar <dewar@gnat.com>
35018 * 5wdirval.adb: Minor reformatting
35020 2004-04-06 Ed Falis <falis@gnat.com>
35022 * gnat_rm.texi: Improve a reference to the GCC manual
35024 2004-04-05 Vincent Celier <celier@gnat.com>
35026 * adaint.h, adaint.c: Add function __gnat_named_file_length
35028 * impunit.adb: Add Ada.Directories to the list
35030 * Makefile.in: Add VMS and Windows versions of
35031 Ada.Directories.Validity package body.
35033 * Makefile.rtl: Add a-direct and a-dirval
35035 * mlib-tgt.ads: Minor comment update.
35037 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
35038 a-direct.ads, a-direct.adb: New files.
35040 2004-04-05 Vincent Celier <celier@gnat.com>
35043 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35044 just to the compiler.
35046 2004-04-05 Robert Dewar <dewar@gnat.com>
35048 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35049 returned string is 1.
35051 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35053 * eval_fat.ads: Minor reformatting
35055 * g-curexc.ads: Document that lower bound of returned string values
35058 * gnatlink.adb: Add ??? comment for previous change
35059 (need to document why this is VMS specific)
35061 * s-stoele.ads: Minor reformatting
35063 * tbuild.ads: Minor reformatting throughout (new function specs)
35065 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35068 * scng.adb: Minor reformatting
35070 2004-04-05 Geert Bosch <bosch@gnat.com>
35072 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35073 (Leading_Part): Still perform truncation to machine number if the
35074 specified radix_digits is greater or equal to machine_mantissa.
35076 2004-04-05 Javier Miranda <miranda@gnat.com>
35078 * par-ch3.adb: Complete documentation of previous change
35079 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35080 (aliased must appear before constant).
35082 * par-ch4.adb: Complete documentation of previous change.
35084 * par-ch6.adb: Complete documentation of previous change.
35086 * sinfo.ads: Fix typo in commment.
35088 2004-04-05 Ed Schonberg <schonberg@gnat.com>
35090 * sem_ch3.adb (Inherit_Components): If derived type is private and has
35091 stored discriminants, use its discriminants to constrain parent type,
35092 as is done for non-private derived record types.
35094 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35095 Ada 2005 AI-310: an abstract non-dispatching operation is not a
35096 candidate interpretation in an overloaded call.
35098 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35099 expression is Null and target type is not an access type (e.g. a
35100 non-private address type).
35102 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
35104 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35105 statement whose right-hand side is an inlined call, save a copy of the
35106 original assignment subtree to preserve enough consistency for
35107 Analyze_Assignment to proceed.
35109 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35110 complete assignment subtree which is now unnecessary, as the expansion
35111 of inlined call has been improved to preserve a consistent assignment
35112 tree. Note_Possible_Modification must be called only
35113 after checks have been applied, or else unnecessary checks will
35116 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35117 of explicit dereferences that do not Come_From_Source:
35118 - be selective on cases where we must go back to the dereferenced
35119 pointer (an assignment to an implicit dereference must not be
35120 recorded as modifying the pointer);
35121 - do not rely on Original_Node being present (Analyze_Assignment
35122 calls Note_Possible_Modification on a copied tree).
35124 * sem_warn.adb (Check_References): When an unset reference to a pointer
35125 that is never assigned is encountered, prefer '<pointer> may be null'
35126 warning over '<pointer> is never assigned a value'.
35128 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
35130 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35133 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
35135 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35136 libexc. We currently don't reference anything in this library and
35137 linking it in triggers linker warnings we don't want to see.
35139 * init.c: Update comments.
35141 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35143 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35144 * utils.c (create_field_decl): Likewise.
35145 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35147 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
35149 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35150 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35151 Add info directory entry and category.
35153 2004-04-02 Jan Hubicka <jh@suse.cz>
35155 * utils.c: Include function.h
35156 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35158 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35161 * Make-lang.in: Clean up generation of documentation
35163 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35165 * xgnatug.adb: Removed, replaced by xgnatugn.adb
35167 * xgnatugn.adb: Replaces xgnatug.adb
35169 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35171 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35173 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35174 gnat_ug_wnt.texi: Removed.
35176 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35178 * utils2.c: Update copyright notice.
35180 2004-04-01 Robert Dewar <dewar@gnat.com>
35182 * checks.adb: Minor reformatting throughout
35183 Note that prev checkin added RM reference to alignment warning
35185 2004-04-01 Ed Schonberg <schonberg@gnat.com>
35187 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35188 non-static when building aggregate for bit-packed array.
35190 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35191 function call that is itself the actual in a procedure call, build
35194 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35195 a string literal, create a temporary for it, constant folding only
35196 handles scalars here.
35198 2004-04-01 Vincent Celier <celier@gnat.com>
35200 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35201 Error_Msg_SP): New empty procedures to instantiate the Scanner.
35202 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35204 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35205 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35206 and get the checksum.
35208 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35210 Increase the Marking_Label at the end of the Multiple_Main_Loop,
35211 instead of at the beginning.
35213 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35215 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35218 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35220 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35223 * par.adb: Remove test on file name to detect language defined units.
35224 Add test on unit name, after parsing, to detect language defined units
35225 that are not compiled with -gnatg (except System.RPC and its children)
35227 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35228 following units without style checking.
35230 * switch-c.adb: Change -gnatC to -gnateI
35232 * usage.adb: Document new switch -gnateInnn
35234 * scng.adb (Accumulate_Token_Checksum): New procedure
35235 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35236 word or literal number.
35237 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35240 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
35243 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35244 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35245 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35246 5vtpopde.adb: Add missing 'constant' keywords.
35248 2004-04-01 Javier Miranda <miranda@gnat.com>
35250 * par-ch4.adb: (P_Allocator): Code cleanup
35252 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35255 * sinfo.ads: Complete documentation of previous change
35257 2004-04-01 Pascal Obry <obry@gnat.com>
35259 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35260 only on VMS. This special handling was done because an old GNU/ld bug
35261 on Windows which has been fixed.
35263 2004-04-01 GNAT Script <nobody@gnat.com>
35265 * Make-lang.in: Makefile automatically updated
35267 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35269 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35270 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35271 * trans.c (tree_transform, convert_with_check): Likewise.
35272 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35273 (build_vms_descriptor, unchecked_convert): Likewise.
35274 * utils2.c (nonbinary_modular_operation): Likewise.
35276 2004-03-29 Javier Miranda <miranda@gnat.com>
35278 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35279 (Install_Null_Excluding_Check): Local subprogram that determines whether
35280 an access node requires a runtime access check and if so inserts the
35281 appropriate run-time check.
35282 (Apply_Access_Check): Call Install_Null_Excluding check if required
35283 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35285 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35287 * einfo.ads: Fix typo in comment
35289 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35290 null-excluding type to force the corresponding run-time check.
35291 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35292 type to force the corresponding run-time check.
35294 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35295 the null-excluding type to force the corresponding run-time check.
35297 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35298 case of access types unless they have the null-excluding attribute.
35300 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35303 * exp_util.ads: Fix typo in comment
35305 * par.adb (P_Null_Exclusion): New subprogram
35306 (P_Subtype_Indication): New formal that indicates if the null-excluding
35307 part has been scanned-out and it was present
35309 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35311 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35312 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35313 type to force the corresponding run-time check
35314 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35316 (Resolve_Array_Aggregate): Carry out some static checks
35317 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35319 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35320 attribute must be set only if specified by means of the null-excluding
35321 part. In addition, we must also propagate the access-constant attribute
35323 (Access_Subprogram_Declaration, Access_Type_Declaration,
35324 Analyze_Component_Declaration, Analyze_Object_Declaration,
35325 Array_Type_Declaration, Process_Discriminants,
35326 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35327 and carry out some static checks.
35328 (Build_Derived_Access_Type): Set the null-excluding attribute
35329 (Derived_Type_Declaration, Process_Subtype): Carry out some static
35332 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35334 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35336 * sem_ch6.adb (Process_Formals): Carry out some static checks.
35337 (Set_Actual_Subtypes): Generate null-excluding subtype if the
35338 null-excluding part was present; it is not required to be done here in
35339 case of anonymous access types.
35340 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35343 * sem_res.adb (Resolve_Actuals): Carry out some static check
35344 (Resolve_Null): Allow null in anonymous access
35346 * sinfo.adb: New subprogram Null_Exclusion_Present
35347 All_Present and Constant_Present available on access_definition nodes
35349 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35350 object_declaration, derived_type_definition, component_definition,
35351 discriminant_specification, access_to_object_definition,
35352 access_function_definition, allocator, access_procedure_definition,
35353 access_definition, parameter_specification, All_Present and
35354 Constant_Present flags available on access_definition nodes.
35356 2004-03-29 Robert Dewar <dewar@gnat.com>
35358 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35359 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35360 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35361 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35362 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35363 sem_prag.adb: Updates to handle multiple units/file
35365 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35367 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35368 sem_util.adb: Minor reformatting
35370 * sem_ch12.adb: Add comment for previous change
35372 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
35374 * osint.adb (Executable_Prefix): Set Exec_Name to the current
35375 executable name when not initialized. Otherwise, use its current value.
35377 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35378 initialize it to another executable name than the current one. This
35379 allows to configure paths for an executable name (gnatmake) different
35380 from the current one (gnatdist).
35382 2004-03-29 Ed Schonberg <schonberg@gnat.com>
35384 * exp_ch6.adb (Expand_Call): A call to a function declared in the
35385 current unit cannot be inlined if it appears in the body of a withed
35386 unit, to avoid order of elaboration problems in gigi.
35388 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35389 information for protected (wrapper) operation as well, to simplify gdb
35392 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35393 protected body, indicate that the entity for the generated spec comes
35394 from source, to ensure that references are properly generated for it.
35395 (Build_Body_To_Inline): Do not inline a function that returns a
35398 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35399 apply convention to homonyms that are declared explicitly.
35401 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35402 that renames an equality operator and the operands are overloaded,
35403 resolve them with the declared formal types, before rewriting as an
35406 2004-03-29 GNAT Script <nobody@gnat.com>
35408 * Make-lang.in: Makefile automatically updated
35410 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35412 * memtrack.adb: Log realloc calls, which are treated as free followed
35415 2004-03-25 Vincent Celier <celier@gnat.com>
35417 * prj-makr.adb (Process_Directories): Detect when a file contains
35418 several units. Do not include such files in the config pragmas or
35419 in the naming scheme.
35421 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35422 Resolve links only when not in Trusted_Mode.
35423 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35424 Do not resolve links for the display names.
35426 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35427 resolve links when computing the display names.
35429 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
35431 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35432 attribute reference does not denote a subtype, it can be any
35433 expression that has a classwide type, potentially after an implicit
35434 dereference. In particular, the prefix can be a view conversion for
35435 a classwide type (for which Is_Object_Reference holds), but it can
35436 also be a value conversion for an access-to-classwide type. In the
35437 latter case, there is an implicit dereference, and the original node
35438 for the prefix does not verify Is_Object_Reference.
35440 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35441 conversion of a discriminant-dependent component of a mutable object
35444 2004-03-25 Ed Schonberg <schonberg@gnat.com>
35446 * freeze.adb (Freeze_Entity): When an inherited subprogram is
35447 inherited, has convention C, and has unconstrained array parameters,
35448 place the corresponding warning on the derived type declaration rather
35449 than the original subprogram.
35451 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35452 indication on renaming declaration, if formal has a box and actual
35455 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35456 determine whether to generate an implicit or explicit reference to
35457 the renamed entity.
35459 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35460 subprogram renaming comes from a defaulted formal subprogram in an
35463 2004-03-25 Gary Dismukes <dismukes@gnat.com>
35465 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35466 value expressions to ensure that calls within a component definition
35467 will be checked (since those are evaluated during the record type's
35470 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
35472 * s-tpobop.adb: Code clean up:
35473 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35475 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35477 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
35479 * Makefile.in: Clean up in the ravenscar run time.
35481 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35483 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35484 of No_Strict_Aliasing to build_pointer_type_for_mode.
35485 * utils.c (update_pointer_to): Walk pointer and ref chains.
35487 2004-03-22 Cyrille Comar <comar@act-europe.fr>
35489 * ali.ads: Fix Comment about Dynamic_Elab.
35491 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35492 Has_RACW, Is_Generic, etc.)
35493 (Output_Object, Gnatls): Take into account ALI files not attached to
35496 2004-03-22 Vincent Celier <celier@gnat.com>
35498 * gprep.adb: Change all String_Access to Name_Id
35499 (Is_ASCII_Letter): new function
35500 (Double_File_Name_Buffer): New procedure
35501 (Preprocess_Infile_Name): New procedure
35502 (Process_Files): New procedure
35503 (Gnatprep): Check if output and input are existing directories.
35504 Call Process_Files to do the real job.
35506 2004-03-22 Robert Dewar <dewar@gnat.com>
35508 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35509 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35511 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
35513 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35514 case when the source contains only comments.
35516 2004-03-22 Ed Schonberg <schonberg@gnat.com>
35518 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35519 declaration for a child subprogram body that acts as a spec, indicate
35520 that the entity in the declaration needs debugging information.
35522 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35523 full view if the subtype is created for a constrained record component;
35524 gigi has enough information to construct the record, and there is no
35525 place in the tree for the declaration.
35527 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35528 serial number for the dummy body that is built for analysis, to avoid
35529 inconsistencies in the generation of internal names when compiling
35532 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
35534 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35537 2004-03-22 GNAT Script <nobody@gnat.com>
35539 * Make-lang.in: Makefile automatically updated
35541 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35543 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35544 * trans.c (tree_transform, emit_index_check): Likewise.
35545 * utils.c (build_template): Likewise.
35546 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35547 (maybe_unconstrained_array, unchecked_convert): Likewise.
35548 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35549 (build_unary_op): Likewise.
35550 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35551 (fill_vms_descriptor): Likewise.
35552 (build_call_alloc_dealloc): Likewise.
35554 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35556 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
35559 * gnat_ug.texi: Add info directory category and entry.
35560 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35561 gnat_ug_wnt.texi: Regenerate.
35563 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
35565 * ada-tree.h: Update copyright notice.
35566 Minor reformatting.
35568 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
35570 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35571 as regular exception objects and not as mere integers representing the
35572 condition code. The latter approach required some dynamics to mask off
35573 severity bits, which did not fit well into the GCC table based model.
35574 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35575 exception data objects. We don't it and it would conflict with the other
35576 external symbol we have to generate for such exceptions.
35578 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35579 the special code for VMS exceptions, since these are now represented
35580 as regular exceptions objects.
35582 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35584 * decl.c (debug_no_type_hash): Remove.
35585 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35586 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35588 2004-03-19 Laurent Guerby <laurent@guerby.net>
35590 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35591 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35593 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35595 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35596 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35597 (TYPE_RM_SIZE_INT): Directly use type.values.
35598 (TREE_LOOP_ID): Clean up check.
35599 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35600 TYPE_VALUES, not TYPE_FIELDS.
35601 * trans.c (convert_with_check): Delay access of bounds of basetype
35602 until sure is numeric.
35604 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
35606 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35609 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35610 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35611 Specific.Set instead of direct call to e.g pthread_setspecific.
35613 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
35615 * adaint.c: Update comments.
35617 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35618 GNATLIB_SHARED for FreeBSD.
35620 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
35622 * init.c [VxWorks]: Do not fix the stack size for the environment task.
35623 When needed (stack checking) the stack size is retrieved
35624 from the VxWorks kernel.
35626 * Makefile.in: Flag -nostdinc is required when building the run time
35627 for avoiding looking for files in the base compiler.
35628 Add the VxWorks specific version of the package body for
35629 System.Stack_checking.Operations (5zstchop.adb).
35631 * Make-lang.in: Add the object file for
35632 System.Stack_Checking.Operations.
35634 * Makefile.rtl: Add object file for the package
35635 System.Stack_Checking.Operations.
35637 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35639 * s-stache.ads, s-stache.adb: Move the operations related to stack
35640 checking from this package to package System.Stack_Checking.Operations.
35641 This way, stack checking operations are only linked in the final
35642 executable when using the -fstack-check flag.
35644 2004-03-18 Doug Rupp <rupp@gnat.com>
35646 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35649 * 5qsystem.ads, 5xcrtl.ads: New files.
35651 2004-03-18 Vincent Celier <celier@gnat.com>
35653 * prj.adb (Reset): Reset hash table Files_Htable
35655 * prj-env.adb (Source_Paths, Object_Paths): New tables.
35656 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35657 the procedures Add_To_Path_File.
35658 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35659 making sure that each directory is present only once and, for object
35660 dirs, when a directory already present is added, the duplicate is
35661 removed and the directory is always put as the last in the table.
35662 Write the path files at the end of these accumulations.
35664 * prj-nmsc.adb (Record_Source): Add source file name in hash table
35665 Files_Htable for all sources.
35667 * prj-proc.adb (Process): Remove restrictions between not directly
35668 related extending projects.
35670 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
35672 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35673 (Find_Sources): Minor speed optimization.
35675 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35676 parameter Trusted_Mode.
35678 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
35680 * scn.adb (Determine_License): Take into account a degenerated case
35681 when the source contains only comments.
35683 2004-03-18 Ed Schonberg <schonberg@gnat.com>
35685 * sem_warn.adb (Check_References): For a warning on a selected
35686 component that does not come from source, locate an uninitialized
35687 component of the record type to produce a more precise error message.
35689 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
35691 * 3zsoccon.ads: Fix multicast options.
35693 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35696 2004-03-15 Robert Dewar <dewar@gnat.com>
35698 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35699 pragma used for a private type.
35701 * lib-xref.adb (Generate_Reference): Do not generate warning if
35702 reference is in a different unit from the pragma Unreferenced.
35704 * 5vtpopde.adb: Minor reformatting
35705 Fix casing of To_Task_ID
35707 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35708 flag if we have an unchecked conversion to an access type in the same
35711 2004-03-15 Geert Bosch <bosch@gnat.com>
35713 * a-ngcoty.adb (Modulus): In alternate formula for large real or
35714 imaginary parts, use Double precision throughout.
35716 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35717 we want to be able to compile run-time with -gnata for testing, but
35718 this may also be instantiated in user code that is compiled with -gnata.
35720 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
35722 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35723 codes. Having a separate type for this is useful to enforce consistency
35724 throughout the various run-time units.
35725 (Exception_Data): Use Exception_Code for Import_Code.
35727 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35728 Natural and Integer in various places.
35729 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35730 with the severity bits masked off.
35731 (Register_VMS_Exception): Handle the additional exception data pointer
35734 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35735 component, now reflected by an exported accessor.
35736 (is_handled_by): New routine to compute whether the propagated
35737 occurrence matches some handler choice specification. Extracted out of
35738 get_action_description_for, and expanded to take care of the VMS
35740 (get_action_description_for): Use is_handled_by instead of an explicit
35741 complex condition to decide if the current choice at hand catches the
35742 propagated occurrence.
35744 * raise.h (Exception_Code): New type for C.
35746 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35747 System.Standard_Library.Exception_Code, to allow references from the
35748 pragma import/export expander.
35750 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35751 New accessors to allow easy access to GNAT exception data
35753 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35754 redundant Handled_By_Others component, helper for the personality
35755 routine which will now be able to call the appropriate exception data
35758 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35759 component of Standard_Exception_Type to be the closest possible to
35760 Exception_Code in System.Standard_Library, that we cannot get at this
35761 point. Expand a ??? comment to notify that this type node should
35762 probably be rewritten later on.
35764 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35765 registration call to include a pointer to the exception object in the
35768 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35769 instead of int and explicit bitmasks.
35771 2004-03-15 Vincent Celier <celier@gnat.com>
35773 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35774 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35776 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35777 longer needed now that it is in the spec of
35778 System.Tasking.Task_Attributes.
35780 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35782 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35784 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35786 * make.adb (Gnatmake): Do not check the executable suffix; it is being
35787 taken care of in Scan_Make_Arg.
35788 (Scan_Make_Arg): Add the executable suffix only if the argument
35789 following -o, in canonical case, does not end with the executable
35790 suffix. When in verbose mode and executable file name does not end
35791 with executable suffix, output the executable name, in canonical case.
35793 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35794 to avoid warnings when instantiating Ada.Task_Attributes.
35797 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35798 in the correct order.
35800 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35801 redirect standard output and error to a file for the invocation of the
35802 compiler, then read the file.
35804 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35805 directory, instead of the Value.
35806 (Find_Source_Dirs): Remove useless code & comments.
35808 2004-03-15 Ed Schonberg <schonberg@gnat.com>
35810 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35811 tagged type is inherited, and the parent operation is not frozen yet,
35812 force generation of a freeze node for the inherited operation, so the
35813 corresponding dispatch entry is properly initialized.
35814 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35815 when looking for user-defined equality operation.
35817 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35818 boolean when locating primitive equality of tagged component.
35820 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35821 bit-aligned field and the right-hand side a string literal, introduce
35822 a temporary before expanding assignment into a loop.
35824 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35825 priority in full, to ensure that any expanded subepxressions of it are
35826 elaborated in the scope of the init_proc.
35828 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35829 after object declaration, skipping over code that may have been
35830 generated for validity checks.
35832 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35833 discriminants, ignore the known discriminants of its full view, if
35834 any, to check legality.
35836 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35837 component if type has unknown discriminants.
35838 (Analyze_Private_Extension_Declaration): Discriminant constraint is
35839 null if type has unknown discriminants.
35841 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35842 for end label when present.
35844 * s-fileio.adb (Open): When called with a C_Stream, use given name for
35845 temporary file, rather than an empty string.
35847 2004-03-15 Ed Falis <falis@gnat.com>
35849 * s-thread.adb: Removed, no longer used.
35851 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35853 * decl.c (target.h): Now include.
35854 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35855 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35856 (validate_size): For POINTER_TYPE, get smallest size permitted on
35859 * fe.h: Sort Einfo decls and add Set_Mechanism.
35861 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35862 (ada/decl.o): Depends on target.h.
35864 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35865 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35867 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
35869 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35871 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35872 Insert_Dereference_Action when rewriting an implicit dereference into
35873 an explicit one, this will be taken care of during expansion of the
35874 explicit dereference.
35875 (Expand_N_Slice): Same. Always do the rewriting, even for the case
35876 of non-packed slices, since the dereference action generated by
35877 expansion of the explicit dereference is needed in any case.
35878 (Expand_N_Selected_Component): When rewriting an implicit dereference,
35879 analyze and resolve the rewritten explicit dereference so it is seen
35881 (Insert_Dereference_Action): This procedure is now called only for the
35882 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35883 dereferences that do not come from source (including explicit
35884 dereferences resulting from rewriting implicit ones), but do not
35885 recursively insert a check for the dereference nodes contained within
35887 (Insert_Dereference_Action): Clarify and correct comment.
35889 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
35892 Move language detection to the top level.
35893 * config-lang.in: Build by default.
35895 2004-03-05 Robert Dewar <dewar@gnat.com>
35897 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35899 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35900 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35901 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35902 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35903 unchecked conversion to spec to avoid warnings.
35905 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35908 * 7stpopsp.adb: Correct casing in To_Task_ID call
35910 * a-strsea.ads, a-strsea.adb: Minor reformatting
35912 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35914 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35915 Adjust Max_Msg_Length to be clearly large enough.
35917 * fe.h: Define In_Same_Source_Unit
35919 * osint.adb: Add pragma Warnings Off to suppress warnings
35920 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35923 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35925 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35927 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35929 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35931 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35933 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35934 node. We now do generate them for gcc back end.
35936 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35939 * sinput-c.adb: Fix bad name in header.
35940 Add pragma Warnings Off to suppress aliasing warning.
35942 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35944 * snames.h, snames.ads, snames.adb: Add entry for pragma
35945 No_Strict_Aliasing.
35947 2004-03-05 Vincent Celier <celier@gnat.com>
35949 * prj-com.ads: Add hash table Files_Htable to check when a file name
35950 is already a source of another project.
35952 * prj-nmsc.adb (Record_Source): Before recording a new source, check
35953 if its file name is not already a source of another project. Report an
35956 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35957 source file name, call gnatpp with all the sources of the main project.
35959 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35962 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35963 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35964 /RUNTIME_SYSTEM=, converted to --RTS=
35965 /NOTABS, converted to -notabs
35967 2004-03-05 Pascal Obry <obry@gnat.com>
35969 * make.adb: Minor reformatting.
35971 2004-03-05 Ed Schonberg <schonberg@gnat.com>
35973 Part of implemention of AI-262.
35974 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35976 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35979 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35980 when component type is a partially constrained class-wide subtype.
35981 (Constrain_Discriminated_Type): If parent type has unknown
35982 discriminants, a constraint is illegal, even if full view has
35984 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35985 with unknown discriminants whose full view is a discriminated record.
35987 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35988 flag, to handle properly derivations of tagged types with unknown
35990 (Analyze_Package_Spec, Analyze_Package_Body): Install
35991 Private_With_Clauses before analyzing private part or body.
35993 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35994 Has_Discriminants can be true for a given type (documentation).
35996 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
35998 * s-restri.ads: Fix license (GPL->GMGPL).
36000 * s-tassta.adb: Minor reformatting.
36002 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36003 by calls to Exit_One_ATC_Level, since additional clean up is performed
36006 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
36007 by calls to Exit_One_ATC_Level, since additional clean up is performed
36010 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36012 * trans.c: Reflect GCC changes to fix bootstrap problem.
36013 Add warning for suspicious aliasing unchecked conversion.
36015 2004-03-05 GNAT Script <nobody@gnat.com>
36017 * Make-lang.in: Makefile automatically updated
36019 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
36021 * ali.adb (Read_Instantiation_Instance): Do not modify the
36022 current_file_num when reading information about instantiations, since
36023 this corrupts files in later references.
36025 2004-03-02 Vincent Celier <celier@gnat.com>
36027 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
36028 before checking if it is read-only.
36030 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
36031 of SRC_DIRS and eliminate duplicates.
36033 * gprcmd.adb: Replace command "path" with command "path_sep" to return
36034 the path separator.
36035 (Usage): Document path_sep
36037 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
36038 C++ compiler. No need for a script.
36039 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
36040 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
36043 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36044 where there are Ada sources.
36045 (Set_Ada_Paths): Only add to the include path the source dirs of project
36047 (Add_To_Path): Add the Display_Values of the directories, not their
36050 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36053 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36055 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36056 Value is canonicalized.
36057 (Language_Independent_Check): Do not copy Value to Display_Value when
36058 canonicalizing Value.
36060 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36061 path to find limited with cycles.
36062 (Parse_Single_Project): Use canonical cased path to find the end of a
36065 2004-03-02 Ed Schonberg <schonberg@gnat.com>
36067 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36068 and not a child unit.
36070 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36071 appear in a with_clause.
36073 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36074 only happen in type_annotate mode, do not try to elaborate it.
36076 * exp_util.adb (Force_Evaluation): If expression is a selected
36077 component on the left of an assignment, use a renaming rather than a
36078 temporary to remove side effects.
36080 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36081 inlined instance body, which is analyzed before the end of the
36084 2004-03-02 Robert Dewar <dewar@gnat.com>
36086 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36087 sem_ch4.adb: Use new feature for substitution of keywords in VMS
36089 * errout.ads, errout.adb: Implement new circuit for substitution of
36092 * sem_case.adb (Analyze_Choices): Place message properly when case is
36093 a subtype reference rather than an explicit range.
36095 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36097 2004-03-02 Doug Rupp <rupp@gnat.com>
36099 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36101 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
36103 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36105 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36107 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36110 2004-02-25 Robert Dewar <dewar@gnat.com>
36112 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36113 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36114 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36115 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36116 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36117 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36118 the defining instance of the type to avoid aliasing problems.
36119 Fix copyright header. Fix bad comments in package header.
36121 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36123 2004-02-25 Ed Schonberg <schonberg@gnat.com>
36125 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36126 rewritten as references when aliased through an address clause.
36128 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36129 whether call can be interpreted as an indirect call to the result of a
36130 parameterless function call returning an access subprogram.
36132 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
36135 * exp_ch7.adb (Make_Clean): Remove generation of calls to
36136 Unlock[_Entries], since this is now done by Service_Entries directly.
36138 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36140 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36141 Requeue_Call for better code readability. Change spec and update calls:
36142 PO_Service_Entries now unlock the PO on exit.
36143 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36144 PO_Service_Entries.
36146 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36148 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36150 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
36152 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36153 protected subprogram call and analyzing the result of such expanding
36154 in case when the called protected subprogram is eliminated.
36156 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36159 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
36161 * Makefile.in: Clean ups.
36163 2004-02-23 Ed Schonberg <schonberg@gnat.com>
36165 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36166 protected operations if original subprogram is flagged as eliminated.
36167 (Expand_N_Subprogram_Body): For a protected operation, create
36168 discriminals for next operation before checking whether the operation
36171 * exp_ch9.adb (Expand_N_Protected_Body,
36172 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36173 for internal protected operations if the original subprogram is
36176 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36177 declared in a single protected object.
36179 2004-02-23 Vincent Celier <celier@gnat.com>
36181 * prj-attr.adb: Make attribute Builder'Executable an associative array,
36182 case insensitive if file names are case insensitive, instead of a
36183 standard associative array.
36185 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36186 them as case insensitive on platforms where the file names are case
36189 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36190 project file has already been parsed that canonical path are compared.
36192 2004-02-23 Robert Dewar <dewar@gnat.com>
36194 * sinput-c.ads: Correct bad unit title in header
36196 * freeze.adb: Minor reformatting
36198 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36200 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36201 nonaddressable COMPONENT_REF that is removing padding that we are
36202 taking the address of, take the address of the padded record instead
36203 if item is variable size.
36205 2004-02-20 Robert Dewar <dewar@gnat.com>
36207 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36209 2004-02-20 Ed Schonberg <schonberg@gnat.com>
36211 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36212 itype references for the constrained designated type of a component
36213 whose base type is already frozen.
36215 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36217 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36218 avoid GCC warnings.
36220 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
36222 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36223 identifier for a phantom package that rewrites the formal package
36224 declaration with a box. The Add semantic decorations for the defining
36225 identifier from the original node (that represents the formal package).
36227 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36229 * Make-lang.in (ada/stamp-sdefault): Use the top level
36232 2004-02-19 Richard Henderson <rth@redhat.com>
36234 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36236 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
36238 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36239 Scan_ALI can be used for multiple ALI files without reinitializing
36242 2004-02-18 Robert Dewar <dewar@gnat.com>
36244 * debug.adb: Minor reformatting.
36246 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36248 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36249 to zero if there is an address clause.
36251 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
36253 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36255 2004-02-18 Gary Dismukes <dismukes@gnat.com>
36257 * layout.adb (Layout_Component_List): Revise generation of call to
36258 discriminant-checking function to pass selections of all of the type's
36259 discriminants rather than just the variant-controlling discriminant.
36261 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
36263 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36264 fail in the current setup and triggers spurious system error messages.
36265 Pretend it occurred and failed instead.
36267 2004-02-18 Vincent Celier <celier@gnat.com>
36269 * bld.adb: Mark FLDFLAGS as saved
36270 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36271 it is not the root project. Put each directory to be
36272 extended between double quotes to prevent it to be expanded on Windows.
36273 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36274 the project file. Set them back to their initial values if they have not
36275 been set in the project file.
36277 * gprcmd.adb: (Gprdebug, Debug): New global variables
36278 (Display_Command): New procedure
36279 (Usage): Document new command "linkopts"
36280 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36281 Implement new command "linkopts"
36282 Remove quotes that may be around arguments for "extend"
36283 Always call Normalize_Pathname with arguments formatted for the platform
36285 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36286 Change @echo to @$(display) in target clean to be able to clean silently
36288 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36290 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36293 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36294 = Extending_All when current project is an extending all project.
36296 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36297 set to True only for LINK command, after Unix switch -o.
36298 (Process_Arguments): Set Output_File_Expected to True for LINK command
36299 after Unix switch -o. When Output_File_Expected is True, never add an
36300 extension to a file name.
36302 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36303 option file name, only to the --for-linker= switch.
36304 (Option_File_Name): If option file name do not end with ".opt", append
36307 2004-02-18 GNAT Script <nobody@gnat.com>
36309 * Make-lang.in: Makefile automatically updated
36311 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36313 * Make-lang.in (stamp-sdefault): Do not depend on
36316 2004-02-12 Zack Weinberg <zack@codesourcery.com>
36318 * config-lang.in: Disable Ada by default until probe logic for
36319 a bootstrap Ada compiler can be moved to the top level configure
36322 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
36324 * decl.c (components_to_record): Don't claim that the internal fields
36325 we make to hold the variant parts are semantically addressable, because
36328 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36329 adjust the comment describing the modular type form when we can use it.
36330 (Install_PAT): Account for the Esiz renaming.
36332 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36333 sc_onstack context indication before raising the exception to which
36334 the signal is mapped. Allows better handling of later signals possibly
36335 triggered by the resumed user code if the exception is handled.
36337 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
36339 * 5zinit.adb: Removed, no longer used.
36341 2004-02-12 Robert Dewar <dewar@gnat.com>
36343 * ali.adb: Remove separating space between parameters on R line. Makes
36344 format consistent with format used by the binder for Set_Globals call.
36346 * atree.ads, atree.adb: Minor reformatting (new function header format)
36348 * bindgen.adb: Add Run-Time Globals documentation section containing
36349 detailed documentation of the globals passed from the binder file to
36352 * gnatls.adb: Minor reformatting
36354 * init.c (__gnat_set_globals): Add note pointing to documentation in
36357 * lib-writ.ads, lib-writ.adb: Remove separating space between
36358 parameters on R line.
36359 Makes format consistent with format used by the binder for Set_Globals
36362 * osint.ads: Add 2004 to copyright notice
36365 * snames.ads: Correct capitalization of FIFO_Within_Priorities
36366 Noticed during code reading, documentation issue only
36368 * usage.adb: Remove junk line for obsolete C switch
36369 Noticed during code reading
36371 2004-02-12 Vincent Celier <celier@gnat.com>
36373 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36374 extend for each directory, so that multiple /** directories are
36375 extended individually.
36376 (Recursive_Process): Set the default for LANGUAGES to ada
36378 * gprcmd.adb: Define new command "ignore", to do nothing.
36379 Implement new comment "path".
36381 * Makefile.generic: Suppress output when SILENT is set
36382 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36383 used, so that the correct compiler is invoked.
36384 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36385 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36387 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
36389 * Makefile.in: Clean ups and remove obsolete targets.
36391 2004-02-12 Ed Schonberg <schonberg@gnat.com>
36393 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36394 predicate declared in exp_util.
36396 * exp_util.adb: Add comments.
36398 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36399 visibility before compiling context of the subunit.
36401 * sem_res.adb (Check_Parameterless_Call): If the context expects a
36402 value but the name is a procedure, do not attempt to analyze as a call,
36403 in order to obtain more telling diagnostics.
36405 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36406 'Access on parameterless function calls.
36407 (Normalize_Actuals): For a parameterless function call with missing
36408 actuals, defer diagnostic until resolution of enclosing call.
36410 * sem_util.adb (Wrong_Type): If the context type is an access to
36411 subprogram and the expression is a procedure name, suggest a missing
36414 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
36415 Nathanael Nerode <neroden@gcc.gnu.org>
36419 Merge with libada-branch:
36420 * config-lang.in: Build libada only when ada is built.
36422 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36424 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36425 for a tagged type, verify that both formals have the same type.
36427 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36428 temporary when the formal is an in-parameter and the actual a possibly
36431 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36432 when expansion is disabled, to ensure proper name capture with
36433 overloaded literals. Condition can be of any boolean type, resolve
36436 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36437 renaming is for a formal subprogram with a default operator name, and
36438 there is a usable operator that is visible at the point of
36441 2004-02-09 Robert Dewar <dewar@gnat.com>
36443 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36444 rewrite to ignore errors in ali files, intended to allow tools downward
36445 compatibility with new versions of ali files.
36447 * ali.ads: Add new parameter Ignore_Errors
36449 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36450 duplicating the error message giving the file with restrictions.
36452 * debug.adb: Add debug flag I for gnatbind
36454 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36455 operators for the case where the operator is a defining operator.
36457 * exp_ch3.adb: Minor reformatting (new function spec format).
36459 * exp_ch4.adb: Add comment for previous change, and make minor
36460 adjustment to loop to always check for improper loop termination.
36461 Minor reformatting throughout (new function spec format).
36463 * gnatbind.adb: Implement -di debug flag for gnatbind
36465 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36467 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36469 * lib-load.adb: Fix bad assertion.
36470 Found by testing and code reading.
36471 Minor reformatting.
36473 * lib-load.ads: Minor reformatting.
36475 * lib-writ.adb: There is only one R line now.
36477 * lib-writ.ads: Add documentation on making downward compatible changes
36478 to ali files so old tools work with new ali files.
36479 There is only one R line now.
36480 Add documentation on format incompatibilities (with special GPS note)
36482 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36484 * par-load.adb: Minor reformatting
36486 * sem_ch8.adb: Fix to error message from last update
36487 Minor reformatting and restructuring of code from last update
36489 * par-prag.adb, snames.adb, snames.ads, snames.h,
36490 sem_prag.adb: Implement pragma Profile.
36492 * stylesw.adb: Implement -gnatyN switch to turn off all style check
36495 * usage.adb: Add line for -gnatyN switch
36497 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36499 2004-02-09 Albert Lee <lee@gnat.com>
36501 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36503 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36505 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36508 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36509 is nested in an instance that is not frozen yet, to avoid
36510 order-of-elaboration problems in gigi.
36512 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36513 body the attribute is legal.
36515 2004-02-09 Robert Dewar <dewar@gnat.com>
36517 * s-rident.ads: Minor comment correction
36519 * targparm.adb: Remove dependence on uintp completely. There was
36520 always a bug in Make in that it called Targparm before initializing
36521 the Uint package. The old code appeared to get away with this, but
36522 the new code did not! This caused an assertion error in gnatmake.
36524 * targparm.ads: Fix bad comment, restriction pragmas with parameters
36525 are indeed fully supported.
36527 2004-02-06 Alan Modra <amodra@bigpond.net.au>
36529 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36531 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
36533 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36534 with targetm.calls.promote_prototypes.
36536 2004-02-04 Robert Dewar <dewar@gnat.com>
36538 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36539 ali.ads, gprcmd.adb: Minor reformatting
36541 * bindgen.adb: Output restrictions string for new style restrictions
36544 * impunit.adb: Add s-rident.ads (System.Rident) and
36545 s-restri (System.Restrictions)
36547 * lib-writ.adb: Fix bug in writing restrictions string (last few
36550 * s-restri.ads, s-restri.adb: Change name Restrictions to
36551 Run_Time_Restrictions to avoid conflict with package name.
36552 Add circuit to read and acquire run time restrictions.
36554 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
36556 * restrict.ads, restrict.adb: Use the new restriction
36557 No_Task_Attributes_Package instead of the old No_Task_Attributes.
36559 * sem_prag.adb: No_Task_Attributes is a synonym of
36560 No_Task_Attributes_Package.
36562 * snames.ads, snames.adb: New entry for proper handling of
36563 No_Task_Attributes.
36565 * s-rident.ads: Adding restriction No_Task_Attributes_Package
36566 (AI-00249) that supersedes the GNAT specific restriction
36567 No_Task_Attributes.
36569 2004-02-04 Ed Schonberg <schonberg@gnat.com>
36572 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36573 body, an identifier may be wrapped in an unchecked conversion.
36575 2004-02-04 Vincent Celier <celier@gnat.com>
36577 * lib-writ.ads: Comment update for the W lines
36579 * bld.adb: (Expression): An empty string list is static
36581 * fname-uf.adb: Minor comment update
36583 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36585 * gnatbind.adb: Initialize Cumulative_Restrictions with the
36586 restrictions on the target.
36588 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
36590 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36593 2004-02-02 Arnaud Charlet <charlet@gnat.com>
36595 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36597 2004-02-02 Vincent Celier <celier@gnat.com>
36599 * gprcmd.adb (Check_Args): If condition is false, print the invoked
36600 comment before the usage.
36601 Gprcmd: Fail when command is not recognized.
36602 (Usage): Document command "prefix"
36604 * g-md5.adb (Digest): Process last block.
36605 (Update): Do not process last block. Store remaining characters and
36608 * g-md5.ads (Update): Document that several call to update are
36609 equivalent to one call with the concatenated string.
36610 (Context): Add fields to allow new Update behaviour.
36612 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36613 defaulted to False.
36614 When May_Fail is True and no existing file can be found, return No_File.
36616 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36619 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36620 spec file name instead on the W line.
36622 2004-02-02 Robert Dewar <dewar@gnat.com>
36624 * ali.adb: Read and acquire info from new format restrictions lines
36626 * bcheck.adb: Add circuits for checking restrictions with parameters
36628 * bindgen.adb: Output dummy restrictions data
36629 To be changed later
36631 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36632 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36633 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36634 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36635 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36637 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36638 the warning message on access to possibly uninitialized variable S)
36639 Minor changes for new restrictions handling.
36641 * gnatbind.adb: Minor reformatting
36642 Minor changes for new restrictions handling
36643 Move circuit for -r processing here from bcheck (cleaner)
36645 * gnatcmd.adb, gnatlink.adb: Minor reformatting
36647 * lib-writ.adb: Output new format restrictions lines
36649 * lib-writ.ads: Document new R format lines for new restrictions
36652 * s-restri.ads/adb: New files
36654 * Makefile.rtl: Add entry for s-restri.ads/adb
36656 * par-ch3.adb: Fix bad error messages starting with upper case letter
36659 * restrict.adb: Major rewrite throughout for new restrictions handling
36660 Major point is to handle restrictions with parameters
36662 * restrict.ads: Major changes in interface to handle restrictions with
36663 parameters. Also generally simplifies setting of restrictions.
36665 * snames.ads/adb: New entry for proper handling of No_Requeue
36667 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36668 restriction counting.
36669 Other minor changes for new restrictions handling
36671 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36672 Restriction_Warnings now allows full parameter notation
36673 Major rewrite of Restrictions for new restrictions handling
36675 2004-02-02 Javier Miranda <miranda@gnat.com>
36677 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36678 syntax rule for object renaming declarations.
36679 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36680 component definitions.
36682 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36684 (Array_Type_Declaration): Give support to access components. In addition
36685 it was also modified to reflect the name of the object in anonymous
36686 array types. The old code did not take into account that it is possible
36687 to have an unconstrained anonymous array with an initial value.
36688 (Check_Or_Process_Discriminants): Allow access discriminant in
36690 (Process_Discriminants): Allow access discriminant in non-limited types
36691 Initialize the new Access_Definition field in N_Object_Renaming_Decl
36692 node. Change Ada0Y to Ada 0Y in comments
36694 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36695 equality operators.
36696 Change Ada0Y to Ada 0Y in comments
36698 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36699 renamings Change Ada0Y to Ada 0Y in comments
36701 * sem_type.adb (Find_Unique_Type): Give support to the equality
36702 operators for universal access types
36703 Change Ada0Y to Ada 0Y in comments
36705 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36707 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36709 (N_Object_Renaming_Declaration): Addition of Access_Definition field
36710 Change Ada0Y to Ada 0Y in comments
36712 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36713 component definition and object renaming nodes
36714 Change Ada0Y to Ada 0Y in comments
36716 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
36718 * restrict.adb: Use the new restriction identifier
36719 No_Requeue_Statements instead of the old No_Requeue for defining the
36720 restricted profile.
36722 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36723 No_Requeue_Statements.
36725 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36726 that supersedes the GNAT specific restriction No_Requeue. The later is
36727 kept for backward compatibility.
36729 2004-02-02 Ed Schonberg <schonberg@gnat.com>
36731 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36732 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36733 pragma and fix incorrect ones.
36735 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36736 warning if the pragma is redundant.
36738 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
36740 * 5staprop.adb: Add missing 'constant' keywords.
36742 * Makefile.in: use consistent value for SYMLIB on
36743 platforms where libaddr2line is supported.
36745 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36747 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36750 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
36752 * init.c (__gnat_install_handler): Setup an alternate stack for signal
36753 handlers in the environment thread. This allows proper propagation of
36754 an exception on stack overflows in this thread even when the builtin
36755 ABI stack-checking scheme is used without support for a stack reserve
36758 * utils.c (create_field_decl): Augment the head comment about bitfield
36759 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36760 here, because the former is not accurate enough at this point.
36761 Let finish_record_type decide instead.
36762 Don't make a bitfield if the field is to be addressable.
36763 Always set a size for the field if the record is packed, to ensure the
36764 checks for bitfield creation are triggered.
36765 (finish_record_type): During last pass over the fields, clear
36766 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36767 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36768 from DECL_BIT_FIELD.
36770 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36772 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36773 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36774 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36776 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36778 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36780 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36781 (ZCX_By_Default): Likewise.
36782 (Front_End_ZCX_Support): Likewise.
36784 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36785 (Initialize_Lock): Mark Level unreferenced.
36786 (Sleep): Mark Reason unreferenced.
36787 (Timed_Sleep): Likewise.
36788 (Wakeup): Likewise.
36789 (Exit_Task): Use Result.
36790 (Check_No_Locks): Mark Self_ID unreferenced.
36792 * 5gtasinf.adb (New_Sproc): Make Attr constant.
36793 (Bound_Thread_Attributes): Make Sproc constant.
36794 (New_Bound_Thread_Attributes): Likewise.
36796 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36798 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36799 one-dimensional array an slice assignments, when component type is
36802 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36803 component type is controlled, and control_actions are in effect, use
36804 TSS procedure rather than generating inline code.
36806 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36807 arrays with controlled components.
36809 2004-01-26 Vincent Celier <celier@gnat.com>
36811 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36812 command line for the non VMS case.
36814 * gnatlink.adb (Process_Binder_File): When building object file, if
36815 GNU linker is used, put all object paths between quotes, to prevent ld
36816 error when there are unusual characters (such as '!') in the paths.
36818 * Makefile.generic: When there are sources in Ada and the main is in
36819 C/C++, invoke gnatmake with -B, instead of -z.
36821 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36822 from VMS_Conversion.
36823 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36824 specification of argument file on the command line.
36826 2004-01-26 Bernard Banner <banner@gnat.com>
36828 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36830 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36832 * snames.adb: Update copyright notice.
36833 Add info on slice assignment for controlled arrays.
36835 2004-01-23 Robert Dewar <dewar@gnat.com>
36837 * exp_aggr.adb: Minor reformatting
36839 * exp_ch9.adb: Minor code clean up
36841 Fix bad character in comment
36844 * targparm.adb (Get_Target_Parameters): Give clean abort error on
36845 unexpected end of file, along with more detailed message.
36847 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36849 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36852 * decl.c (copy_alias_set): New function.
36853 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36855 2004-01-23 Doug Rupp <rupp@gnat.com>
36857 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36858 lib$${file} in case subsequent character is not a separator.
36860 2004-01-23 Vincent Celier <celier@gnat.com>
36862 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36863 when the GCC version is at least 3.
36865 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36866 Remove all "Opt.", to prepare for opt split
36868 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36869 Extends_All. Set to True when the project parsed is an extending all
36870 project. Fails for importing an extending all project only when the
36871 imported project is an extending all project.
36872 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36873 depending on the value of Extends_All returned.
36875 * prj-proc.adb (Process): Check that no project shares its object
36876 directory with a project that extends it, directly or indirectly,
36877 including a virtual project.
36878 Check that no project extended by another project shares its object
36879 directory with another also extended project.
36881 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36882 Kind = N_With_Clause
36884 * prj-tree.ads: Minor reformatting
36885 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36887 2004-01-23 Ed Schonberg <schonberg@gnat.com>
36889 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36890 applies to a type with an incomplete view, use full view in Name of
36891 clause, for consistency with uses of Get_Attribute_Definition_Clause.
36893 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
36895 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36896 SCHED_RR, since other values are not supported by this policy.
36897 (Initialize): Move initialization of mutex attribute to package
36898 elaboration, to prevent early access to this variable.
36900 * Makefile.in: Remove mention of Makefile.adalib, unused.
36902 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36903 1ssecsta.ads: Removed, unused.
36905 2004-01-21 Javier Miranda <miranda@gnat.com>
36907 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36908 entity if already built in the current scope.
36910 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36911 reminder in internal scopes. Required for nested limited aggregates.
36913 2004-01-21 Doug Rupp <rupp@gnat.com>
36915 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36916 VMS. Replace all occurences of libgnat- and libgnarl- with
36917 libgnat$(hyphen) and libgnarl$(hyphen).
36918 Fixed shared library build problem on VMS.
36920 2004-01-21 Robert Dewar <dewar@gnat.com>
36922 * mlib-prj.adb: Minor reformatting
36924 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
36926 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36927 'constant' keywords for declaration of pointers that are not modified.
36929 * exp_pakd.adb: Fix English in comment.
36931 2004-01-21 Ed Schonberg <schonberg@gnat.com>
36934 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36935 copy all attributes of the parent, including the foreign language
36938 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
36941 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36942 for 'delay until' statement.
36944 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
36946 * Make-lang.in: Replace $(docdir) with doc.
36947 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36948 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36949 to use consistent MAKEINFO rule.
36950 (ada.man, ada.srcman): Dummy entry.
36951 (ADA_INFOFILES): Define.
36952 (ada.info, ada.srcinfo): New rules.
36954 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
36956 * utils.c: Update copyright notice, missed in previous change.
36958 2004-01-19 Vincent Celier <celier@gnat.com>
36960 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36961 args if Bind is True. Set First_ALI, if not already done.
36962 (Build_Library): For Stand Alone Libraries, extract from one ALI file
36963 an eventual --RTS switch, for gnatbind, and all backend switches +
36964 --RTS, for linking.
36966 2004-01-19 Robert Dewar <dewar@gnat.com>
36968 * sem_attr.adb, memtrack.adb: Minor reformatting
36970 2004-01-19 Ed Schonberg <schonberg@gnat.com>
36972 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36973 that rename enumeration literals. This is properly done in sem_eval.
36975 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36976 to functions that rename enumeration literals.
36978 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36979 functions that rename enumeration literals.
36981 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
36983 * Make-lang.in (utils.o): Depend on target.h.
36984 * utils.c: Include target.h.
36985 (process_attributes): Use targetm.have_named_sections instead
36986 of ASM_OUTPUT_SECTION_NAME.
36988 2004-01-16 Andreas Jaeger <aj@suse.de>
36990 * Makefile.in: Add $(DESTDIR).
36992 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
36994 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36995 also when not defining if a Size clause applies. That information is
36998 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
37000 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
37001 symbolic links for the shared gnat run time when needed.
37003 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
37005 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
37006 for writing, and terminate with an error message if not.
37008 2004-01-15 Ed Schonberg <schonberg@gnat.com>
37010 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
37011 warning on an access to subprogram in an instance, when the target
37012 type is declared in the same generic unit.
37013 (Eval_Attribute): If 'access is known to fail accessibility check,
37014 rewrite as a raise statement.
37016 2004-01-15 GNAT Script <nobody@gnat.com>
37018 * Make-lang.in: Makefile automatically updated
37020 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
37022 * Make-lang.in (ada.srcextra): Dummy entry.
37024 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
37026 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
37028 2004-01-13 Ed Schonberg <schonberg@gnat.com>
37030 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
37031 components that are initialized with aggregates.
37033 2004-01-13 Vincent Celier <celier@gnat.com>
37035 * gnatlink.adb (Process_Binder_File): To find directory of shared
37036 libgcc, if "gcc-lib" is not a subdirectory, look for the last
37037 subdirectory "lib" in the path of the shared libgnat or libgnarl.
37039 * make.adb (Gnatmake): If GCC version is at least 3, link with
37040 -shared-libgcc, when there is at least one shared library project.
37042 * opt.ads (GCC_Version): New integer constant.
37044 * adaint.c (get_gcc_version): New function.
37046 2004-01-13 Robert Dewar <dewar@gnat.com>
37048 * sem_dist.adb, sem_res.adb, sem_util.adb,
37049 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37050 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37052 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
37054 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37055 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37058 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37060 * misc.c: Remove trailing spaces.
37061 Update copyright notice missed in previous change.
37064 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37067 * Makefile.generic: Update copyright.
37068 Add license notice.
37070 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37071 of prefix/share/make.
37073 * Makefile.prolog: Update copyright.
37074 Add license notice.
37076 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
37078 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37079 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37080 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37083 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37086 2004-01-12 Javier Miranda <miranda@gnat.com>
37088 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37089 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37090 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37091 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37092 Component_Definition node.
37094 2004-01-12 Ed Falis <falis@gnat.com>
37096 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37098 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
37100 * link.c: Change default libgnat kind to STATIC for FreeBSD.
37102 2004-01-12 Bernard Banner <banner@gnat.com>
37104 * Makefile.in: map 86numaux to a-numaux for x86_64
37106 2004-01-12 Ed Schonberg <schonberg@gnat.com>
37108 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37109 generated to rename a generic actual, go to the actual itself, the
37110 subtype is not a user-visible entity.
37112 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37113 part is a private subtype, reset the visibility of its full view, if
37114 any, to be consistent.
37117 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37118 to use a generic package G as a formal package for another generic
37121 2004-01-12 Robert Dewar <dewar@gnat.com>
37123 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37125 * usage.adb: Remove mention of obsolete -gnatwb switch
37126 Noticed during code reading
37128 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
37130 * 1ssecsta.adb: Minor changes for -gnatwa warnings
37132 2004-01-12 GNAT Script <nobody@gnat.com>
37134 * Make-lang.in: Makefile automatically updated
37136 2004-01-09 Mark Mitchell <mark@codesourcery.com>
37138 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37140 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37142 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37144 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
37146 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37147 Update comment and copyright date.
37148 * stamp-xgnatug: Delete.
37150 2004-01-05 Robert Dewar <dewar@gnat.com>
37152 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37153 be modified by the binder generated main program if the -D switch is
37156 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37157 imported functions (since now we expect this to be done for imported
37160 * 5vtaprop.adb: Add several ??? for sections requiring more comments
37161 Minor reformatting throughout
37163 * 5zinit.adb: Minor reformatting
37164 Add 2004 to copyright date
37165 Minor changes to avoid -gnatwa warnings
37166 Correct some instances of using OR instead of OR ELSE (noted while
37167 doing reformatting)
37169 * sprint.adb: Minor updates to avoid -gnatwa warnings
37171 * s-secsta.ads, s-secsta.adb:
37172 (SS_Get_Max): New function to obtain high water mark for ss stack
37173 Default_Secondary_Stack is not a constant since it may be modified by
37174 the binder generated main program if the -D switch is used.
37176 * switch-b.adb: New -Dnnn switch for binder
37179 Make -gnatg imply all warnings currently in -gnatwa
37181 * vms_conv.adb: Minor reformatting
37182 Add 2004 to copyright notice
37183 Add 2004 to printed copyright notice
37185 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37186 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37187 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37188 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37189 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37190 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37191 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37192 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37193 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37194 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37195 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37196 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37197 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37198 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37199 checks.adb, clean.adb, cstand.adb, einfo.ads,
37200 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37201 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37202 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37203 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37204 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37205 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37206 Minor reformatting and code clean ups.
37207 Minor changes to prevent -gnatwa warnings
37209 * ali.adb: Minor reformatting and cleanup of code
37210 Acquire new SS indication of secondary stack use from ali files
37212 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37213 (since now we expect this to be done for imported functions)
37215 * bindgen.adb: Generate call to modify default secondary stack size if
37218 * bindusg.adb: Add line for new -D switch
37220 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37221 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37222 Add circuitry for both records and arrays to avoid gigi
37223 processing if the type involved has non-bit-aligned components
37225 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37226 N_String_Literal node always references an E_String_Literal_Subtype
37227 entity. This may not be true in the future.
37228 (Possible_Bit_Aligned_Component): Move processing of
37229 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37231 * exp_ch6.adb (Expand_Thread_Body): Pick up
37232 Default_Secondary_Stack_Size as variable so that we get value modified
37233 by possible -Dnnn binder parameter.
37235 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37236 (Type_May_Have_Bit_Aligned_Components): New function.
37238 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37239 (Type_May_Have_Bit_Aligned_Components): New function.
37241 * fe.h: (Set_Identifier_Casing): Fix prototype.
37242 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37243 Minor reformatting.
37245 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37246 importing constant atomic/volatile objects.
37247 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37248 unless explicit Pure_Function pragma given, to avoid insidious bug of
37249 call to non-pure imported function getting eliminated.
37251 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37252 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37253 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37254 Add 2004 to printed copyright notice
37256 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37259 * Makefile.rtl: Add entry for g-sestin.o
37260 g-sestin.ads: New file.
37262 * mdll.adb: Minor changes to avoid -gnatwa warnings
37264 * mlib-tgt.adb: Minor reformatting
37266 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37267 New switch Sec_Stack_Used (GNAT, GNATBIND)
37268 Make Default_Secondary_Stack_Size a variable instead of a constant,
37269 so that it can be modified by the new -Dnnn bind switch.
37271 * rtsfind.adb (Load_Fail): Give full error message in configurable
37272 run-time mode if all_errors mode is set. This was not done in the case
37273 of a file not found, which was an oversight.
37274 Note if secondary stack unit is used by compiler.
37276 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37277 ineffective elaborate all pragmas on non-visible packages (this
37278 happened when a renamed subprogram was called). Now the elaborate all
37279 always goes on the package containing the renaming rather than the one
37280 containing the renamed subprogram.
37282 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37283 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37285 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37286 has an Etype that references an E_String_Literal.
37287 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37288 always references an E_String_Literal_Subtype entity. This may not
37289 be true in the future.
37291 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37294 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37297 2004-01-05 Ed Falis <falis@gnat.com>
37299 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37302 2004-01-05 Vincent Celier <celier@gnat.com>
37304 * bld.adb: Minor comment updates
37305 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37308 * make.adb (Gnatmake): Special process for files to compile/check when
37309 -B is specified. Fail when there are only foreign mains in attribute
37310 Main of the project file and -B is not specified. Do not skip bind/link
37311 steps when -B is specified.
37313 * makeusg.adb: Document new switch -B
37315 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37317 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37319 * vms_data.ads: Add new GNAT PRETTY qualifier
37320 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37322 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37324 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37327 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37328 Set_Identifier_Casing.
37330 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37331 has size that overflows.
37333 2004-01-05 Gary Dismukes <dismukes@gnat.com>
37335 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37336 -gnatwa warning on static condition.
37338 2004-01-05 Doug Rupp <rupp@gnat.com>
37340 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37342 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
37344 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37345 all attributes, including read-only attribute.
37347 2004-01-05 Pascal Obry <obry@gnat.com>
37349 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37350 library naming scheme.
37352 * mlib-prj.adb (Build_Library): Generate different names for the static
37353 or dynamic version of the GNAT runtime. This is needed to support the
37354 new shared library naming scheme.
37355 (Process_Binder_File): Add detection of shared library in binder file
37356 based on the new naming scheme.
37358 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37359 scheme for the shared runtime libraries.
37362 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37364 (install-gnatlib): Do not create symlinks for shared libraries.
37365 (gnatlib-shared-default): Idem.
37366 (gnatlib-shared-dual-win32): New target. Not used for now as the
37367 auto-import feature does not support arrays/records.
37368 (gnatlib-shared-win32): Do not create copy for the shared libraries.
37369 (gnatlib-shared-vms): Fix shared runtime libraries names.
37371 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37372 dependent runtime shared library name.
37374 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
37376 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37379 2004-01-05 Ed Schonberg <schonberg@gnat.com>
37381 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37382 protected objects when allocator has a subtype indication, not a
37383 qualified expression. Note that qualified expressions may have to be
37384 checked when limited aggregates are implemented.
37386 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37387 pure, emit warning.
37388 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37389 subprogram is imported, remove warning.
37391 2004-01-05 Geert Bosch <bosch@gnat.com>
37393 * s-poosiz.adb: Update copyright notice.
37394 (Allocate): Use Task_Lock to protect against concurrent access.
37395 (Deallocate): Likewise.
37397 2004-01-05 Joel Brobecker <brobecker@gnat.com>
37399 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37402 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
37404 * gnat_ug.texi: Force a CVS commit by updating copyright.
37405 * gnat_ug_vxw.texi: Regenerate.
37406 * gnat_ug_wnt.texi: Regenerate.
37407 * gnat_ug_vms.texi: Regenerate.
37408 * gnat_ug_unx.texi: Regenerate.
37410 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
37412 * trans.c: Remove uses of "register" specifier in
37413 declarations of local variables.
37415 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
37417 * stamp-xgnatug: New stamp file.
37418 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
37419 (ada/doctools/xgnatug): Add $(build_exeext).
37420 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37421 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37423 2003-12-17 Ed Falis <falis@gnat.com>
37425 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37428 * a-exextr.adb: Add context clause for
37429 Ada.Exceptions.Last_Chance_Handler.
37431 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
37433 * cstand.adb (Create_Standard): Change the way how the declaration of
37434 the Duration type is created (making it the same way as it is for all
37435 the other standard types).
37437 2003-12-17 Robert Dewar <dewar@gnat.com>
37439 * s-crtl.ads: Fix header format
37440 Change Pure to Preelaborate
37442 2003-12-17 Ed Schonberg <schonberg@gnat.com>
37444 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37445 the expression type only if it is declared in the current unit.
37447 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37448 are universal and already analyzed, as can occur in constrained
37449 subcomponents that depend on discriminants, when one constraint is a
37452 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37453 type Any_Fixed is legal as the argument of a conversion, if only one
37454 fixed-point type is in context.
37456 2003-12-17 GNAT Script <nobody@gnat.com>
37458 * Make-lang.in: Makefile automatically updated
37460 2003-12-15 Robert Dewar <dewar@gnat.com>
37462 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37465 2003-12-15 Vincent Celier <celier@gnat.com>
37467 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37468 (Gnatchop): Do not set failure status when reporting the number of
37471 2003-12-15 Doug Rupp <rupp@gnat.com>
37473 * s-ctrl.ads: New file.
37475 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37477 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37478 (GNATBIND_OBJS): Add ada/s-crtl.o.
37480 * Makefile.in [VMS]: Clean up ifeq rules.
37482 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37483 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37484 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37485 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37486 s-tasdeb.adb: Update copyright.
37487 Import System.CRTL.
37488 Make minor modifications to use System.CRTL declared functions instead
37489 of importing locally.
37491 2003-12-15 GNAT Script <nobody@gnat.com>
37493 * Make-lang.in: Makefile automatically updated
37495 2003-12-11 Ed Falis <falis@gnat.com>
37497 * 5zinit.adb: Clean up.
37499 * 5zintman.adb (Notify_Exception): replaced case statement with a call
37500 to __gnat_map_signal, imported from init.c to support
37501 signal -> exception mappings that depend on the vxWorks version.
37504 Created and exported __gnat_map_signal to support signal -> exception
37505 mapping that is dependent on the VxWorks version.
37506 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37508 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
37510 * 5wosinte.ads: Link with -mthreads switch.
37512 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
37514 * init.c (__gnat_install_handler [NetBSD]): Set
37515 __gnat_handler_installed, as done on all other platforms.
37516 Remove duplicated code.
37518 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
37520 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37522 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
37524 * sinfo.ads: Fix inconsistent example code in comment.
37526 2003-12-11 Robert Dewar <dewar@gnat.com>
37528 * a-tiinau.adb: Add a couple of comments
37530 * sem_ch3.adb: Minor reformatting
37533 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37534 Minor reformatting throughout
37536 2003-12-11 Ed Schonberg <schonberg@gnat.com>
37538 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37539 bounds of a loop, create a separate block in order to generate proper
37540 cleanup actions to prevent memory leaks.
37542 * sem_res.adb (Resolve_Call): After a call to
37543 Establish_Transient_Scope, the call may be rewritten and relocated, in
37544 which case no further processing is needed.
37546 * sem_util.adb: (Wrong_Type): Refine previous fix.
37547 Fixes ACATS regressions.
37550 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37553 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
37555 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37556 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37559 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37562 2003-12-08 Robert Dewar <dewar@gnat.com>
37564 * 7sintman.adb: Minor reformatting
37566 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37567 standard linker options to get standard libraries linked. We now plan
37568 to provide dummy versions of these libraries to match the appropriate
37569 configurable run-time (e.g. if a library is not needed at all, provide
37570 a dummy empty library).
37572 * targparm.ads: Configurable_Run_Time mode no longer affects linker
37573 options (-L parameters and standard libraries). What we plan to do is
37574 to provide dummy libraries where the libraries are not required.
37576 * gnatbind.adb: Minor comment improvement
37578 2003-12-08 Javier Miranda <miranda@gnat.com>
37580 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37581 aggregate in the parent. Otherwise constants with limited aggregates
37582 are not supported. Add new formal to pass the component type (Ctype).
37583 It is required to call the corresponding IP subprogram in case of
37584 default initialized components.
37585 (Gen_Assign): In case of default-initialized component, generate a
37586 call to the IP subprogram associated with the component.
37587 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37588 of aggregate with default initialized components.
37589 (Has_Default_Init_Comps): Improve implementation to recursively check
37590 all the present expressions.
37592 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37593 to indicate that the initialization call corresponds to a
37594 default-initialized component of an aggregate.
37595 In case of default initialized aggregate with tasks this parameter is
37596 used to generate a null string (this is just a workaround that must be
37597 improved later). In case of discriminants, this parameter is used to
37598 generate a selected component node that gives access to the discriminant
37601 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37602 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37603 allocated aggregates with default-initialized components.
37605 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37606 the box notation is used in positional aggregates.
37608 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
37610 * lib.ads: Fix typo in comment
37612 2003-12-08 Vincent Celier <celier@gnat.com>
37614 * prj.adb (Project_Empty): New component Unkept_Comments
37615 (Scan): Remove procedure; moved to Prj.Err.
37617 * prj.ads (Project_Data): New Boolean component Unkept_Comments
37618 (Scan): Remove procedure; moved to Prj.Err.
37620 * prj-dect.adb: Manage comments for the different declarations.
37622 * prj-part.adb (With_Record): New component Node
37623 (Parse): New Boolean parameter Store_Comments, defaulted to False.
37624 Set the scanner to return ends of line and comments as tokens, if
37625 Store_Comments is True.
37626 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37627 comments are associated with these nodes. Store the node IDs in the
37629 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37631 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37632 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37633 current project. Call Tree.Restore afterwards. Set the various nodes
37634 for comment storage (Next_End, End_Of_Line, Previous_Line,
37637 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37638 defaulted to False.
37640 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37641 to False. When Truncated is True, truncate the string, never go to the
37643 (Write_End_Of_Line_Comment): New procedure
37644 (Print): Process comments for nodes N_With_Clause,
37645 N_Package_Declaration, N_String_Type_Declaration,
37646 N_Attribute_Declaration, N_Typed_Variable_Declaration,
37647 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37648 Process nodes N_Comment.
37650 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37651 without comments and there are some comments, set the flag
37652 Unkept_Comments to True.
37653 (Scan): If there are comments, set the flag Unkept_Comments to True and
37654 clear the comments.
37655 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37656 (Next_End_Nodes: New table
37657 (Comment_Zones_Of): New function
37658 (Scan): New procedure; moved from Prj. Accumulate comments in the
37659 Comments table and set end of line comments, comments after, after end
37661 (Add_Comments): New procedure
37662 (Save, Restore, Seset_State): New procedures
37663 (There_Are_Unkept_Comments): New function
37664 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37665 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37667 (First_Comment_After, First_Comment_After_End): New functions
37668 (First_Comment_Before, First_Comment_Before_End): New functions
37669 (Next_Comment): New function
37670 (End_Of_Line_Comment, Follows_Empty_Line,
37671 Is_Followed_By_Empty_Line): New functions
37672 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37673 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37674 (Set_Next_Comment): New procedure
37675 (Default_Project_Node): Associate comment before if the node can store
37678 * scans.ads (Token_Type): New enumeration value Tok_Comment
37679 (Comment_Id): New global variable
37681 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37682 defaulted to False.
37683 (Scan): Store position of start of comment. If comments are tokens, set
37684 Comment_Id and set Token to Tok_Comment when scanning a comment.
37685 (Set_Comment_As_Token): New procedure
37687 * sinput-p.adb: Update Copyright notice
37688 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37689 that no longer exists.
37691 2003-12-08 Javier Miranda <miranda@gnat.com>
37693 * sem_aggr.adb: Add dependence on Exp_Tss package
37694 Correct typo in comment
37695 (Resolve_Aggregate): In case of array aggregates set the estimated
37696 type of the aggregate before calling resolve. This is needed to know
37697 the name of the corresponding IP in case of limited array aggregates.
37698 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37699 in case of default initialized array components.
37701 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37702 types. Required to give support to limited aggregates in generic
37705 2003-12-08 Ed Schonberg <schonberg@gnat.com>
37707 * sem_ch3.adb (Check_Initialization): For legality purposes, an
37708 inlined body functions like an instantiation.
37709 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37710 until bounds are analyzed, to diagnose premature use of type.
37712 * sem_util.adb (Wrong_Type): Improve error message when the type of
37713 the expression is used prematurely.
37715 2003-12-08 GNAT Script <nobody@gnat.com>
37717 * Make-lang.in: Makefile automatically updated
37719 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
37721 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37722 they are automatically generated by Make-lang.in and cause nothing but
37723 maintenance troubles.
37725 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
37727 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37728 version of this unit).
37730 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
37732 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37733 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37734 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37735 the body of System.Interrupt_Management common to several targets.
37736 Update copyright notice when appropriate.
37738 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37741 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37742 to ensure that the kernel fills in the interrupted context structure
37743 before calling a signal handler, which is necessary to be able to
37744 unwind past it. Update the copyright notice.
37746 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
37748 * a-elchha.ads: New file.
37750 * a-elchha.adb: New default last chance handler. Contents taken from
37751 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37753 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37754 is moved to a-elchha.adb to provide a target-independent default last
37757 * Makefile.rtl: Add a-elchha.o
37759 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37761 2003-12-05 Ed Schonberg <schonberg@gnat.com>
37763 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37764 declared in an instance, do not inline the call if the instance is not
37765 frozen yet, to prevent order of elaboration problems.
37767 * sem_prag.adb: Add comments for previous fix.
37769 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37771 * g-table.adb: Use the right variable in Set_Item.
37772 Update copyright notice.
37774 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37776 * Makefile.in: Remove unused rules.
37778 2003-12-05 Vincent Celier <celier@gnat.com>
37780 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37781 -nostdlib. Not needed here after all.
37783 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
37786 * adaint.h, adaint.c, g-os_lib.ads:
37787 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37788 on some platforms (including FreeBSD), it is a 64 bit value.
37789 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37791 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
37793 * gnatvsn.ads (Library_Version): Now contain only the relevant
37795 (Verbose_Library_Version): New constant.
37797 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37798 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37799 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37801 * gnatlbr.adb: Clean up: replace Library_Version by
37802 Verbose_Library_Version.
37804 * make.adb, lib-writ.adb, exp_attr.adb:
37805 Clean up: replace Library_Version by Verbose_Library_Version.
37807 * 5lintman.adb: Removed.
37810 Update and simplify computation of LIBRARY_VERSION.
37811 Fix computation of GSMATCH_VERSION.
37812 5lintman.adb is no longer used: replaced by 7sintman.adb.
37814 2003-12-03 Robert Dewar <dewar@gnat.com>
37817 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37818 name. Modified to consider small non-bit-packed arrays as troublesome
37819 and in need of component-by-component assigment expansion.
37821 2003-12-03 Vincent Celier <celier@gnat.com>
37823 * lang-specs.h: Process nostdlib as nostdinc
37825 * back_end.adb: Update Copyright notice
37826 (Scan_Compiler_Arguments): Process -nostdlib directly.
37828 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
37831 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37832 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37833 included in HIE_NONE_TARGET_PAIRS.
37835 2003-12-03 Ed Schonberg <schonberg@gnat.com>
37838 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37839 is legal in an instance, because legality is cheched in the template.
37842 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37843 appplied to an unchecked conversion of a formal parameter.
37846 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37849 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
37851 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37852 routines. The second one is new functionality to deal with backtracing
37853 through signal handlers.
37854 (unwind): Split into the two separate subroutines above.
37855 Update the documentation, and deal properly with sizeof (REG) different
37856 from sizeof (void*).
37858 2003-12-01 Nicolas Setton <setton@act-europe.fr>
37860 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37861 so that the debugger can reliably access the value of the parameter,
37862 and therefore is able to display the exception name when an exception
37863 breakpoint is reached.
37865 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
37867 * fmap.adb: Fix typo in warning message.
37869 * g-socket.ads, g-socket.adb: Make Free a visible instance of
37870 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37872 2003-12-01 Vincent Celier <celier@gnat.com>
37874 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37876 (Build_Library): Get the switches only if Default_Switches is declared
37879 2003-12-01 Ed Schonberg <schonberg@gnat.com>
37881 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37882 actuals that are indexed components, reanalyze actual to ensure that
37883 packed array references are properly expanded.
37885 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37886 attempted assignment to a discriminant.
37888 2003-12-01 Robert Dewar <dewar@gnat.com>
37890 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37893 * switch-c.adb: Minor reformatting of comments
37895 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37897 * Makefile.in: Clean ups.
37899 2003-12-01 GNAT Script <nobody@gnat.com>
37901 * Make-lang.in: Makefile automatically updated
37903 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37905 * 5wsystem.ads: Disable zero cost exception, not ready yet.
37907 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
37909 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37910 to force serialization.
37912 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
37914 * g-socket.ads, g-socket.adb:
37915 Clarify documentation of function Stream. Introduce a Free procedure
37916 to release the returned Stream once it becomes unused.
37918 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37920 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
37922 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37923 since NT 4 cannot handle timeout values that are too large,
37924 e.g. DWORD'Last - 1.
37926 2003-11-26 Ed Schonberg <schonberg@gnat.com>
37929 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37930 in procedure calls and whose expansion must be deferred.
37932 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37936 (Build_Derived_Array_Type): Create operator for unconstrained type
37937 if ancestor is unconstrained.
37939 2003-11-26 Vincent Celier <celier@gnat.com>
37941 * make.adb (Project_Object_Directory): New global variable
37942 (Change_To_Object_Directory): New procedure
37943 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37944 of Change_Dir directly. Do not change working directory to object
37945 directory of main project after each compilation.
37946 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37948 Change to object directory of main project before binding step.
37949 (Initialize): Initialize Project_Object_Directory to No_Project
37952 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37953 binding a Stand-Alone Library.
37955 * output.adb: Update Copyright notice
37956 (Write_Char): Output buffer when full
37958 2003-11-26 Robert Dewar <dewar@gnat.com>
37960 * sem_ch13.adb: (Check_Size): Reset size if size is too small
37963 (Check_Size): Fix documentation to include bit-packed array case
37965 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37967 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37969 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37971 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
37974 * utils.c (init_gigi_decls): Change name of built-in setjmp to
37975 __builtin_setjmp, since this is apparently needed by recent
37978 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37980 * adadecode.c: Only include ctype.h if not IN_GCC.
37981 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37983 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
37986 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37987 signals and interrupts.
37989 * 5zintman.ads: New File.
37991 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37992 add exception signals to the set of unmasked signals.
37995 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37996 between signals and interrupts.
37997 Add to Unblocked_Signal_Mask the set of signals that are in
38001 Adding a check to see whether the Interrupt_ID we want to unmask is in
38002 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
38003 reason is that the index type of the Keep_Unmasked array is not always
38004 Interrupt_ID; it may be a subtype of Interrupt_ID.
38006 2003-11-24 Gary Dismukes <dismukes@gnat.com>
38009 (Remove_Side_Effects): Condition constantness of object created for a
38010 an unchecked type conversion on the constantness of the expression
38011 to ensure the correct value for 'Constrained when passing components
38012 of view-converted class-wide objects.
38014 2003-11-24 Robert Dewar <dewar@gnat.com>
38016 * par-load.adb (Load): Improve handling of misspelled and missing units
38017 Removes several cases of compilation abandoned messages
38019 * lib.adb: (Remove_Unit): New procedure
38021 * lib.ads: (Remove_Unit): New procedure
38023 * lib-load.adb: Minor reformatting
38025 2003-11-24 Vincent Celier <celier@gnat.com>
38028 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
38029 (Marking_Label): Label to mark processed source files. Incremented for
38031 (Gnatmake): Increase Marking_Labet for each executable
38032 (Is_Marked): Compare against marking label
38033 (Mark): Mark with marking label
38035 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
38038 Move the declaration of the TSD for System.Threads to System.Soft_Links.
38041 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38042 (rts-cert): build a single relocatable object for the run-time lib.
38045 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
38048 Use gnatls rather than gcc to obtain the location of GNAT RTL for
38051 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
38053 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38054 can not use it as before (that is, as a variable) when dumping it into
38055 the tree file. Add a local variable to store the result of this
38056 function and to be used as the string to be written into the tree.
38058 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38061 * sinput.adb (Source_First, Source_Last): In case of
38062 Internal_Source_File, replace returning attributes of
38063 Internal_Source_Ptr (which is wrong) with returning attributes of
38066 2003-11-24 Ed Schonberg <schonberg@gnat.com>
38069 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38070 used for implicit concatenation operators.
38074 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38075 task bodies that are in the scope of a Suppress pragma.
38076 (Check_A Call): Use the flag to prevent spurious elaboration checks.
38078 * sinfo.ads, sinfo.adb:
38079 New flag No_Elaboration_Check on function/procedure calls, to properly
38080 suppress checks on calls in task bodies that are within a local suppress
38084 (Expand_Concatenate_Other): Use the proper integer type for the
38085 expression for the upper bound, to avoid universal_integer computations
38088 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
38090 * .cvsignore: Delete.
38092 2003-11-21 Andreas Schwab <schwab@suse.de>
38094 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38096 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
38098 * 5wsystem.ads: Enable zero cost exception.
38100 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
38102 * 5ztiitho.adb: Remove an unreferenced variable.
38104 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
38106 * adaint.c: For FreeBSD, use mkstemp.
38108 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
38110 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38112 2003-11-21 Robert Dewar <dewar@gnat.com>
38114 * bld.adb: Remove useless USE of gnatvsn
38116 * gnatchop.adb: Minor reformatting
38117 Clean up version handling to be more consistent
38119 * gnatxref.adb: Minor reformatting
38121 * gprcmd.adb: Minor reformatting
38122 Fix output of copyright to be more consistent with other tools
38124 2003-11-21 Vincent Celier <celier@gnat.com>
38126 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38128 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
38130 * atree.adb (Initialize): Add initializations for global variables
38131 used in New_Copy_Tree.
38133 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38134 Internal_Source_File as the actual).
38135 Put the set of statements creating Any_Character before the set of
38136 statements creating Any_Array to have Any_Character fully initialized
38137 when it is used in creating Any_Array.
38139 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38140 not call Scan in case if the actual is Internal_Source_File
38141 Add 2003 to copyright note.
38143 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38144 processing Internal_Source_File.
38146 * types.ads: Add the constant Internal_Source_File representing the
38147 source buffer for artificial source-code-like strings created within
38148 the compiler (the definition of Source_File_Index is changed).
38150 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
38152 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38153 56system.ads: New file, FreeBSD version.
38155 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
38157 * Make-lang.in (ada.extraclean): Delete.
38159 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
38161 * gnatmem.adb: Clean up verbose output.
38163 * gprcmd.adb: Change copyright to FSF.
38165 2003-11-19 Vincent Celier <celier@gnat.com>
38167 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38168 and Version (ignored).
38170 * symbols.ads: (Policy): New type
38171 (Initialize): New parameter Reference, Symbol_Policy and
38173 Remove parameter Force.
38174 Minor reformatting.
38176 * snames.ads, snames.adbadb: New standard names
38177 Library_Reference_Symbol_File and Library_Symbol_Policy
38180 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38184 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38186 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38188 * prj.adb: (Project_Empty): New component Symbol_Data
38190 * prj.ads: (Policy, Symbol_Record): New types
38191 (Project_Data): New component Symbol_Data
38194 New attributes Library_Symbol_File, Library_Symbol_Policy and
38195 Library_Reference_Symbol_File.
38198 (Ada_Check): When project is a Stand-Alone library project, process
38199 attribute Library_Symbol_File, Library_Symbol_Policy and
38200 Library_Reference_Symbol_File.
38202 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38203 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38204 5sml-tgt.adb (Build_Dynamic_Library): New parameter
38205 Symbol_Data (ignored).
38207 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38208 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38209 functions Option_File_Name and Version_String. Set new options of
38210 gnatsym related to symbol file, symbol policy and reference symbol
38214 Extensive modifications to take into account the reference symbol file,
38215 the symbol policy, the library version and to put in the symbol file the
38216 minor and major IDs.
38218 * bld.adb (Process_Declarative_Items): Put second argument of
38219 gprcmd to_absolute between single quotes, to avoid problems with
38222 * bld-io.adb: Update Copyright notice.
38223 (Flush): Remove last character of a line, if it is a back slash, to
38224 avoid make problems.
38227 Implement new scheme with reference symbol file and symbol policy.
38229 * g-os_lib.ads: (Is_Directory): Clarify comment
38231 2003-11-19 Robert Dewar <dewar@gnat.com>
38233 * atree.adb: Move New_Copy_Tree global variables to head of package
38235 * errout.adb: Minor reformatting
38237 2003-11-19 Javier Miranda <miranda@gnat.com>
38239 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38240 Add reference to Ada0Y (AI-50217)
38242 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38243 sem_util.adb: Add reference to AI-50217
38245 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38247 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38249 * sem_aggr.adb: Complete documentation of AI-287 changes
38251 * par-ch4.adb: Document previous changes.
38253 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38254 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38257 * exp_aggr.adb: Add references to AI-287 in previous changes
38259 2003-11-19 Ed Schonberg <schonberg@gnat.com>
38262 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38263 in the rewriting is the result of an inlined call.
38265 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38266 parameter is a type conversion, use original node to construct the
38267 post-call assignment, because expression may have been rewritten, e.g.
38268 if it is a packed array.
38271 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38272 body, just as it is in an instance.
38273 Categorization routines
38275 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38276 Instantiate_Object): Set proper sloc reference for message on missing
38279 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
38281 * Makefile.in: Add FreeBSD libgnat pairs.
38283 * usage.adb: Fix typo in usage message.
38285 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
38287 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38288 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38289 pragma Thread_Body.
38290 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38292 * s-thread.adb: This file is now a dummy implementation of
38295 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
38297 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38299 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
38301 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38302 instanciation references in the parent type description.
38304 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38306 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38308 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38309 TYPE_PRECISION directly from esize.
38311 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
38314 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38316 * init.c: Initialization routines for FreeBSD
38318 * link.c: Link info for FreeBSD
38320 * sysdep.c: Add the case of FreeBSD
38322 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
38324 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38325 already called in System.Threads.
38327 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38328 environment task, as it has been moved to System.Threads.Initialization.
38330 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
38332 * adaint.c (__gnatlib_install_locks): Only reference
38333 __gnat_install_locks on VMS, since other platforms can avoid using
38334 --enable-threads=gnat
38336 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38338 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38340 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38341 TYPE_PACKED_ARRAY_TYPE_P.
38342 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38344 Part of PR ada/12806
38345 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38346 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38348 2003-11-17 Vincent Celier <celier@gnat.com>
38350 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38352 Do not set exit status to Failure when Warning is True.
38353 (Gnatchop): Make errors "no compilation units found" and
38354 "no source files written" warnings only.
38356 * make.adb (Gnatmake): When using a project file, set
38357 Look_In_Primary_Dir to False.
38358 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38359 and Local_Configuration_Pragmas in the project where they are declared
38360 not an extending project which might have inherited them.
38362 * osint.adb (Locate_File): If Name is already an absolute path, do not
38363 look for a directory.
38365 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38366 -gnats (Check_Syntax) is used, issue only a warning, not an error.
38368 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38369 in objects of type Variable_Value.
38371 * prj.ads: (Variable_Value): New component Project
38373 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38374 is in a project extended by Project.
38376 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38377 Project of Variable_Values to this new parameter value.
38378 (Expression): Set component Project of Variable_Values.
38379 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38380 Set the component Project in array elements.
38382 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
38384 * errout.adb: (Initialize): Add initialization for error nodes.
38386 * sem_ch12.adb (Initialize): Add missing initializations for
38387 Exchanged_Views and Hidden_Entities.
38389 2003-11-17 Ed Schonberg <schonberg@gnat.com>
38391 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38392 already instantiated tree for use in subsequent inlining.
38393 (Analyze_Associations, Instantiate_Formal_Subprogram,
38394 Instantiate_Object): improve error message for mismatch in
38397 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38398 instantiations of subprograms declared in instances.
38400 2003-11-17 Javier Miranda <miranda@gnat.com>
38402 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38403 executed only under the Extensions_Allowed flag.
38405 2003-11-17 Robert Dewar <dewar@gnat.com>
38407 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38409 (Address_Image): Fix bug of returning 0x instead of 0x0
38410 Minor reformatting (function specs).
38412 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38413 (missed case of 33-63)
38415 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38417 * s-thread.adb: Add comments for pragma Restriction
38419 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38420 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38422 2003-11-17 Ed Falis <falis@gnat.com>
38424 * s-thread.adb: Added No_Tasking restriction for this implementation.
38426 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
38428 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38429 instanciation references in the parent type description.
38431 2003-11-17 GNAT Script <nobody@gnat.com>
38433 * Make-lang.in: Makefile automatically updated
38435 2003-11-16 Jason Merrill <jason@redhat.com>
38437 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38438 and TAGS files that include them for each front end.
38440 2003-11-14 Andreas Jaeger <aj@suse.de>
38442 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38443 is the canonical version.
38444 * misc.c (gnat_handle_option): Likewise.
38446 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38448 * 5nsystem.ads: New file for x86_64-linux-gnu.
38450 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
38452 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38454 * comperr.adb: Fix logic in previous change.
38456 2003-11-13 Vincent Celier <celier@gnat.com>
38458 * 5bml-tgt.adb (Build_Dynamic_Library): Use
38459 Osint.Include_Dir_Default_Prefix instead of
38460 Sdefault.Include_Dir_Default_Name.
38462 * gnatlbr.adb: Update Copyright notice
38463 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38464 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38465 instead of Sdefault.Object_Dir_Default_Name
38468 (Process_Binder_File): Never suppress the option following -Xlinker
38471 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38472 Sdefault.Object_Dir_Default_Name.
38474 * osint.ads, osint.adb:
38475 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38476 Minor reformatting.
38478 * vms_conv.ads: Minor reformating
38479 Remove GNAT STANDARD and GNAT PSTA
38482 Allow GNAT MAKE to have several files on the command line.
38483 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38484 Sdefault.Object_Dir_Default_Name.
38486 Remove data for GNAT STANDARD
38489 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38490 Remove data for GNAT STANDARD
38491 Remove options and documentation for -gnatwb/-gnatwB: these warning
38492 options no longer exist.
38494 2003-11-13 Ed Falis <falis@gnat.com>
38496 * 5zthrini.adb: (Init_RTS): Made visible
38499 (Register): Removed unnecessary call to taskVarGet that checked whether
38500 an ATSD was already set as a task var for the argument thread.
38503 Updated comment to reflect that this is a VxWorks version
38504 Added context clause for System.Threads.Initialization
38505 Added call to System.Threads.Initialization.Init_RTS
38507 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
38510 (Init_RTS): New procedure, for the initialization of the run-time lib.
38513 Remove dependancy on System.Init, so that this file can be used in the
38514 AE653 sequential run-time lib.
38516 2003-11-13 Robert Dewar <dewar@gnat.com>
38518 * bindgen.adb: Minor reformatting
38520 2003-11-13 Ed Schonberg <schonberg@gnat.com>
38523 (Apply_Discriminant_Check): Do no apply check if target type is derived
38524 from source type with no applicable constraint.
38527 (Ensure_System_Dependency): Do not apply the style checks that may have
38528 been specified for the main unit.
38531 (Find_Selected_Component): Further improvement in error message, with
38535 (Resolve): Handle properly the case of an illegal overloaded protected
38538 2003-11-13 Javier Miranda <miranda@gnat.com>
38541 (Has_Default_Init_Comps): New function to check the presence of
38542 default initialization in an aggregate.
38543 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38544 extension aggregate of a limited record. In addition, a new formal
38545 was added to do not initialize the record controller (if any) during
38546 this recursive expansion of ancestors.
38547 (Init_Controller): Add support for limited record components.
38548 (Expand_Record_Aggregate): In case of default initialized components
38549 convert the aggregate into a set of assignments.
38551 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38552 describing the new syntax.
38553 Nothing else needed to be done because this subprogram delegates part of
38554 its work to P_Precord_Or_Array_Component_Association.
38555 (P_Record_Or_Array_Component_Association): Give support to the new
38556 syntax for default initialization of components.
38559 (Resolve_Aggregate): Relax the strictness of the frontend in case of
38560 limited aggregates.
38561 (Resolve_Record_Aggregate): Give support to default initialized
38563 (Get_Value): In case of default initialized components, duplicate
38564 the corresponding default expression (from the record type
38565 declaration). In case of default initialization in the *others*
38566 choice, do not check that all components have the same type.
38567 (Resolve_Extension_Aggregate): Give support to limited extension
38571 (Check_Initialization): Relax the strictness of the front-end in case
38572 of aggregate and extension aggregates. This test is now done in
38573 Get_Value in a per-component manner.
38575 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38576 expression corresponds to a limited aggregate. This test is now done
38579 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38582 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38583 present in an N_Component_Association node
38585 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
38587 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38588 type-conformant entry only if they are homographs.
38590 2003-11-13 GNAT Script <nobody@gnat.com>
38592 * Make-lang.in: Makefile automatically updated
38594 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38596 * adadecode.c: Use <> form of include for ctype.h.
38597 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38599 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38601 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38602 Works around PR middle-end/6552.
38604 2003-11-10 Ed Falis <falis@gnat.com>
38606 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38608 * 5zinit.adb: (Install_Handler): Moved back to spec
38609 (Install_Signal_Handlers): Deleted
38611 * 5zthrini.adb: Added context clause for System.Storage_Elements
38612 (Register): Only handles creation of taskVar; initialization moved to
38614 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38615 Added declaration of environment task secondary stack and
38618 * s-thread.adb: Implement bodies for thread body processing
38621 Added comment identifying supported targets for pragma Thread_Body.
38623 2003-11-10 Pascal Obry <obry@gnat.com>
38625 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38629 (Open): Properly check for string length before copying into the buffer.
38630 Raises Name_Error if buffer is too small. Note that this was a potential
38633 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
38635 * bindgen.adb, comperr.adb: Code clean ups.
38636 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38638 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
38640 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38642 2003-11-10 Vincent Celier <celier@gnat.com>
38645 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38648 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38650 * prj.adb: (Project_Empty): Add new boolean component Virtual
38652 * prj.ads: (Virtual_Prefix): New constant string
38653 (Project_Data): New boolean component Virtual
38655 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38656 a library project is extended by a virtual extending project.
38659 Modifications throughout to implement extending-all project, including:
38660 (Virtual_Hash, Processed_Hash): New hash tables
38661 (Create_Virtual_Extending_Project): New procedure
38662 (Look_For_Virtual_Projects_For): New procedure
38665 (Process): After checking the projects, if main project is an
38666 extending-all project, set the object directory of all virtual extending
38667 project to the object directory of the main project.
38668 Adjust error message when a virtual extending project has the same
38669 object directory as an project being extended.
38670 (Recursive_Process): If name starts with the virtual prefix, set Virtual
38671 to True in the project data.
38674 (Default_Project_Node): Add new boolean component Extending_All
38675 (Is_Extending_All): New function
38676 (Set_Is_Extending_All): New procedure
38678 * prj-tree.ads: (Is_Extending_All): New function
38679 (Set_Is_Extending_All): New procedure
38680 (Project_Node_Record): New boolean component Extending_All
38682 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38685 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38687 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38688 "gprcmd prefix" to define it.
38690 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
38692 * einfo.ads: Fix a typo and remove an extraneous word in comments.
38695 (Create_Dummy_Package_Unit): Set the scope of the entity for the
38696 created dummy package to Standard_Standard, not to itself, to
38697 defend other parts of the front-end against encoutering a cycle in
38701 (Analyze_With_Clause): When setting the entities for the successive
38702 N_Expanded_Names that constitute the name of a child unit, do not
38703 attempt to go further than Standard_Standard in the chain of scopes.
38704 This case arises from the placeholder units created by
38705 Create_Dummy_Package_Unit in the case of a with_clause for a
38706 nonexistent child unit.
38708 2003-11-10 Ed Schonberg <schonberg@gnat.com>
38711 (Expand_Thread_Body): Place subprogram on scope stack, so that new
38712 declarations are given the proper scope.
38715 (Check_Expr_Constants): Reject an expression that contains a constant
38716 created during expansion, and that appears after the object to which
38717 the address clause applies.
38719 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38720 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38721 that uses 'Range of a function call with controlled components, so
38722 that the function result can be finalized before starting the loop.
38725 (Find_Selected_Component): Improve error message when prefix is
38726 an implicit dereference of an incomplete type.
38728 2003-11-10 Robert Dewar <dewar@gnat.com>
38730 * opt.ads: New Print_Standard flag for -gnatS switch
38732 * sem_ch13.adb: Remove some additional checks for unaligned arrays
38734 * cstand.adb (Create_Standard): Print out package standard if -gnatS
38737 * debug.adb: Update doc for -gnatds to discuss relationship with new
38740 * sinfo.adb: Add new field Entity_Or_Associated_Node
38742 * sinfo.ads: Add new field Entity_Or_Associated_Node
38743 Update documentation for Associated_Node and Entity fields to clarify
38744 relationship and usage.
38747 (Write_Id): Properly process Associated_Node field in generic template
38750 Recognize new -gnatS switch for printing package Standard
38751 This replaces gnatpsta
38754 Add line for new -gnatS switch for printing package Standard
38755 This replaces gnatpsta
38757 2003-11-10 Andreas Jaeger <aj@suse.de>
38759 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38762 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38764 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38767 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38769 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38772 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38774 * sysdep.c: Add handling of cygwin.
38776 2003-11-10 GNAT Script <nobody@gnat.com>
38778 * Make-lang.in: Makefile automatically updated
38780 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38783 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38784 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38785 Replace GNAT_ROOT by GCC_ROOT.
38787 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38789 2003-11-06 Zack Weinberg <zack@codesourcery.com>
38791 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38792 and update for changed meaning of GET_MODE_BITSIZE.
38794 2003-11-04 Doug Rupp <rupp@gnat.com>
38796 * sysdep.c: Problem discovered during IA64 VMS port.
38797 [VMS] #include <unixio.h> to get proper prototypes.
38800 Issues discovered/problems fixed during IA64 VMS port.
38801 [VMS] #define _POSIX_EXIT for proper semantics.
38802 [VMS] #include <unixio.h> for proper prototypes.
38803 [VMS] (fork): #define IA64 version.
38804 (__gnat_os_exit): Remove unnecessary VMS specific code.
38806 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38808 Part of PR ada/12806
38809 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38813 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38816 * targtyps.c, decl.c, misc.c,
38817 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38818 routines to work around change in FP sizing semantics in GCC.
38821 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38823 * gigi.h: (enumerate_modes): New function.
38825 * Make-lang.in: (ada/misc.o): Add real.h.
38827 * misc.c: (enumerate_modes): New function.
38829 2003-11-04 Robert Dewar <dewar@gnat.com>
38831 * 3vtrasym.adb: Minor reformatting
38832 Use terminology encoded/decoded name, rather than C++ specific notion
38833 of mangling (this is the terminology used throughout GNAT).
38835 * einfo.h: Regenerated
38837 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38840 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38842 * par-prag.adb: Add dummy entry for Thread_Body pragma
38845 Add entries for System.Threads entities for thread body processing
38848 (Analyze_Pragma, Access attributes): Check these are not applied to a
38849 thread body, since this is not permitted
38851 * sem_prag.adb: Add processing for Thread_Body pragma.
38855 (Resolve_Call): Check for incorrect attempt to call a thread body
38856 procedure with a direct call.
38858 * snames.ads, snames.adb: Add entry for Thread_Body pragma
38859 Add names associated with thread body expansion
38861 * snames.h: Add entry for Thread_Body pragma
38863 * s-thread.adb: Add entries for thread body processing
38864 These are dummy bodies so far
38866 * s-thread.ads: Add documentation on thread body handling.
38867 Add entries for thread body processing.
38869 2003-11-04 Javier Miranda <miranda@gnat.com>
38872 (Build_Limited_Views): Return after posting an error in case of limited
38873 with_clause on subprograms, generics, instances or generic renamings
38874 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38875 on subprograms, generics, instances or generic renamings
38877 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
38879 * raise.c (setup_to_install): Correct mistake in last revision; two
38880 arguments out of order.
38882 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38883 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38884 notice, missed in previous change.
38885 Remove trailing blanks and other style errors introduced in previous
38888 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
38890 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38891 rid of the wrapper for a LJM type, ensuring we don't do that if the
38892 field is addressable. This avoids potential low level type view
38893 mismatches later on, for instance in a by-reference argument passing
38896 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38898 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38899 aligned at byte boundary.
38901 2003-11-04 Joel Brobecker <brobecker@gnat.com>
38903 * decl.c (components_to_record): Do not delete the empty variants from
38904 the end of the union type.
38906 2003-11-04 Ed Schonberg <schonberg@gnat.com>
38908 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38909 operation for a derived type, an explicit declaration may use a local
38910 subtype of Boolean.
38912 2003-11-04 Vincent Celier <celier@gnat.com>
38914 * make.adb (Gnatmake): Allow main sources on the command line with a
38915 library project when it is only for compilation (no binding or
38918 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38920 * Makefile.in: Remove many duplicate variables.
38922 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
38924 * Make-lang.in (dvi): Move targets to $(docobjdir).
38925 (gnat_ug_vms.dvi): Simplify rule and adjust target.
38926 (gnat_ug_wnt.dvi): Likewise.
38927 (gnat_ug_unx.dvi): Likewise.
38928 (gnat_ug_vxw.dvi): Likewise.
38929 (gnat_rm.dvi): Likewise.
38930 (gnat-style.dvi): Likewise.
38932 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38934 * gigi.h: Missed commit from update for C90.
38936 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38938 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38940 2003-10-31 Andreas Schwab <schwab@suse.de>
38942 * raise.c (get_action_description_for): Fix typo in last change.
38944 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
38947 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38948 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38950 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
38952 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38953 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38954 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38955 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38956 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38958 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
38961 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38962 numbers when symbol name is too long.
38964 2003-10-30 Ed Falis <falis@gnat.com>
38966 * g-signal.ads, g-signal.adb: New files
38968 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38970 * Makefile.rtl: Introduce GNAT.Signals
38972 2003-10-30 Robert Dewar <dewar@gnat.com>
38974 * freeze.adb: Minor reformatting
38976 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38978 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38979 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38980 New handling of Id_Check parameter to improve recognition of keywords
38981 used as identifiers.
38982 Update copyright notice to include 2003
38984 2003-10-29 Robert Dewar <dewar@gnat.com>
38986 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38987 sem_ch10.adb: Minor reformatting
38989 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38990 (Expand_Assign_Record): Test right hand side for bit unaligned as well
38992 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
38994 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38995 Support for TBK$SYMBOLIZE-based symbolic traceback.
38997 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
39000 Revert previous change, that did not work well when pragma No_Run_Time
39001 was used in conjunction with a run-time other than ZFP.
39003 2003-10-29 Vincent Celier <celier@gnat.com>
39006 (Gnatmake): When there are no Ada mains in attribute Main, disable the
39007 bind and link steps only is switch -z is not used.
39009 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
39011 * Makefile.generic: Remove duplicated setting of CC.
39013 * Makefile.prolog: Set CC to gcc by default, to override make's
39016 * einfo.h: Regenerated.
39018 2003-10-29 Ed Schonberg <schonberg@gnat.com>
39020 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
39021 current body, after compiling subunit.
39023 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
39024 when in deleted code, because gigi needs properly ordered freeze
39025 actions to annotate types.
39027 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
39028 prevent the premature freezing of record type that contains
39029 subcomponents with a private type that does not yet have a completion.
39031 2003-10-29 Javier Miranda <miranda@gnat.com>
39034 (Analyze_Package_Instantiation): Check that instances can not be used in
39035 limited with_clauses.
39038 (Analyze_Package_Renaming): Check that limited withed packages cannot
39039 be renamed. Improve text on error messages related to limited
39042 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39044 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39045 Update copyright notice.
39047 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39048 (Install_Limited_Context_Clauses): New subprogram that isolates all the
39049 checks required for limited context_clauses and installs the limited
39051 (Install_Limited_Withed_Unit): Complete its documentation.
39052 (Analyze_Context): Check that limited with_clauses are only allowed in
39054 (Install_Context): Call Install_Limited_Context_Clauses after the
39055 parents have been installed.
39056 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39057 package as 'From_With_Type'; this mark indicates that the limited view
39058 is installed. Used to check bad usages of limited with_clauses.
39059 (Build_Limited_Views): Do not add shadow entities to the scope's list
39060 of entities. Do not add real entities to the Non_Limited_Views chain.
39061 Improve error notification.
39062 (Remove_Context_Clauses): Remove context clauses in two phases:
39063 limited views first and regular views later (to maintain the
39065 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39066 its visible entities.
39068 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
39070 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39071 with any type that Is_Fixed_Point_Type.
39073 * sinfo.ads: Fix documentation for Associated_Node attribute.
39075 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
39077 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39078 both '-gnatc' and '-gnatt' are specified.
39080 * atree.adb (Initialize): Add initialization for Node_Count (set to
39083 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39085 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39086 do not consider as Pure.
39088 Part of implementation of function-at-a-time:
39090 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39091 (tree_transform): Add new argument to build_component_ref.
39092 (tree_transform, case N_Assignment_Statement): Make and return an
39094 (tree_transform): If result IS_STMT, set flags and return it.
39095 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39097 * utils2.c (build_simple_component_ref, build_component_ref): Add new
39099 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39100 (build_allocator): Likewise.
39102 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39103 Add new arg to build_component_ref.
39104 (maybe_unconstrained_array, unchecked_convert): Likewise.
39106 * ada-tree.def (EXPR_STMT): New code.
39108 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39110 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39111 build_component_ref calls.
39113 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39115 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39116 (build_component_ref): Add new argument, NO_FOLD_P.
39118 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
39120 * Makefile.generic: Add missing substitution on object_deps handling.
39123 * Make-lang.in (check-ada): Enable ACATS test suite.
39125 2003-10-27 Robert Dewar <dewar@gnat.com>
39128 (Freeze_Array_Type): We do not need an initialization routine for types
39129 derived from String or Wide_String. They should be treated the same
39130 as String and Wide_String themselves. This caused problems with the
39131 use of Initialize_Scalars.
39134 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39135 composites. This allows use of component clauses that are not byte
39139 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39140 is an attempt to pack an array of atomic objects.
39142 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39144 2003-10-27 Pascal Obry <obry@gnat.com>
39147 (Basename): Check for drive letters in a pathname only on DOS based OS.
39149 2003-10-27 Vincent Celier <celier@gnat.com>
39152 (Gnatmake): When unable to change dir to the object dir, display the
39153 content of the parent dir of the obj dir, to try to understand why this
39156 2003-10-27 GNAT Script <nobody@gnat.com>
39158 * Make-lang.in: Makefile automatically updated
39160 2003-10-27 Ed Schonberg <schonberg@gnat.com>
39163 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39164 should not be done in Save/Restore_Scope_Stack, because it is performed
39168 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39169 whether use clauses should be removed/restored.
39172 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39173 whether use clauses should be removed/restored.
39175 2003-10-26 Andreas Jaeger <aj@suse.de>
39177 * Makefile.in: Remove duplicated lines.
39179 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39181 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39182 minimize the differences with ACT tree.
39184 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39185 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39186 Gnatvsn.Gnat_Static_Version_String to reduce differences between
39189 2003-10-24 Pascal Obry <obry@gnat.com>
39192 * adadecode.c (ostrcpy): New function.
39193 (__gnat_decode): Use ostrcpy of strcpy.
39194 (has_prefix): Set first parameter a const.
39195 (has_suffix): Set first parameter a const.
39196 Update copyright notice. Fix source name in header.
39197 Removes a trailing space.
39199 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
39202 Remove the test against being in No_Run_Time_Mode before generating a
39203 call to Register_Tag. It is redundant with the test against the
39204 availability of the function Register_Tag.
39206 2003-10-24 Vincent Celier <celier@gnat.com>
39208 * g-catiio.adb: (Month_Name): Correct spelling of February
39210 * make.adb: (Mains): New package
39211 (Initialize): Call Mains.Delete
39212 (Gnatmake): Check that each main on the command line is a source of a
39213 project file and, if there are several mains, each of them is a source
39214 of the same project file.
39215 (Gnatmake): When a foreign language is specified in attribute Languages,
39216 no main is specified on the command line and attribute Mains is not
39217 empty, only build the Ada main. If there is no Ada main, just compile
39218 the Ada sources and their closure.
39219 (Gnatmake): If a main is specified on the command line with directory
39220 information, check that the source exists and, if it does, that the path
39221 is the actual path of a source of a project.
39224 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39225 Full_Path is True, return the full path instead of the simple file name.
39226 (Project_Of): New function
39229 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39230 defaulted to False.
39231 (Project_Of): New function
39233 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39235 * Makefile.generic:
39236 Ensure objects of main project are always checked and rebuilt if needed.
39237 Set CC to gcc by default.
39238 Prepare new handling of link by creating a global archive (not activated
39241 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39242 stringt.h: Update copyright notice. Remove trailing blanks.
39243 Fix source name in header.
39245 2003-10-24 Robert Dewar <dewar@gnat.com>
39247 * sem_ch12.adb: Minor reformatting
39250 Minor reformatting (including new function return style throughout)
39253 Minor reformatting (including new function return style throughout)
39255 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39257 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39258 stringt.h: Update copyright notice. Remove trailing blanks.
39259 Fix source name in header.
39261 2003-10-24 GNAT Script <nobody@gnat.com>
39263 * Make-lang.in: Makefile automatically updated
39265 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39267 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39268 stringt.h: Convert to ISO C90 declarations and definitions.
39270 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
39273 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39274 External_Tag attribute definition clauses.
39276 2003-10-23 Ed Schonberg <schonberg@gnat.com>
39279 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39280 child unit, generate a fully qualified name to avoid spurious errors
39281 when the context contains renamings of different child units with
39282 the same simple name.
39284 * exp_dbug.ads: Add documentation on name qualification for renamings
39287 2003-10-23 Robert Dewar <dewar@gnat.com>
39289 * g-regpat.ads, g-regpat.adb: Minor reformatting
39291 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39293 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39295 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39297 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39300 * urealp.h: (Machine): Update to proper definition.
39302 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39304 * init.c, adaint.c: Minor reformatting.
39306 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39308 * adaint.c (w32_epoch_offset): Define static const at file level.
39309 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39310 rather than t_create, t_access in call to GetFileTime. Use union
39311 to convert between FILETIME and unsigned long long.
39312 (__gnat_file_time_name): Test for invalid file handle.
39313 (__gnat_set_filetime_name): Support win32 targets using
39314 w32api SetFileTime.
39316 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39318 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39320 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39322 * decl.c (creat_concat_name): Const-ify prefix.
39324 * adaint.c: Include ctype.h if __MINGW32__.
39325 (__gnat_readlink): Mark arguments as possibly unused.
39326 (__gnat_symlink): Likewise.
39327 (__gnat_is_symbolic_link): Likewise.
39328 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
39330 (__gnat_file_time_name): Don't declare struct stat statbuf when
39332 (__gnat_is_absolute_path): Add parenthesis around condition of
39333 'if' statement to avoid warning.
39334 (__gnat_plist_init): Specify void as parameter.
39335 (plist_enter): Likewise.
39336 (plist_leave): Likewise.
39337 (remove_handle): Make static. Initialize prev.
39339 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39342 * Makefile.in: Disable build of gnatpsta.
39343 * cstreams.c (__gnat_full_name): Minor improvements and clean up
39344 of previous change.
39346 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39348 * tracebak.c (MAX): Avoid redefinition warning.
39350 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39351 Change msg to const char *.
39352 (__gnat_install_handler): Remove ss, unused.
39353 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39355 * cstreams.c (__gnat_full_name): Declare p only when used.
39356 (__gnat_full_name) [sgi] Return buffer.
39358 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39360 * mingw32.h: New file.
39361 * gnat_wrapper.adb: New file.
39363 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
39365 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39366 string match a pre compiled regular expression (the corresponding
39367 version of the function working on a raw regular expression)
39368 Fix typos in various comments
39369 Update copyright notice in spec
39371 2003-10-21 Gary Dismukes <dismukes@gnat.com>
39374 (Component_Needs_Simple_Initialization): Return False when the type is a
39375 packed bit array. Revise spec comments to document this case.
39378 (Expand_Pragma_Import): Set any expression on the imported object to
39379 empty to avoid initializing imported objects (in particular this
39380 covers the case of zero-initialization of bit arrays).
39381 Update copyright notice.
39383 2003-10-21 Ed Schonberg <schonberg@gnat.com>
39386 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39387 a subunit is missing.
39388 (Instantiate_Subprogram_Body): If body of function is missing, set type
39389 of return expression explicitly in dummy body, to prevent cascaded
39390 errors when a subunit is missing.
39394 (Access_Subprogram_Declaration): Verify that return type is valid.
39398 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39403 (Corresponding_Discriminant): If the scope of the discriminant is a
39404 private type without discriminant, use its full view.
39407 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
39409 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39410 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39411 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39412 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39413 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39414 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39415 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39416 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39417 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39418 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39419 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39420 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39421 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39422 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39423 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39424 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39425 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39426 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39427 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39428 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39429 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39430 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39431 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39432 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39433 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39434 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39435 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39436 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39437 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39438 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39439 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39440 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39441 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39442 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39443 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39444 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39445 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39446 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39447 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39448 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39449 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39450 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39451 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39452 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39453 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39454 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39455 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39456 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39457 vms_conv.ads, vms_conv.adb, vms_data.ads,
39458 vxaddr2line.adb: Files added. Merge with ACT tree.
39460 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39461 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39462 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39463 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39464 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39465 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39466 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39467 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39468 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39469 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39471 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39472 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39473 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39474 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39475 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39476 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39477 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39478 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39479 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39480 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39481 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39482 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39483 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39484 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39485 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39486 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39487 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39488 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39489 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39490 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39491 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39492 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39493 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39494 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39495 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39496 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39497 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39498 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39499 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39500 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39501 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39502 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39503 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39504 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39505 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39506 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39507 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39508 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39509 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39510 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39511 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39512 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39513 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39514 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39515 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39516 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39517 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39518 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39519 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39520 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39521 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39522 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39523 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39524 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39525 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39526 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39527 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39528 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39529 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39530 checks.adb, checks.ads, cio.c, comperr.adb,
39531 comperr.ads, csets.adb, cstand.adb, cstreams.c,
39532 debug_a.adb, debug_a.ads, debug.adb, decl.c,
39533 einfo.adb, einfo.ads, errout.adb, errout.ads,
39534 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39535 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39536 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39537 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39538 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39539 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39540 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39541 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39542 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39543 fe.h, fmap.adb, fmap.ads, fname.adb,
39544 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39545 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39546 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39547 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39548 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39549 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39550 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39551 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39552 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39553 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39554 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39555 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39556 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39557 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39558 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39559 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39560 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39561 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39562 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39563 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39564 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39565 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39566 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39567 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39568 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39569 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39570 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39571 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39572 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39573 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39574 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39575 layout.adb, lib.adb, lib.ads, lib-list.adb,
39576 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39577 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39578 link.c, live.adb, make.adb, make.ads,
39579 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39580 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39581 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39582 misc.c, mkdir.c, mlib.adb, mlib.ads,
39583 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39584 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39585 namet.adb, namet.ads, namet.h, nlists.ads,
39586 nlists.h, nmake.adt, opt.adb, opt.ads,
39587 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39588 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39589 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39590 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39591 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39592 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39593 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39594 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39595 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39596 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39597 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39598 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39599 prj-util.adb, prj-util.ads, raise.c, raise.h,
39600 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39601 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39602 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39603 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39604 scans.ads, scn.adb, scn.ads, s-crc32.adb,
39605 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39606 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39607 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39608 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39609 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39610 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39611 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39612 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39613 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39614 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39615 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39616 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39617 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39618 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39619 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39620 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39621 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39622 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39623 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39624 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39625 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39626 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39627 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39628 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39629 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39630 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39631 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39632 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39633 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39634 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39635 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39636 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39637 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39638 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39639 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39640 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39641 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39642 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39643 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39644 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39645 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39646 stringt.adb, stringt.ads, stringt.h, style.ads,
39647 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39648 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39649 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39650 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39651 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39652 table.adb, table.ads, targparm.adb, targparm.ads,
39653 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39654 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39655 ttypes.ads, types.ads, types.h, uintp.adb,
39656 uintp.ads, uintp.h, uname.adb, urealp.adb,
39657 urealp.ads, urealp.h, usage.adb, utils2.c,
39658 utils.c, validsw.adb, validsw.ads, widechar.adb,
39659 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39660 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39661 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39662 gnatvsn.ads: Merge with ACT tree.
39664 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39666 2003-10-20 Mark Mitchell <mark@codesourcery.com>
39668 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39669 (gnat_ug_vmx.info): Likewise.
39670 (gnat_ug_vxw.info): Likewise.
39671 (gnat_ug_wnt.info): Likewise.
39672 (gnat_rm.info): Likewise.
39673 (gnat-style.info): Likewise.
39675 * Make-lang.in (ada.install-info): Remove target.
39676 (info): New target.
39677 (install-info): Likewise.
39678 (gnat_ug_unx.info): Simplify rule.
39679 (gnat_ug_vmx.info): Likewise.
39680 (gnat_ug_vxw.info): Likewise.
39681 (gnat_ug_wnt.info): Likewise.
39682 (gnat_rm.info): Likewise.
39683 (gnat-style.info): Likewise.
39685 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
39687 * Make-lang.in: Replace uses of $(target_alias) with
39688 $(target_noncanonical).
39689 * ada/Makefile.in: Remove unused mention of $(target_alias).
39691 2003-10-06 Mark Mitchell <mark@codesourcery.com>
39693 * Make-lang.in (ada.info): Replace with ...
39695 (ada.dvi): Replace with ...
39698 2003-09-29 Zack Weinberg <zack@codesourcery.com>
39700 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39701 initialize dconstp5 and dconstmp5.
39703 2003-09-28 Richard Henderson <rth@redhat.com>
39705 * trans.c (tree_transform): Update call to expand_asm_operands.
39707 2003-09-21 Richard Henderson <rth@redhat.com>
39709 * trans.c, utils.c: Revert.
39711 2003-09-21 Richard Henderson <rth@redhat.com>
39713 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39716 2003-09-04 Michael Matz <matz@suse.de>
39718 * misc.c: Include "target.h".
39719 * Make-lang.in (misc.o): Add dependency on target.h.
39721 2003-09-03 DJ Delorie <dj@redhat.com>
39723 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39726 2003-08-30 Zack Weinberg <zack@codesourcery.com>
39728 * Makefile.in: Update substitutions to match changes to
39729 configure. Use include directives instead of @-insertions
39730 to read in host and target fragments. Add a rule to
39731 regenerate ada/Makefile.
39733 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
39735 * lang-options.h: Remove.
39736 * lang.opt: Add help text.
39738 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
39740 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39743 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
39745 * misc.c (gnat_handle_option): Don't handle filenames.
39747 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
39749 * Make-lang.in: Replace PWD with PWD_COMMAND.
39750 * Makefile.adalib: Likewise.
39751 * Makefile.in: Likewise.
39753 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
39755 * misc.c (gnat_argv): Revert last change.
39756 (gnat_handle_option, gnat_init_options): Copy arguments.
39758 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
39760 * misc.c (gnat_argv): Make const.
39762 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39764 * misc.c (save_argc, save_argv): Keep non-static!
39766 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39768 * misc.c (save_argc, save_argv): Make static.
39769 (gnat_init_options): New prototype.
39770 (gnat_init_options): Update.
39772 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39774 * gnat_ug.texi: Remove unlikely characters from @vars.
39775 * gnat_ug_vms.texi: Regenerate.
39777 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39779 * misc.c (record_code_position): Adjust emit_note call.
39781 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
39783 * misc.c (gnat_handle_option): Don't check for missing arguments.
39785 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
39787 * utils.c (end_subprog_body): Adjust expand_function_end call.
39789 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
39791 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39794 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
39796 * lang.opt: Declare Ada.
39797 * misc.c (gnat_init_options): Update.
39799 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
39801 * utils.c (begin_subprog_body): Adjust init_function_start call.
39803 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39805 * Make-lang.in: Update to use options.c and options.h.
39806 * misc.c: Include options.h not aoptions.h.
39807 (gnat_handle_option): Abort on unrecognized switch.
39808 (gnat_init_options): Request Ada switches.
39810 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39812 * lang.opt: Add -Wall.
39813 * misc.c (gnat_handle_option): Handle it.
39815 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
39817 * misc.c (gnat_handle_option): Fix warnings.
39819 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
39821 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39823 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
39825 * Make-lang.in: Update to handle command-line options.
39826 * lang.opt: New file.
39827 * misc.c: Include aoptions.h.
39828 (cl_options_count, cl_options): Remove.
39829 (gnat_handle_option): New.
39830 (gnat_decode_option): Remove.
39831 (LANG_HOOKS_DECODE_OPTION): Remove.
39832 (LANG_HOOKS_HANDLE_OPTION): Override.
39834 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
39836 * init.c, misc.c, trans.c, utils.c: Remove dead code.
39838 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
39840 * Makefile.in: Replace "host_canonical" with "host" for autoconf
39843 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
39845 * Make-lang.in: Update.
39846 * misc.c: Include opts.h. Define cl_options_count and cl_options.
39848 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
39850 * misc.c (gnat_init_options): Update.
39852 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39854 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39855 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39856 __attribute__ ((__unused__)).
39858 2003-06-05 Jan Hubicka <jh@suse.cz>
39860 * Make-lang.in: Add support for stageprofile and stagefeedback
39862 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39864 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39865 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39867 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
39869 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39870 Remove non-VMS directive.
39871 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39873 (Examples of gnatls Usage): Remove VMS alternative.
39875 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
39878 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39879 and turn ZCX_By_Default back to False since the underlying support
39880 is not quite there yet.
39882 2003-06-01 Andreas Jaeger <aj@suse.de>
39884 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39885 and ROUND_TYPE_SIZE_UNIT.
39887 2003-05-22 Geert Bosch <bosch@gnat.com>
39889 * gnat_rm.texi : Remove reference to Ada Core Technologies.
39891 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
39893 * trans.c (tree_transform): Use location_t and input_location
39895 (build_unit_elab): Likewise.
39896 * utils.c (create_label_decl): Likewise.
39898 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
39900 * trans.c (tree_transform, build_unit_elab,
39901 set_lineno): Rename lineno to input_line.
39902 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39903 end_subprog_body): Likewise.
39904 * utils2.c (build_call_raise): Likewise.
39906 2003-05-01 Laurent Guerby <guerby@acm.org>
39909 * 5iosinte.ads: Increase pthread_cond_t size to match recent
39910 LinuxThread and NPTL version, merge from ACT.
39912 2003-04-28 Zack Weinberg <zack@codesourcery.com>
39914 * utils.c (convert): No need to clear TREE_CST_RTL.
39916 2003-04-23 Geert Bosch <bosch@gnat.com>
39918 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39919 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39920 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39921 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39922 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39923 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39924 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39925 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39926 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39927 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39928 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39929 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39930 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39931 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39932 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39933 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39934 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39935 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39936 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39937 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39938 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39939 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39940 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39941 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39942 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39943 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39944 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39945 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39946 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39947 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39948 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39949 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39950 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39951 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39952 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39953 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39954 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39955 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39956 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39957 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39958 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39959 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39960 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39961 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39962 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39963 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39964 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39965 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39966 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39967 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39968 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39969 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39970 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39971 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39972 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39973 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39974 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39975 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39976 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39977 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39978 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39979 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39980 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39981 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39982 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39983 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39984 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39985 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39986 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39987 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39988 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39989 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39990 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39991 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39992 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39993 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39994 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39995 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39996 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39997 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39998 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39999 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40000 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
40001 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
40002 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
40003 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
40004 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
40005 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
40006 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
40007 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
40008 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
40009 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
40010 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
40011 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
40012 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
40013 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
40014 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
40015 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
40016 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
40017 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
40018 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
40019 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
40020 ali.adb, ali.ads, alloc.ads, argv.c,
40021 atree.adb, atree.ads, atree.h, aux-io.c,
40022 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
40023 binde.adb, binde.ads, binderr.adb, binderr.ads,
40024 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
40025 butil.adb, butil.ads, cal.c, calendar.ads,
40026 casing.adb, casing.ads, ceinfo.adb, checks.adb,
40027 checks.ads, cio.c, comperr.adb, comperr.ads,
40028 config-lang.in, csets.adb, csets.ads, csinfo.adb,
40029 cstand.adb, cstand.ads, cuintp.c, debug.adb,
40030 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
40031 dec-io.ads, dec.ads, deftarg.c, directio.ads,
40032 einfo.adb, einfo.ads, elists.adb, elists.ads,
40033 elists.h, errno.c, errout.adb, errout.ads,
40034 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
40035 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
40036 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
40037 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
40038 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
40039 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
40040 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
40041 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40042 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40043 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40044 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40045 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40046 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40047 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40048 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40049 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40050 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40051 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40052 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40053 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40054 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40055 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40056 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40057 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40058 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40059 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40060 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40061 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40062 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40063 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40064 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40065 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40066 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40067 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40068 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40069 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40070 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40071 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40072 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40073 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40074 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40075 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40076 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40077 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40078 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40079 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40080 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40081 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40082 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40083 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40084 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40085 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40086 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40087 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40088 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40089 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40090 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40091 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40092 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40093 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40094 lib.adb, lib.ads, live.adb, live.ads,
40095 machcode.ads, make.adb, make.ads, makeusg.adb,
40096 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40097 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40098 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40099 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40100 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40101 mlib.ads, namet.adb, namet.ads, nlists.adb,
40102 nlists.ads, opt.adb, opt.ads, osint-b.adb,
40103 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40104 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40105 osint.ads, output.adb, output.ads, par-ch10.adb,
40106 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40107 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40108 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40109 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40110 par-tchk.adb, par-util.adb, par.adb, par.ads,
40111 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40112 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40113 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40114 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40115 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40116 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40117 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40118 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40119 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40120 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40121 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40122 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40123 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40124 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40125 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40126 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40127 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40128 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40129 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40130 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40131 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40132 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40133 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40134 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40135 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40136 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40137 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40138 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40139 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40140 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40141 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40142 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40143 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40144 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40145 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40146 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40147 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40148 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40149 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40150 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40151 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40152 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40153 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40154 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40155 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40156 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40157 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40158 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40159 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40160 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40161 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40162 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40163 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40164 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40165 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40166 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40167 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40168 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40169 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40170 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40171 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40172 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40173 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40174 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40175 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40176 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40177 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40178 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40179 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40180 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40181 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40182 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40183 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40184 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40185 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40186 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40187 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40188 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40189 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40190 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40191 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40192 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40193 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40194 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40195 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40196 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40197 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40198 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40199 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40200 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40201 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40202 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40203 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40204 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40205 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40206 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40207 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40208 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40209 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40210 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40211 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40212 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40213 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40214 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40215 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40216 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40217 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40218 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40219 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40220 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40221 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40222 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40223 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40224 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40225 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40226 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40227 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40228 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40229 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40230 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40231 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40232 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40233 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40234 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40235 snames.ads, sprint.adb, sprint.ads, stand.adb,
40236 stand.ads, stringt.adb, stringt.ads, style.adb,
40237 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40238 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40239 switch-m.ads, switch.adb, switch.ads, system.ads,
40240 table.adb, table.ads, targparm.adb, targparm.ads,
40241 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40242 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40243 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40244 ttypef.ads, ttypes.ads, types.adb, types.ads,
40245 uintp.adb, uintp.ads, uname.adb, uname.ads,
40246 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40247 usage.adb, usage.ads, validsw.adb, validsw.ads,
40248 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40249 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40250 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40251 formatting and other trivial changes from ACT.
40253 2003-04-12 Zack Weinberg <zack@codesourcery.com>
40255 * gigi.h, utils2.c (build_constructor):
40256 Rename gnat_build_constructor. Use build_constructor.
40257 * decl.c (gnat_to_gnu_entity)
40258 * trans.c (tree_transform, pos_to_constructor, extract_values)
40259 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40260 (unchecked_convert)
40261 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40262 (fill_vms_descriptor):
40265 2003-04-06 Zack Weinberg <zack@codesourcery.com>
40267 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40268 * misc.c (gnat_tree_size): New function.
40269 (LANG_HOOKS_TREE_SIZE): Override.
40271 2003-04-03 Jason Merrill <jason@redhat.com>
40273 * misc.c (gnat_adjust_rli): #if 0.
40275 2003-03-31 Geert Bosch <bosch@gnat.com>
40278 * link.c : Fix misspelled "const" keyword
40280 2003-03-23 Mark Mitchell <mark@codesourcery.com>
40283 * utils2.c: Adjust calls to put_var_into_stack.
40285 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40287 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40289 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
40291 * misc.c (gnat_init): Update for new prototype.
40293 2003-03-05 Olivier Hainque <hainque@gnat.com>
40296 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40297 warning, and fix return type for the IN_RTS && !SJLJ case.
40299 2003-03-04 Tom Tromey <tromey@redhat.com>
40301 * Make-lang.in (ada.tags): New target.
40303 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
40306 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40307 wrapper, which name remains constant whatever underlying GCC
40310 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40311 the stable interface needed for a-except.
40313 2003-03-02 Andreas Jaeger <aj@suse.de>
40315 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40316 gnat_ug_wnt.texi: Regenerate.
40318 2003-03-02 Laurent Guerby <guerby@acm.org>
40320 * Makefile.in (install-gnatlib): Match previous change there
40323 2003-02-28 Andreas Schwab <schwab@suse.de>
40325 * Make-lang.in (install-gnatlib): Change to ada directory before
40326 running make instead of using ada/Makefile directly.
40328 2003-02-18 Ben Elliston <bje@redhat.com>
40330 Part of PR ada/9406
40331 * gnat_ug.texi (Binder output file): Grammar fix.
40333 2003-02-18 Ben Elliston <bje@redhat.com>
40336 * 5qtaprop.adb (Sleep): Fix typo in comment.
40338 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
40340 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40341 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40342 gnat_ug_wnt.texi: Regenerate.
40344 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40346 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40347 be created if necessary.
40348 (ada.install-common): Let $(DESTDIR)$(bindir) be created
40349 if necessary. Remove erroneous and redundant gnatchop
40350 installation commands. Test for gnatdll before attempting
40352 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40353 and gnatdll from all plausible locations.
40355 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
40357 * utils2.c (build_unary_op): Don't check flag_volatile.
40358 * gnat_ug.texi: Remove -fvolatile from example.
40359 * gnat_ug_vxw.texi: Likewise.
40361 2003-01-29 Laurent Guerby <guerby@acm.org>
40364 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40365 * Makefile.in: match previous change.
40366 * Make-lang.in: match previous change.
40368 2003-01-29 Joel Sherrill <joel@OARcorp.com>
40370 * 5rosinte.ads: Add SIGXCPU.
40371 * 5rtpopsp.adb: New file.
40372 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40373 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40374 specific file 5rtpopsp.adb.
40375 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
40376 is likely needed for all newlib targets.
40377 * init.c: Add RTEMS specific version of __gnat_initialize().
40379 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40381 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40383 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40385 * init.c (__gnat_error_handler): Make msg const.
40387 * gmem.c (convert_addresses): Move declaration ...
40388 * adaint.h: ... here.
40389 * adaint.c (convert_addresses): Adapt addrs type to match
40392 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40394 2003-01-24 Andreas Schwab <schwab@suse.de>
40396 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40397 size_t to avoid warning.
40399 2003-01-21 Zack Weinberg <zack@codesourcery.com>
40401 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40403 2003-01-09 Geoffrey Keating <geoffk@apple.com>
40405 * gnat_rm.texi: Remove RCS version number.
40407 * ada-tree.h (union lang_tree_node): Add chain_next option.
40409 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40411 * Make-lang.in (ada.install-info, ada.install-common,
40412 ada.uninstall): Prepend $(DESTDIR) to the destination
40413 directory in all (un)installation commands.
40414 * Makefile.in (install-gnatlib, install-rts): Ditto.
40416 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
40418 * gnat_rm.texi, gnat_ug.texi: Use @copying.
40419 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40420 gnat_ug_wnt.texi: Regenerate.
40422 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
40424 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
40426 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40427 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40428 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40429 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40430 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40431 $(srcdir)/doc/include/gcc-common.texi.
40433 2002-12-15 Geert Bosch <bosch@gnat.com>
40435 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40437 2002-12-14 Geert Bosch <bosch@gnat.com>
40440 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40441 case of a body created for a Renaming_As_Body, on which
40442 conformance checks are not performed.
40444 2002-11-30 Zack Weinberg <zack@codesourcery.com>
40446 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40447 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40448 not already included.
40449 * Make-lang.in: Update dependencies.
40451 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
40452 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40453 solution to buffer overflow bug on GNU/Linux.
40455 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
40459 * bindgen.adb: Remove all references to Public_Version.
40460 * comperr.adb: Remove all references to Public_Version and
40461 GNATPRO_Version; correct bug reporting instructions.
40462 * comperr.ads: Change to match bug box.
40463 * gnatvsn.ads: Remove all references to Public version and
40466 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
40469 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40473 * config-lang.in: Remove diff_excludes.
40475 2002-11-05 Graham Stott <graham.stott@btinternet.com>
40478 * trans.c (gnu_pending_elaboration_lists): New GC root.
40479 (build_unit_elab): Use..
40481 2002-10-30 Geert Bosch <bosch@gnat.com>
40484 * misc.c : Include optabs.h
40486 * Make-lang.in (misc.o): Add dependency on optabs.h
40488 2002-10-29 Geert Bosch <bosch@gnat.com>
40491 * Make-lang.in (gnatbind): Depend on CONFIG_H
40493 2002-10-29 Geert bosch <bosch@gnat.com>
40496 * misc.c: Unrevert misc.c (1.13)
40498 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
40500 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40501 maintainership comments.
40503 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
40506 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40507 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40508 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40509 7staprop.adb: Correct statements in comments about
40510 maintainership of GNAT.
40513 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40514 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40515 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40516 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40517 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40518 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40519 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40520 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40521 comments about maintainership of GNAT.
40523 PR ada/6919 (forward port of patch for PR ada/5904)
40524 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40525 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40526 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40527 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40528 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40529 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40530 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40531 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40532 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40533 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40534 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40535 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40536 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40537 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40538 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40539 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40540 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40541 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40542 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40543 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40544 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40545 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40546 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40547 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40548 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40549 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40550 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40551 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40552 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40553 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40554 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40555 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40556 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40557 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40558 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40559 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40560 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40561 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40562 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40563 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40564 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40565 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40566 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40567 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40568 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40569 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40570 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40571 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40572 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40573 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40574 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40575 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40576 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40577 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40578 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40579 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40580 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40581 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40582 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40583 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40584 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40585 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40586 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40587 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40588 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40589 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40590 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40591 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40592 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40593 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40594 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40595 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40596 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40597 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40598 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40599 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40600 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40601 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40602 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40603 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40604 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40605 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40606 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40607 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40608 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40609 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40610 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40611 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40612 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40613 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40614 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40615 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40616 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40617 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40618 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40619 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40620 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40621 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40622 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40623 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40624 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40625 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40626 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40627 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40628 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40629 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40630 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40631 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40632 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40633 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40634 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40635 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40636 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40637 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40638 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40639 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40640 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40641 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40642 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40643 par-endh.adb par-labl.adb par-load.adb par-prag.adb
40644 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40645 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40646 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40647 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40648 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40649 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40650 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40651 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40652 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40653 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40654 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40655 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40656 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40657 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40658 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40659 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40660 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40661 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40662 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40663 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40664 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40665 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40666 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40667 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40668 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40669 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40670 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40671 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40672 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40673 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40674 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40675 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40676 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40677 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40678 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40679 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40680 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40681 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40682 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40683 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40684 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40685 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40686 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40687 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40688 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40689 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40690 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40691 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40692 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40693 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40694 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40695 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40696 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40697 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40698 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40699 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40700 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40701 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40702 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40703 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40704 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40705 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40706 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40707 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40708 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40709 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40710 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40711 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40712 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40713 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40714 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40715 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40716 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40717 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40718 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40719 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40720 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40721 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40722 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40723 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40724 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40725 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40726 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40727 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40728 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40729 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40730 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40731 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40732 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40733 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40734 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40735 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40736 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40737 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40738 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40739 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40740 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40741 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40742 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40743 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40744 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40745 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40746 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40747 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40748 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40749 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40750 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40751 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40752 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40753 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40754 stringt.ads stringt.h style.adb style.ads stylesw.adb
40755 stylesw.ads switch.adb switch.ads sysdep.c system.ads
40756 table.adb table.ads targparm.adb targparm.ads targtyps.c
40757 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40758 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40759 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40760 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40761 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40762 usage.ads utils.c utils2.c validsw.adb validsw.ads
40763 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40764 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40765 xtreeprs.adb: Correct statements in comments about maintainership
40768 2002-09-23 Zack Weinberg <zack@codesourcery.com>
40770 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40771 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40772 * gnatvsn.ads: Gnat_Version_String is now a function.
40773 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40774 copy the C version_string into a String and return it.
40775 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40776 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40777 Remove pragma Ident (Gnat_Version_String). If this was the
40778 sole use of package Gnatvsn, remove the with statement too.
40779 * gnat1drv.adb: Tweak -gnatv output.
40781 2002-09-17 Richard Henderson <rth@redhat.com>
40783 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40784 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40785 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40786 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40787 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40788 and real_2expN instead of a loop.
40789 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40790 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40792 2002-08-25 Andre Leis <a.leis@gmx.net>
40793 David Billinghurst <David.Billinghurst@riotinto.com>
40795 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40797 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40799 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40800 Remove $(CONFIG_H) dependency.
40802 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
40804 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40806 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40808 * adadecode.c (ada_demangle): Use xstrdup in lieu of
40810 * misc.c (gnat_decode_option): Likewise.
40812 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
40814 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40815 function approach did not work well because of a side effect (the
40816 function call could reallocate the table which was being indexed
40817 using its result). Fixes ada/4851. [RESURRECTED]
40819 2002-07-01 Roger Sayle <roger@eyesopen.com>
40821 * ada/utils.c (builtin_function): Accept an additional parameter.
40823 2002-06-28 Andreas Jaeger <aj@suse.de>
40826 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40829 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40831 * Makefile.in (SHELL): Set to @SHELL@.
40833 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40835 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40836 array size calculation.
40838 2002-06-04 Andreas Jaeger <aj@suse.de>
40840 * Make-lang.in (gnatbind): Readd rule that has been lost in last
40843 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
40845 Merge from pch-branch:
40847 * config-lang.in (gtfiles): Add ada-tree.h.
40848 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40849 (SET_TYPE_MODULUS): New.
40850 (SET_TYPE_INDEX): New.
40851 (SET_TYPE_DIGITS_VALUE): New.
40852 (SET_TYPE_RM_SIZE): New.
40853 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40854 (SET_TYPE_ADA_SIZE): New.
40855 (SET_TYPE_ACTUAL_BOUNDS): New.
40856 (SET_DECL_CONST_CORRESPONDING_VAR): New.
40857 (SET_DECL_ORIGINAL_FIELD): New.
40858 (TREE_LOOP_ID): Correct typo.
40859 * decl.c: Use new macros.
40860 * utils.c: Include debug.h, use new macros.
40861 * utils2.c: Use new macros.
40863 * ada-tree.h: Update all macros for new tree description.
40864 (struct tree_loop_id): New.
40865 (union lang_tree_node): New.
40866 (struct lang_decl): New.
40867 (struct lang_type): New.
40868 * misc.c (gnat_mark_tree): Delete.
40869 (LANG_HOOKS_MARK_TREE): Delete.
40870 * trans.c (tree_transform): No longer any need to cast
40873 * utils.c (struct language_function): New dummy structure.
40875 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40876 (misc.o): Likewise.
40877 (utils.o): Likewise; also gtype-ada.h.
40878 * Make-lang.in (gnat1): Add dependency on s-gtype.
40879 (gnatbind): Add dependency on $(CONFIG_H).
40880 * utils.c: Correct last #include.
40881 (stuct e_stack): Remove unnecessary 'static'.
40882 (mark_e_stack): Remove unused prototype.
40884 * scn-nlit.adb: Remove whitespace after version number to
40885 keep lines under 80 chars.
40886 * snames.adb: Likewise.
40887 * treepr.ads: Likewise.
40889 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40890 (misc.o): Likewise.
40891 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40892 * config-lang.in (gtfiles): New.
40893 * decl.c: Use gengtype for roots.
40894 * gigi.h: Use gengtype for roots.
40895 * trans.c: Use gengtype for roots.
40896 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
40898 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
40900 * misc.c (gnat_init): Adjust setting of internal_error_function.
40902 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
40904 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40905 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40906 gnat_ug_wnt.texi: Regenerate.
40908 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
40910 * 5ntaprop.adb (with System.OS_Primitives): Remove.
40912 * cstreams.c (max_path_len): Move from here ...
40913 * adaint.c (__gnat_max_path_len): ... to here.
40914 * adaint.c (__gnat_max_path_len): Declare.
40915 * g-dirope.adb (Max_Path): Adjust.
40916 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40917 * i-cstrea.ads (max_path_len): Adjust.
40918 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40919 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40921 * Makefile.in, Make-lang.in: Documentation is now built in
40922 Make-lang.in. Store Info and generated Texinfo files in the
40924 * gnat_ug.texi: Remove CVS keywords, correct version number.
40925 Set file name correctly.
40927 * gnat_ug_*.texi: Add.
40928 * .cvsignore: Ignore generated Texinfo files.
40930 2002-05-30 Zack Weinberg <zack@codesourcery.com>
40932 * ada.h: Add MI guard macro.
40933 (SUBTYPE): Define constants with an anonymous enum, not static
40935 (IN): Cast constants to appropriate type before use.
40937 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
40939 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40942 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40944 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40945 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40946 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40947 (ALL_ADA_CFLAGS): Likewise.
40948 (ADA_INCLUDES): Likewise.
40949 Adapt for new working dir.
40950 (GNATBIND): Use Makefile.in version.
40951 (.SUFFIXES): Copy from Makefile.in.
40952 (ada-warn): Define.
40953 (.adb.o, .ads.o): Copy from Makefile.in.
40954 Added $(OUTPUT_OPTION).
40955 (GNAT1_C_OBJS): Moved from Makefile.in.
40956 Prefix with ada subdir.
40957 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40958 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40959 Adapt for new working dir.
40960 (EXTRA_GNATBIND_OBJS): Likewise.
40961 (ADA_BACKEND): Moved from Makefile.in.
40962 Renamed to avoid conflict with global BACKEND.
40964 (TARGET_ADA_SRCS): Moved from Makefile.in.
40965 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40967 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40968 (ada_extra_files): Moved from Makefile.in.
40969 Prefix with ada subdir.
40970 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40971 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40972 (ada/nmake.ads): Likewise.
40973 (update-sources): Moved from Makefile.in.
40974 Prefix with ada subdir.
40975 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40976 (ADA_TREE_H): Likewise.
40977 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40978 (ada/memtrack.o): Likewise.
40979 (ada/adadecode.o): Likewise.
40980 Update dependencies.
40981 (ada/adaint.o): New.
40982 (ada/argv.o): Moved from Makefile.in.
40983 Prefix with ada subdir.
40984 Update dependencies.
40985 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40986 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40987 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40988 Prefix with ada subdir.
40989 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40990 (GNAT DEPENDENCIES): Regenerate.
40991 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40992 toplevel Makefile.in.
40993 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40994 (TARGET_ADA_SRCS): Removed.
40995 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40996 (GNATBIND_OBJS): Likewise.
40997 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40998 (BACKEND): Removed.
40999 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41000 (TREE_H): Likewise.
41001 (ada_extra_files): Likewise.
41002 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
41003 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
41004 (update-sources): Likewise.
41005 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
41006 (ADA_TREE_H): Likewise.
41007 (adadecoce.o): Likewise.
41008 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
41009 (GNAT DEPENDENCIES): Likewise.
41011 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41013 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
41014 * Makefile.in: Likewise.
41016 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41018 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
41019 Restore $(CONFIG_H) and prefix.o dependencies.
41020 (ada.stage[1-4]): Depend on stage?-start.
41022 * Makefile.in (b_gnatb.c): Depend on interfac.o.
41024 2002-05-02 Jim Wilson <wilson@redhat.com>
41026 * utils.c (finish_record_type): Change record_size to record_type.
41028 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
41030 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
41031 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
41032 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
41034 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
41036 * misc.c (gnat_parse_file): Update.
41038 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
41040 * misc.c (gnat_init): Don't set lang_attribute_common.
41042 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
41044 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41046 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
41048 * gnat_ug.texi: New file.
41050 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
41051 instead of gfdl.texi
41053 * xgnatug.adb, ug_words: New files.
41055 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
41056 gnat_rm and gnat-style manuals.
41058 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41060 * gigi.h (incomplete_type_error): Remove.
41061 * utils.c (incomplete_type_error): Remove.
41063 2002-04-16 Mark Mitchell <mark@codesourcery.com>
41065 * trans.c (tree_transform): Add has_scope argument to
41066 expand_start_stmt_expr.
41068 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41070 * gigi.h (truthvalue_conversion): Rename.
41071 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41072 * trans.c (tree_transform): Update.
41073 * utils2.c (truthvalue_conversion): Rename, update.
41074 (build_binary_op, build_unary_op): Update.
41076 2002-04-04 Laurent Guerby <guerby@acm.org>
41078 * make.adb: Implement -margs, remove restriction about file name placement.
41079 * makeusg.adb: Documentation update.
41080 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41081 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41083 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41085 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41086 (builtin_function): Similarly.
41088 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41090 * decl.c (gnat_to_gnu_entity): Update.
41091 * gigi.h (mark_addressable): Rename.
41092 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41093 * trans.c (tree_transform): Update.
41094 * utils.c (create_var_decl): Update.
41095 * util2.c (build_binary_op, build_unary_op,
41096 fill_vms_descriptor): Update.
41097 (mark_addressable): Rename, update.
41099 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41101 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41103 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41104 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41105 * trans.c (tree_transform, convert_with_check): Update.
41106 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41109 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
41111 * gigi.h (finish_incomplete_decl): Rename.
41112 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41113 * utils.c (gnat_init_decl_processing): Don't set hook.
41114 (finish_incomplete_decl): Rename.
41116 2002-03-29 Andreas Schwab <schwab@suse.de>
41118 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41121 2001-03-28 Robert Dewar <dewar@gnat.com>
41124 (Remove_Checks): New procedure
41127 (Remove_Checks): New procedure
41130 Use new Duplicate_Subexpr functions
41131 (Duplicate_Subexpr_No_Checks): New procedure
41132 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41133 (Duplicate_Subexpr): Restore original form (checks duplicated)
41134 (Duplicate_Subexpr): Call Remove_Checks
41137 (Duplicate_Subexpr_No_Checks): New procedure
41138 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41139 Add 2002 to copyright notice
41141 * sem_util.adb: Use new Duplicate_Subexpr functions
41144 (Eval_Indexed_Component): This is the place to call
41145 Constant_Array_Ref and to replace the value. We simply merge
41146 the code of this function in here, since it is now no longer
41147 used elsewhere. This fixes the problem of the back end not
41148 realizing we were clever enough to see that this was
41150 (Expr_Val): Remove call to Constant_Array_Ref
41151 (Expr_Rep_Val): Remove call to Constant_Array_Ref
41153 (Constant_Array_Ref): Deal with string literals (patch
41154 suggested by Zack Weinberg on the gcc list)
41156 2001-03-28 Ed Schonberg <schonber@gnat.com>
41158 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41159 Duplicate_Subexpr_Move_Checks.
41161 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41162 Duplicate_Subexpr_Move_Checks.
41164 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41165 value of array exists before retrieving it (it may a private
41166 protected component in a function).
41168 2002-03-28 Geert Bosch <bosch@gnat.com>
41170 * prj-pp.adb : New file.
41172 * prj-pp.ads : New file.
41174 2002-03-28 Andreas Jaeger <aj@suse.de>
41176 * Makefile.in (stamp-sdefault): Fix path for Makefile.
41178 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
41180 * misc.c (gnat_expand_expr): Move prototype.
41182 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41184 * misc.c (insert_default_attributes): Remove.
41186 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41188 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41189 (gnat_init): Don't set hook.
41190 (gnat_expand_expr): Fix prototype.
41192 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41194 * misc.c (ggc_p): Remove.
41196 2002-03-27 Geert Bosch <bosch@gnat.com>
41198 * prj-makr.ads, prj-makr.adb : New files.
41200 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
41202 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41203 (lang_mark_tree): Make static, rename.
41205 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
41207 * misc.c (maybe_build_cleanup): Remove.
41209 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
41211 * gigi.h (yyparse): Remove.
41213 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
41215 From Ben Brosgol <brosgol@gnat.com>
41216 * gnat_rm.texi: Sync with ACT version.
41218 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41220 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41221 (gnat_init): Remove old hook.
41223 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41225 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41226 (yyparse): Rename gnat_parse_file.
41228 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
41230 Delete all lines containing "$Revision:".
41231 * xeinfo.adb: Don't look for revision numbers.
41232 * xnmake.adb: Likewise.
41233 * xsinfo.adb: Likewise.
41234 * xsnames.adb: Likewise.
41235 * xtreeprs.adb: Likewise.
41237 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41239 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41240 gnat_tree_code_name): Delete.
41241 (tree_code_type, tree_code_length, tree_code_name): Define.
41242 (gnat_init): Don't try to copy into the various tree_code
41245 2002-03-11 Richard Henderson <rth@redhat.com>
41247 * Makefile.in (.NOTPARALLEL): Add fake tag.
41249 2002-03-07 Geert Bosch <bosch@gnat.com>
41251 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41252 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41253 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41254 switch-m.adb, switch-m.ads : New files.
41256 2002-03-07 Geert Bosch <bosch@gnat.com>
41258 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41259 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41260 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41261 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41262 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41263 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41264 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41265 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41266 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41267 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41268 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41269 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41270 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41271 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41272 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41273 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41274 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41275 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41276 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41277 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41278 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41279 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41280 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41281 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41282 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41283 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41284 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41285 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41286 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41287 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41288 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41289 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41290 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41291 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41292 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41293 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41294 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41295 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41296 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41297 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41298 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41299 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41300 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41301 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41302 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41303 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41304 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41305 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41306 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41307 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41308 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41309 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41310 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41311 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41312 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41313 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41314 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41315 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41316 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41317 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41318 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41319 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41320 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41321 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41322 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41323 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41324 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41325 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41326 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41327 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41328 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41329 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41330 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41331 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41332 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41333 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41334 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41335 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41336 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41337 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41338 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41339 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41340 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41341 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41342 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41343 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41344 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41345 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41346 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41347 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41348 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41349 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41350 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41351 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41352 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41353 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41354 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41356 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41357 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41358 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41359 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41361 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41362 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41364 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41365 to mdll-fil.ad[bs] and mdll-util.ad[bs]
41367 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41368 from mdllfile.ad[bs] and mdlltool.ad[bs]
41370 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41372 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41373 lieu of explicit sizeof/sizeof.
41375 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
41377 * misc.c (copy_lang_decl): Remove.
41379 2002-02-27 Zack Weinberg <zack@codesourcery.com>
41381 * misc.c: Delete traditional-mode-related code copied from the
41382 C front end but not used, or used only to permit the compiler
41385 2002-02-07 Richard Henderson <rth@redhat.com>
41387 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41388 * adaint.h (__gnat_to_gm_time): Update prototype.
41390 2002-01-30 Richard Henderson <rth@redhat.com>
41392 * trans.c (tree_transform) [N_Loop_Statement]: Use
41393 expand_exit_loop_top_cond.
41395 2001-12-23 Richard Henderson <rth@redhat.com>
41397 * utils.c (end_subprog_body): Push GC context around
41398 rest_of_compilation for nested functions.
41400 2001-12-23 Richard Henderson <rth@redhat.com>
41402 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41404 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
41406 * gnat-style.texi (Declarations and Types): Remove ancient style
41407 rule which was mandated by code generation issues.
41409 * gnat-style.texi (header): Add @dircategory, @direntry.
41410 (title page): Remove date.
41411 (general) Add @./@: where approriate, and two spaces after the
41412 full stop at the end of a sentence. Use @samp markup when
41413 referring concrete lexical entities (keywords, attribute names
41414 etc.), and @syntax for ARM grammar elements. Use @r for English
41415 text in comments. Use @emph for emphasis. Change "if-statements"
41416 etc. to "if statements" (without @samp). Break long lines. Make
41417 casing of section names consistent.
41418 (Identifiers): Use @samp markup for variable names.
41419 (Comments): Use @samp markup for comment characters. Line-end
41420 comments may follow any Ada code, not just statements. Fix
41421 misspelling of "Integer" as "integer".
41422 (Loop statements): Do not use variable name "I", use "J".
41423 (Subprogram Declarations): Document alignment.
41424 (Subprogram Bodies, Block statements): Document empty line before
41427 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
41429 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41430 function approach did not work well because of a side effect (the
41431 function call could reallocate the table which was being indexed
41432 using its result). Fixes ada/4851.
41434 2001-12-19 Robert Dewar <dewar@gnat.com>
41436 * bindgen.adb: Minor reformatting
41438 * cstand.adb: Minor reformatting
41440 * fmap.adb: Minor reformatting
41441 Change name from Add for Add_To_File_Map (Add is much too generic)
41442 Change Path_Name_Of to Mapped_Path_Name
41443 Change File_Name_Of to Mapped_File_Name
41444 Fix copyright dates in header
41447 Change name from Add for Add_To_File_Map (Add is much too generic)
41448 Change Path_Name_Of to Mapped_Path_Name
41449 Change File_Name_Of to Mapped_File_Name
41450 Fix copyright dates in header
41452 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
41453 Add use clause for Fmap.
41455 * make.adb: Minor reformatting
41457 * osint.adb: Minor reformatting. Change of names in Fmap.
41458 Add use clause for Fmap.
41460 * prj-env.adb: Minor reformatting
41462 * prj-env.ads: Minor reformatting
41464 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
41465 error found (there were odd exceptions to this general rule in
41466 -gnatec/-gnatem processing)
41468 2001-12-19 Olivier Hainque <hainque@gnat.com>
41470 * raise.c (__gnat_eh_personality): Exception handling personality
41471 routine for Ada. Still in rough state, inspired from the C++ version
41472 and still containing a bunch of debugging artifacts.
41473 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41474 inspired from the C++ library.
41476 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41477 exception handling integration.
41479 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41481 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41482 (HIE_SOURCES): Add s-secsta.ad{s,b}.
41483 (HIE_OBJS): Add s-fat*.o
41484 (RAVEN_SOURCES): Remove files that are no longer required. Add
41485 interrupt handling files.
41486 (RAVEN_MOD): Removed, no longer needed.
41488 2001-12-19 Robert Dewar <dewar@gnat.com>
41490 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41491 Add 2001 to copyright date
41493 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41494 need to force universal inlining for these cases.
41496 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41498 * s-taprob.adb: Minor clean ups so that this unit can be used in
41501 * exp_ch7.adb: Allow use of secondary stack in HI mode.
41502 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41504 2001-12-19 Vincent Celier <celier@gnat.com>
41506 * prj-tree.ads (Project_Node_Record): Add comments for components
41507 Pkg_Id and Case_Insensitive.
41509 2001-12-19 Pascal Obry <obry@gnat.com>
41511 * g-socket.adb: Minor reformatting. Found while reading code.
41513 2001-12-19 Robert Dewar <dewar@gnat.com>
41515 * prj-tree.ads: Minor reformatting
41517 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
41519 * config-lang.in (diff_excludes): Remove.
41521 2001-12-17 Ed Schonberg <schonber@gnat.com>
41523 * sem_res.adb (Resolve_Selected_Component): do not generate a
41524 discriminant check if the selected component is a component of
41525 the argument of an initialization procedure.
41527 * trans.c (tree_transform, case of arithmetic operators): If result
41528 type is private, the gnu_type is the base type of the full view,
41529 given that the full view itself may be a subtype.
41531 2001-12-17 Robert Dewar <dewar@gnat.com>
41533 * sem_res.adb: Minor reformatting
41535 * trans.c (tree_transform, case N_Real_Literal): Add missing third
41536 parameter in call to Machine (unknown horrible effects from this
41539 * urealp.h: Add definition of Round_Even for call to Machine
41540 Add third parameter for Machine
41542 2001-12-17 Ed Schonberg <schonber@gnat.com>
41544 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41545 predefined units in No_Run_Time mode.
41547 2001-12-17 Richard Kenner <kenner@gnat.com>
41549 * misc.c (insn-codes.h): Now include.
41551 2001-12-17 Olivier Hainque <hainque@gnat.com>
41553 * a-except.adb: Preparation work for future integration of the GCC 3
41554 exception handling mechanism
41555 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41556 to factorize previous code sequences and make them externally callable,
41557 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41558 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41559 Use the new notification routines.
41561 2001-12-17 Emmanuel Briot <briot@gnat.com>
41563 * prj-tree.ads (First_Choice_Of): Document the when others case
41565 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41567 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41568 HI-E mode, in order to support Ravenscar profile properly.
41570 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41571 mode on 32 bits targets.
41573 2001-12-17 Vincent Celier <celier@gnat.com>
41575 * fmap.adb: Initial version.
41577 * fmap.ads: Initial version.
41579 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41580 If search is successfully done, add to mapping.
41582 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41585 (Gnatmake): Add new local variable Mapping_File_Name.
41586 Create mapping file when using project file(s).
41587 Delete mapping file before exiting.
41589 * opt.ads (Mapping_File_Name): New variable
41591 * osint.adb (Find_File): Use path name found in mapping, if any.
41593 * prj-env.adb (Create_Mapping_File): New procedure
41595 * prj-env.ads (Create_Mapping_File): New procedure.
41597 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41600 * usage.adb: Add entry for new switch -gnatem.
41602 * Makefile.in: Add dependencies for fmap.o.
41604 2001-12-17 Ed Schonberg <schonber@gnat.com>
41606 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41607 is a package instantiation rewritten as a package body.
41608 (Install_Withed_Unit): Undo previous change, now redundant.
41610 2001-12-17 Gary Dismuke <dismukes@gnat.com>
41613 (Compute_Length): Move conversion to Unsigned to callers.
41614 (Get_Max_Size): Convert Len expression to Unsigned after calls to
41615 Compute_Length and Determine_Range.
41616 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41617 Compute_Length and Determine_Range.
41618 Above changes fix problem with length computation for supernull arrays
41619 where Max (Len, 0) wasn't getting applied due to the Unsigned
41620 conversion used by Compute_Length.
41622 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41625 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41626 System.Secondary_Stack.
41627 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41629 Remove unused entity RE_Exception_Data.
41631 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41633 * rident.ads (No_Secondary_Stack): New restriction.
41635 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41637 * gnat_rm.texi: Fix minor typos. Found while reading the section
41638 regarding "Bit_Order Clauses" that was sent to a customer.
41639 Very interesting documentation!
41641 2001-12-17 Robert Dewar <dewar@gnat.com>
41643 * sem_case.adb (Choice_Image): Avoid creating improper character
41644 literal names by using the routine Set_Character_Literal_Name. This
41645 fixes bombs in certain error message cases.
41647 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41649 * a-reatim.adb: Minor reformatting.
41651 2001-12-17 Ed Schonberg <schonber@gnat.com>
41653 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41654 case where the formal is an extension of another formal in the current
41655 unit or in a parent generic unit.
41657 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41659 * s-tposen.adb: Update comments. Minor reformatting.
41660 Minor code clean up.
41662 * s-tarest.adb: Update comments. Minor code reorganization.
41664 2001-12-17 Gary Dismukes <dismukes@gnat.com>
41666 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41669 2001-12-17 Robert Dewa <dewar@gnat.com>
41671 * exp_attr.adb: Minor reformatting
41673 2001-12-17 Ed Schonberg <schonber@gnat.com>
41675 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41676 derivations nested within a child unit: verify that the parent
41677 type is declared in an outer scope.
41679 2001-12-17 Robert Dewar <dewar@gnat.com>
41681 * sem_ch12.adb: Minor reformatting
41683 2001-12-17 Ed Schonberg <schonber@gnat.com>
41685 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41686 warning if current unit is a predefined one, from which bodies may
41689 2001-12-17 Robert Dewar <dewar@gnat.com>
41691 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41692 Fix header format. Add 2001 to copyright date.
41694 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41695 which caused CE during compilation if checks were enabled.
41697 2001-12-17 Vincent Celier <celier@gnat.com>
41700 (Switches_Of): New function
41701 (Test_If_Relative_Path): New procedure
41702 (Add_Switches): Use new function Switches_Of
41703 (Collect_Arguments_And_Compile): Use new function Switches_Of.
41704 When using a project file, test if there are any relative
41705 search path. Fail if there are any.
41706 (Gnatmake): Only add switches for the primary directory when not using
41707 a project file. When using a project file, change directory to the
41708 object directory of the main project file. When using a project file,
41709 test if there are any relative search path. Fail if there are any.
41710 When using a project file, fail if specified executable is relative
41711 path with directory information, and prepend executable, if not
41712 specified as an absolute path, with the exec directory. Make sure
41713 that only one -o switch is transmitted to the linker.
41715 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41718 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41719 when using a non standard naming scheme.
41720 (Check_Ada_Naming_Scheme): Make sure that error messages
41721 do not raise exceptions.
41722 (Is_Illegal_Append): Return True if there is no dot in the suffix.
41723 (Language_Independent_Check): Check the exec directory.
41725 * prj.adb (Project_Empty): Add new component Exec_Directory
41728 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41729 (Project_Data): Add component Exec_Directory
41731 * snames.adb: Updated to match snames.ads revision 1.215
41733 * snames.ads: Added Exec_Dir
41735 2001-12-17 Robert Dewar <dewar@gnat.com>
41737 * make.adb: Minor reformatting
41739 * prj-nmsc.adb: Minor reformatting
41741 * snames.adb: Updated to match snames.ads
41743 * snames.ads: Alphebetize entries for project file
41745 2001-12-17 Ed Schonberg <schonber@gnat.com>
41747 * trans.c (process_freeze_entity): Do nothing if the entity is a
41748 subprogram that was already elaborated.
41750 2001-12-17 Richard Kenner <kenner@gnat.com>
41752 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41753 and Esize if object is referenced via pointer.
41755 2001-12-17 Ed Schonberg <schonber@gnat.com>
41757 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41758 is discrete before analyzing choices.
41760 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41762 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41763 containing the name of the Ada Main Program. This string is mainly
41764 intended for the debugger.
41765 (Gen_Output_File_C): Do the equivalent change when generating a C file.
41767 2001-12-17 Robert Dewar <dewar@gnat.com>
41769 * ali.adb: Set new Dummy_Entry field in dependency entry
41771 * ali.ads: Add Dummy_Entry field to source dependency table
41773 * bcheck.adb (Check_Consistency): Ignore dummy D lines
41775 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41777 * lib-writ.ads: Document dummy D lines for missing files.
41779 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41781 2001-12-17 Robert Dewar <dewar@gnat.com>
41783 * ali.adb: Type reference does not reset current file.
41785 * ali.adb: Recognize and scan renaming reference
41787 * ali.ads: Add spec for storing renaming references.
41789 * lib-xref.ads: Add documentation for handling of renaming references
41791 * lib-xref.adb: Implement output of renaming reference.
41794 (Determine_Range): Document local variables
41795 (Determine_Range): Make sure Hbound is initialized. It looks as though
41796 there could be a real problem here with an uninitialized reference
41797 to Hbound, but no actual example of failure has been found.
41799 2001-12-17 Laurent Pautet <pautet@gnat.com>
41802 Fix comment of Shutdown_Socket and Close_Socket. These functions
41803 should not fail silently because if they are called twice, this
41804 probably means that there is a race condition in the user program.
41805 Anyway, this behaviour is consistent with the rest of this unit.
41806 When an error occurs, an exception is raised with the error message
41807 as exception message.
41809 2001-12-17 Robert Dewar <dewar@gnat.com>
41811 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41812 that it happens before modification of Sloc values for -gnatD.
41814 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41815 so that it happens before modification of Sloc values for -gnatD.
41817 * switch.adb: Minor reformatting
41819 2001-12-15 Richard Henderson <rth@redhat.com>
41821 * sem_ch7.adb: Wrap comment.
41823 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41825 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41826 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41827 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41828 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41829 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41830 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41831 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41832 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41833 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41834 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41835 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41836 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41837 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41838 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41839 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41840 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41841 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41842 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41843 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41844 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41845 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41846 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41847 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41848 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41851 2001-12-14 Vincent Celier <celier@gnat.com>
41853 * osint.adb(Create_Debug_File): When an object file is specified,
41854 put the .dg file in the same directory as the object file.
41856 2001-12-14 Robert Dewar <dewar@gnat.com>
41858 * osint.adb: Minor reformatting
41860 * lib-xref.adb (Output_Instantiation): New procedure to generate
41861 instantiation references.
41863 * lib-xref.ads: Add documentation of handling of generic references.
41865 * ali.adb (Read_Instantiation_Ref): New procedure to read
41866 instantiation references
41868 * ali.ads: Add spec for storing instantiation references
41870 * bindusg.adb: Minor reformatting
41872 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41874 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41876 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41878 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41882 Add 2001 to copyright date
41883 Add entry for Latin-5 (Cyrillic ISO-8859-5)
41885 2001-12-14 Matt Gingell <gingell@gnat.com>
41887 * adaint.c: mktemp is a macro on Lynx and can not be used as an
41890 2001-12-14 Richard Kenner <kenner@gnat.com>
41892 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41893 if operand is CONSTRUCTOR.
41895 2001-12-14 Ed Schonberg <schonber@gnat.com>
41897 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41898 before emiting check on right-hand side, so that exception information
41901 2001-12-14 Richard Kenner <kenner@gnat.com>
41903 * utils.c (create_var_decl): Throw away initializing expression
41904 if just annotating types and non-constant.
41906 2001-12-14 Vincent Celier <celier@gnat.com>
41908 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41911 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41913 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41915 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41917 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41919 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41921 * ChangeLog: Remove piece of diff output.
41923 2001-12-14 Geert Bosch <bosch@gnat.com>
41925 * config-lang.in: Update copyright notice
41927 * layout.adb: Remove commented out code.
41929 * mdllfile.ads: Update copyright notice. Fix header format.
41931 * sem_case.ads: Likewise.
41933 * sem_ch3.adb: Minor reformatting.
41935 2001-12-12 Geert Bosch <bosch@gnat.com>
41937 * freeze.ads: Update copyright date.
41939 * g-comlin.ads: Minor reformatting.
41941 * gnat-style.texi: Fix typo.
41943 2001-12-12 Geert Bosch <bosch@gnat.com>
41945 * einfo.h: Regenerate.
41947 2001-12-12 Ed Schonberg <schonber@gnat.com>
41949 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41950 on known node types, rather than untyped fields. Further cleanups.
41952 2001-12-12 Robert Dewar <dewar@gnat.com>
41955 (Save_Entity_Descendant): Minor comment update.
41956 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41957 of an N_Attribute_Reference node. As per note below, this does not
41958 eliminate need for Associated_Node in attribute ref nodes.
41959 (Associated_Node): Documentation explicitly mentions attribute
41960 reference nodes, since this field is used in such nodes.
41962 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41964 2001-12-12 Robert Dewar <dewar@gnat.com>
41966 * s-stalib.adb: Add more comments on with statements being needed
41968 * par-ch12.adb: Minor reformatting
41970 * prj-dect.ads: Fix copyright header
41972 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41973 inputs fit in 32 bits, but the result still overflows.
41975 * s-fatgen.ads: Minor comment improvement
41977 2001-12-12 Ed Schonberg <schonber@gnat.com>
41979 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41980 formal derived type, look for an inherited component from the full
41981 view of the parent, if any.
41983 2001-12-12 Robert Dewar <dewar@gnat.com>
41985 * checks.ads (Apply_Alignment_Check): New procedure.
41987 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41988 ensure that the alignment of objects with address clauses is
41989 appropriate, and raise PE if not.
41991 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41992 Exp_Pakd.Known_Aligned_Enough
41994 * mdllfile.ads: Minor reformatting
41996 * mlib-fil.ads: Minor reformatting
41998 2001-12-12 Ed Schonberg <schonber@gnat.com>
42000 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
42001 fix to any component reference if enclosing record has non-standard
42004 2001-12-12 Vincent Celier <celier@gnat.com>
42006 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
42009 2001-12-12 Ed Schonberg <schonber@gnat.com>
42011 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
42014 2001-12-12 Robert Dewar <dewar@gnat.com>
42016 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
42018 2001-12-12 Emmanuel Briot <briot@gnat.com>
42020 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
42021 and it adds dependencies to system.io.
42023 2001-12-12 Pascal Obry <obry@gnat.com>
42025 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
42028 2001-12-11 Ed Schonberg <schonber@gnat.com>
42030 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
42031 that is the parent of other generics, the instance body replaces the
42032 instance node. Retrieve the instance of the spec, which is the one
42033 that is visible in clients and within the body.
42035 2001-12-11 Vincent Celier <celier@gnat.com>
42037 * gnatmain.adb: Initial version.
42039 * gnatmain.ads: Initial version.
42041 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42043 * snames.adb: Updated to match snames.ads.
42045 * snames.ads: Added Gnatstub.
42047 2001-12-11 Vincent Celier <celier@gnat.com>
42049 * prj-attr.adb (Initialization_Data): Change name from
42050 Initialisation_Data.
42052 2001-12-11 Emmanuel Briot <briot@gnat.com>
42054 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42055 + and * applied to backslashed expressions like \r.
42057 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
42059 * g-os_lib.ads: String_List type added, Argument_List type is now
42060 subtype of String_List.
42062 2001-12-11 Robert Dewar <dewar@gnat.com>
42064 * g-os_lib.ads: Change copyright to FSF
42065 Add comments for String_List type
42067 2001-12-11 Vincent Celier <celier@gnat.com>
42069 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42070 string to the buffer).
42072 2001-12-11 Ed Schonberg <schonber@gnat.com>
42074 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42077 * sem_attr.adb: Simplify previous fix for Address.
42078 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42079 to avoid anomalies where the bound of the type appears to raise
42082 2001-12-11 Robert Dewar <dewar@gnat.com>
42084 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42087 2001-12-11 Ed Schonber <schonber@gnat.com>
42089 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42090 renamed unit before checking for recursive instantiations.
42092 2001-12-11 Emmanuel Briot <briot@gnat.com>
42094 * prj.ads: Add comments for some of the fields.
42096 2001-12-11 Robert Dewar <dewar@gnat.com>
42098 * lib-xref.adb (Output_Refs): Don't output type references outside
42099 the main unit if they are not otherwise referenced.
42101 2001-12-11 Ed Schonberg <schonber@gnat.com>
42103 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42104 code and diagnose additional illegal uses
42106 * sem_util.adb (Is_Object_Reference): An indexed component is an
42107 object only if the prefix is.
42109 2001-12-11 Vincent Celier <celier@gnat.com>
42111 * g-diopit.adb: Initial version.
42113 * g-diopit.ads: Initial version.
42116 (Expand_Path): Avoid use of Unbounded_String
42117 (Find, Wildcard_Iterator): Moved to child package Iteration
42119 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42121 2001-12-11 Robert Dewar <dewar@gnat.com>
42123 * sem_attr.adb: Minor reformatting
42125 2001-12-11 Ed Schonberg <schonber@gnat.com>
42127 * sem_ch3.adb: Clarify some ???.
42129 2001-12-11 Robert Dewar <dewar@gnat.com>
42131 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42132 Exp_Pakd.Known_Aligned_Enough
42134 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42135 version is moved to Exp_Ch13.
42137 2001-12-11 Robert Dewar <dewar@gnat.com>
42139 * einfo.ads: Minor reformatting
42141 * exp_ch5.adb: Add comment for previous.change
42143 * ali.adb: New interface for extended typeref stuff.
42145 * ali.ads: New interface for typeref stuff.
42147 * checks.adb (Apply_Alignment_Check): New procedure.
42149 * debug.adb: Add -gnatdM for modified ALI output
42151 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42153 * lib-xref.adb: Extend generation of <..> notation to cover
42154 subtype/object types. Note that this is a complete rewrite,
42155 getting rid of the very nasty quadratic algorithm previously
42156 used for derived type output.
42158 * lib-xref.ads: Extend description of <..> notation to cover
42159 subtype/object types. Uses {..} for these other cases.
42160 Also use (..) for pointer types.
42162 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42164 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
42165 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42167 2001-12-11 Vincent Celier <celier@gnat.com>
42170 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42171 Changed /BIND_ONLY to /ACTIONS=BIND
42172 Changed /LINK_ONLY to /ACTIONS=LINK
42174 2001-12-11 Ed Schonberg <schonber@gnat.com>
42176 * sem_ch8.adb (Find_Selected_Component): improved search for a
42177 candidate package in case of error.
42179 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42180 chain back on scope stack before reinstalling use clauses.
42182 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42183 is enabled, do not kill the code for the condition, to preserve
42186 2001-12-11 Robert Dewar <dewar@gnat.com>
42188 * checks.adb (Insert_Valid_Check): Apply validity check to expression
42189 of conversion, not to result of conversion.
42191 2001-12-11 Ed Schonberg <schonber@gnat.com>
42193 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42194 before freezing parent. If the declarations are mutually recursive,
42195 an access to the current record type may be frozen before the
42196 derivation is complete.
42198 2001-12-05 Vincent Celier <celier@gnat.com>
42200 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42201 -c /COMPILE_ONLY, -l /LINK_ONLY
42204 (Bind_Only): New Flag
42205 (Link_Only): New flag
42207 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42210 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42213 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42214 (Gnatmake): Set the step flags. Only perform a step if the
42215 corresponding step flag is True.
42216 (Scan_Make_Arg): Reset the bind and link step flags when -u
42217 or -gnatc has been specified.
42219 2001-12-05 Ed Schonberg <schonber@gnat.com>
42221 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42222 get bounds from right operand.
42224 * sem_eval.adb: Minor reformatting
42226 * exp_util.adb (Make_Literal_Range): use bound of literal rather
42227 than Index'First, its lower bound may be different from 1.
42229 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42232 2001-12-05 Vincent Celier <celier@gnat.com>
42234 * prj-nmsc.adb Minor reformatting
42236 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42237 set and libraries are not supported.
42239 2001-12-05 Ed Schonberg <schonber@gnat.com>
42241 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42242 private view explicitly, so the back-end can treat as a global
42245 2001-12-05 Ed Schonberg <schonber@gnat.com>
42247 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42248 unit, always replace instance node with new body, for ASIS use.
42250 2001-12-05 Vincent Celier <celier@gnat.com>
42252 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42253 libraries are not supported and both attributes Library_Name and
42254 Library_Dir are specified.
42256 * prj-proc.adb (Expression): Set location of Result to location of
42259 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42260 (prj-nmsc is now importing MLib.Tgt)
42262 * prj-proc.adb: Put the change indicated above that was forgotten.
42264 2001-12-05 Robert Dewar <dewar@gnat.com>
42266 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42268 2001-12-05 Ed Schonberg <schonber@gnat.com>
42270 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42271 constraint, introduce explicit subtype declaration and derive from it.
42273 * sem_ch3.adb: Minor reformatting
42275 2001-12-05 Robert Dewar <dewar@gnat.com>
42277 * checks.adb (Determine_Range): Increase cache size for checks.
42280 * exp_ch6.adb: Minor reformatting
42281 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42282 a parameter whose root type is System.Address, since treating such
42283 subprograms as pure in the code generator is almost surely a mistake
42284 that will lead to unexpected results.
42286 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42287 change handling of conversions.
42289 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42291 2001-12-05 Ed Schonberg <schonber@gnat.com>
42293 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42294 aggregate with static wrong size, attach generated Raise node to
42297 2001-12-05 Robert Dewar <dewar@gnat.com>
42299 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42300 Fixes compilation abandoned bomb in B24009B.
42302 2001-12-05 Ed Schonberg <schonber@gnat.com>
42305 Document use of Associated_Node on Selected_Components.
42306 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42307 to clarify use of untyped descendant fields.
42309 2001-12-05 Robert Dewar <dewar@gnat.com>
42311 * prj-dect.ads: Add ??? comment
42312 Add 2001 to copyright notice (was not done in after all)
42314 * prj-part.adb: Minor reformatting. Reword one awkward error message.
42316 * prj.ads: Minor reformatting throughout, and add some ??? comments
42318 * snames.ads: Minor reformatting
42320 2001-12-05 Geert Bosch <bosch@gnat.com>
42322 * snames.adb: Autoupdate
42324 2001-12-05 Vincent Celier <celier@gnat.com>
42326 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42328 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42330 * prj-env.adb: Minor comment changes (modifying -> extends).
42332 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42334 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42337 * prj.adb (Initialize): Change Modifying to Extends.
42339 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42341 * prj.ads: Minor comment change (Modifying -> extending).
42343 * snames.ads: Change modifying to extends.
42345 2001-12-05 Robert Dewar <dewar@gnat.com>
42347 * sem_warn.adb: Remove stuff for conditionals, we are not going to
42350 * sem_warn.ads: Remove stuff for conditionals, we are not going to
42351 do this after all. Add 2001 to copyright notice
42353 2001-12-04 Geert Bosch <bosch@gnat.com>
42355 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
42357 2001-12-04 Robert Dewar <dewar@gnat.com>
42359 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42360 location if we already have errors. Stops some cases of cascaded
42363 * errout.adb: Improve comment.
42365 2001-12-04 Robert Dewar <dewar@gnat.com>
42368 (Analyze_Formal_Type_Definition): Defend against Error.
42369 (Analyze_Formal_Subprogram): Defend against Error.
42371 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42372 remove following semicolon if present. Removes cascaded error.
42374 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42377 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42378 exceptions equals 0.
42379 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42380 Fixes PIWG E tests (which have to be run with -gnatL).
42382 2001-12-04 Robert Dewar <dewar@gnat.com>
42384 * einfo.ads: Minor reformatting
42386 2001-12-04 Ed Schonberg <schonber@gnat.com>
42388 * einfo.ads: Block_Node points to the identifier of the block, not to
42389 the block node itself, to preserve the link when the block is
42390 rewritten, e.g. within an if-statement with a static condition.
42392 * inline.adb (Cleanup_Scopes): recover block statement from block
42393 entity using new meaning of Block_Node.
42395 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42396 identifier of block node, rather than to node itself.
42398 2001-12-04 Gary Dismukes <dismukes@gnat.com>
42401 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42402 (Discrimify): Go back to setting the Etypes of the selected component
42403 because the Vname component does not exist at this point and will
42404 fail name resolution. Also set Analyzed.
42405 Remove with and use of Sem_Res.
42407 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42409 * Makefile.in: (HIE_SOURCES): add s-fat*.
42411 2001-12-04 Robert Dewar <dewar@gnat.com>
42414 (Compile_Time_Known_Attribute): New procedure.
42415 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42416 proper range check.
42418 2001-12-04 Ed Schonberg <schonber@gnat.com>
42420 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42421 processing discriminants to diagnose illegal default values.
42423 2001-12-04 Ed Schonberg <schonber@gnat.com>
42425 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42426 access discriminant within a type extension that constrains its
42427 parent discriminants.
42429 2001-12-04 Ed Schonberg <schonber@gnat.com>
42431 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42432 is malformed, use instance of Any_Id to allow analysis to proceed.
42434 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42435 type definition is illegal.
42436 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42439 2001-12-04 Ed Schonberg <schonber@gnat.com>
42441 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42444 2001-12-04 Robert Dewar <dewar@gnat.com>
42446 * errout.adb: Minor reformatting
42448 2001-12-04 Robert Dewar <dewar@gnat.com>
42450 * exp_util.adb: Minor reformatting from last change
42452 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42453 which is a rewriting of an expression, traverse the original
42454 expression to remove warnings that may have been posted on it.
42456 2001-12-04 Ed Schonberg <schonber@gnat.com>
42458 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42459 record that has other packed components.
42461 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42463 * adaint.c: Minor cleanups.
42465 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42467 * adaint.c: Do not use utime.h on vxworks.
42469 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42471 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42472 more confusion than it solves.
42474 2001-12-04 Geert bosch <bosch@gnat.com>
42476 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42478 2001-12-04 Geert Bosch <bosch@gnat.com>
42480 * Makefile.in (update-sources): New target.
42481 For use by gcc_release script.
42483 2001-12-04 Ed Schonberg <schonber@gnat.com>
42485 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42486 a configuration pragma, it is now legal wherever a pragma can appear.
42488 2001-12-04 Zack Weinberg <zack@codesourcery.com>
42490 * Makefile.in: Don't set ALL. Delete @cross_defines@,
42491 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
42492 is now @CROSS@ -DIN_GCC; update comment.
42494 2001-12-04 Robert Dewar <dewar@gnat.com>
42496 * einfo.adb (Has_Pragma_Pure_Function): New flag.
42497 Fix problem that stopped ceinfo from working
42499 * einfo.ads (Has_Pragma_Pure_Function): New flag.
42501 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42503 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42506 (File_Time_Stamp): New procedure.
42507 (Preserve_Mode): New boolean.
42508 (Write_Unit): Pass time stamp.
42509 Implement -p switch (preserve time stamps).
42511 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42513 * gnatchop.adb: Do usage info for -p switch
42515 * adaint.h (__gnat_set_file_time_name): New function
42517 * adaint.c (__gnat_set_file_time_name): Implement
42519 * adaint.h: Fix typo
42521 2001-12-03 Robert Dewar <dewar@gnat.com>
42523 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42524 have Associated_Node.
42526 2001-12-03 Robert Dewar <dewar@gnat.com>
42528 * prj-proc.adb: Minor reformatting
42530 * make.adb: Minor reformatting
42532 2001-12-03 Geert Bosch <bosch@gnat.com>
42534 * make.adb: Minor reformatting.
42536 2001-12-03 Robert Dewar <dewar@gnat.com>
42538 * sem_ch12.adb: Minor reformatting
42540 2001-12-03 Ed Schonberg <schonber@gnat.com>
42542 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42543 push Standard on the stack before analyzing the instance body,
42544 in order to have a clean visibility environment.
42546 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42548 2001-12-03 Ed Schonberg <schonber@gnat.com>
42550 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42551 instantiation of a body that contains an inlined body.
42553 2001-12-03 Ed Schonberg <schonber@gnat.com>
42556 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42557 to prevent freezing within formal packages.
42558 (Freeze_Subprogram_Body): If body comes from another instance that
42559 appeared before its own body, place freeze node at end of current
42560 declarative part, to prevent a back-end crash.
42561 (Inline_Instance_Body): Handle properly a package instance within
42562 a subprogram instance that is a child unit.
42564 2001-12-01 Graham Stott <grahams@redhat.com>
42566 * Makefile.in (misc.o): Add missing $(srcdir) prefix
42567 and add optabs.h dependency.
42569 * misc.c: Include optabs.h
42570 (gnat_tree_code_type): Make static and const.
42571 (gnat_tree_code_length): Likewise.
42572 (gnat_tree_code_name): Likewise.
42573 (update_setjmp_buf): Obtain operands mode from insn_data.
42575 2001-11-29 Richard Henderson <rth@redhat.com>
42577 * init.c: Remove obsolete dwarf2 frame.h section.
42579 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
42581 * Make-lang.in (ada.generated-manpages): New dummy target.
42583 2001-11-29 Ed Schonberg <schonber@gnat.com>
42585 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42586 into Command, an array conversion is illegal here. Uncovered by
42589 2001-11-28 Geert Bosch <bosch@gnat.com>
42591 * init.c: Minor whitespace changes.
42593 2001-11-28 Doug Rupp <rupp@gnat.com>
42595 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42598 2001-11-28 Zack Weinberg <zack@codesourcery.com>
42600 * misc.c (gnat_expand_constant): Move declaration above
42601 definition of lang_hooks.
42602 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42603 (gnat_init): lang_expand_constant no longer exists.
42605 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
42606 always have vprintf.
42607 (gnat_init): Always call set_internal_error_function.
42609 2001-11-27 Andreas Jaeger <aj@suse.de>
42611 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42613 2001-11-27 Laurent Guerby <guerby@acm.org>
42615 * Makefile.in: Regenerate Ada dependencies.
42617 2001-11-26 Richard Henderson <rth@redhat.com>
42619 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42620 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42621 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42623 2001-11-25 Laurent Guerby <guerby@acm.org>
42625 * sysdep.c (rts_get_*): Fix style.
42627 2001-11-19 Laurent Guerby <guerby@acm.org>
42629 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42630 since it is of no apparent use and cause warnings.
42632 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
42634 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42636 (gnat_init): Don't return NULL.
42637 (finish_parse): Remove.
42639 2001-11-17 Laurent Guerby <guerby@acm.org>
42641 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42642 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42643 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42644 * lang-spec.h: Add missing struct field to silence warnings.
42645 * sysdep.c (rts_get_*): Provide K&R prototype.
42646 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42647 * traceback.c (Unlock_Task, Lock_Task): Likewise.
42648 * tracebak.c (__gnat_backtrace): Remove unused variable.
42649 * utils.c (end_subprog_body): Move to K&R style.
42651 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42653 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42655 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
42657 * misc.c (gnat_init): Change prototype. Include the
42658 functionality of the old init_parse and init_decl_processing.
42659 (gnat_init_decl_processing): New prototype.
42660 (init_parse): Remove.
42661 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42663 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42665 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42666 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42667 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42668 set_yydebug): Remove.
42670 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42672 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42673 (struct lang_hooks): Constify.
42674 (language_string, lang_identify): Remove.
42675 * utils.c (init_decl_processing): Update.
42677 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
42679 * misc.c: Include langhooks-def.h.
42680 * Makefile.in: Update.
42682 2001-10-30 Robert Dewar <dewar@gnat.com>
42685 (Check_Identifier): Rewrite circuit to be compatible with use of letters
42686 in the upper half of ASCII.
42687 (Check_Identifier): Minor reformatting
42689 2001-10-30 Geert Bosch <bosch@gnat.com>
42691 * (Associated_Node, Set_Associated_Node): Do not check for
42694 2001-10-30 Robert Dewar <dewar@gnat.com>
42696 * a-reatim.ads: Minor reformatting
42698 2001-10-30 Robert Dewar <dewar@gnat.com>
42700 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42701 undocumented declarations.
42703 2001-10-30 Pascal Obry <obry@gnat.com>
42705 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42706 to the binder and linker.
42709 * mdll.ads: Fix layout. Update copyright notice.
42711 * mdll.adb: Fix layout. Update copyright notice.
42713 2001-10-30 Robert Dewar <dewar@gnat.com>
42715 * usage.adb: Minor fix to output for -gnaty.
42717 2001-10-30 Ed Schonberg <schonber@gnat.com>
42719 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42720 to accommodate all its possible values.
42722 * a-reatim.adb (Split): Special-case handling of Time_Span_First
42723 and of small absolute values of T.
42725 2001-10-30 Richard Kenner <kenner@gnat.com>
42727 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42728 set_mem_attributes since not needed and wrong if RESULT if a REG;
42729 fixes ACATS failures.
42731 2001-10-30 Geert Bosch <bosch@gnat.com>
42733 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42734 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42736 2001-10-30 Robert Dewar <dewar@gnat.com>
42738 * bindusg.adb: Undocument -f switch.
42740 * gnatcmd.adb: Remove /FULL_ELABORATION.
42742 * opt.ads (Force_RM_Elaboration_Order): Document that this is
42745 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42747 * gnatbind.adb: Minor update of warning msg.
42749 2001-10-30 Vincent Celier <celier@gnat.com>
42751 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42752 for project file switches (-P (/PROJECT_FILE=),
42753 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42756 2001-10-30 Geert Bosch <bosch@gnat.com>
42758 * decl.c: Minor whitespace fixes.
42760 2001-10-30 Richard Kenner <kenner@gnat.com>
42762 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42764 2001-10-30 Geert Bosch <bosch@gnat.com>
42766 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42767 Found due to GCC 3.0 warning of using uninitialized value.
42770 (Get_Max_Size): Use variant record for tracking value/expression.
42771 Makes logic clearer and prevents warnings for uninitialized variables.
42772 (Layout_Array_Type): Use variant record for tracking value/expression.
42773 Makes logic clearer and prevents warnings for uninitialized variables.
42775 2001-10-30 Robert Dewar <dewar@gnat.com>
42777 * lib.adb: Minor reformatting
42779 * s-taprop.ads: Minor reformatting
42781 2001-10-29 Laurent Guerby <guerby@acm.org>
42784 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42786 (_gnat_error_handler): Make MSG const.
42788 2001-10-29 Richard Kenner <kenner@gnat.com>
42790 * sysdep.c: Fix localtime_r problem on LynxOS.
42791 Also remove #elif to avoid warnings.
42793 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42796 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42798 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
42800 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42801 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42802 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42803 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42804 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42805 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42806 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42807 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42808 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42809 types.ads, urealp.adb: Fix spelling errors.
42811 2001-10-27 Laurent Guerby <guerby@acm.org>
42813 * trans.c (gigi): Fix non determinism leading to bootstrap
42814 comparison failures for debugging information.
42816 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
42818 * gnat_rm.texi: Use @./@: where appropriate.
42820 2001-10-26 Robert Dewar <dewar@gnat.com>
42822 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42824 2001-10-26 Richard Kenner <kenner@gnat.com>
42826 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42828 2001-10-26 Richard Kenner <kenner@gnat.com>
42830 * decl.c (validate_size): Modify message for bad size to avoid
42831 implication that compiler is modifying the size.
42833 2001-10-26 Robert Dewar <dewar@gnat.com>
42835 * prj-util.adb: Minor reformatting. Fix bad header format.
42837 2001-10-26 Robert Dewar <dewar@gnat.com>
42839 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42841 * sinfo.ads: Clarify use of Associated_Node (documentation only).
42843 * sem_ch12.adb: Change Node4 to Associated_Node. Change
42844 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42845 much more narrowly in places where needed. These are cleanups.
42847 2001-10-26 Joel Brobecker <brobecke@gnat.com>
42849 * 5zosinte.ads (null_pthread): new constant.
42852 (Initialize_TCB): Initialize thread ID to null, to be able to verify
42853 later that this field has been set.
42854 (Finalize_TCB): ditto.
42855 (Suspend_Task): Verify that the thread ID is not null before using it.
42856 (Resume_Task): ditto.
42859 (Resume_All_Tasks): Lock the tasks list before using it.
42860 (Suspend_All_Tasks): ditto.
42862 2001-10-26 Richard Kenner <kenner@gnat.com>
42864 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42865 Make constant variant of designated type for Is_Access_Constant.
42866 Call update_pointer_to with main variant.
42868 * trans.c (process_freeze_entity, process_type):
42869 Call update_pointer_to on main variant.
42871 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42872 If main variant, update all other variants.
42874 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42877 2001-10-26 Robert Dewar <dewar@gnat.com>
42879 * prj-util.adb: Minor reformatting
42881 2001-10-26 Robert Dewar <dewar@gnat.com>
42883 * prj-util.adb: Minor reformatting
42885 2001-10-26 Robert Dewar <dewar@gnat.com>
42887 * prj-attr.adb: Minor reformatting throughout
42889 2001-10-26 Robert Dewar <dewar@gnat.com>
42891 * prj-attr.ads: Minor reformatting
42892 Add ??? comment (this whole spec has almost no comments)
42894 2001-10-26 Vincent Celier <celier@gnat.com>
42896 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42897 ("//") that precede the drive letter on Interix.
42899 2001-10-26 Geert Bosch <bosch@gnat.com>
42901 * gnat_rm.texi: Add GNAT Reference Manual.
42903 2001-10-25 Robert Dewar <dewar@gnat.com>
42905 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42906 is Error. Similar change for other renaming cases.
42908 2001-10-25 Robert Dewar <dewar@gnat.com>
42910 * s-atacco.ads: Add pragma Inline_Always for functions.
42911 Fix header format. Add copyright 2001
42913 2001-10-25 Ed Schonberg <schonber@gnat.com>
42915 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42916 return Error rather than Empty so that analysis can proceed.
42918 2001-10-25 Ed Schonberg <schonber@gnat.com>
42920 * sem_util.adb (Enter_Name): better handling of cascaded error
42921 messages when a unit appears in its own context.
42923 2001-10-25 Ed Schonberg <schonber@gnat.com>
42925 * sem_util.adb (Defining_Entity): in case of error, attach created
42926 entity to specification, so that semantic analysis can proceed.
42928 2001-10-25 Robert Dewar <dewar@gnat.com>
42931 (Defining_Entity): Deal with Error.
42932 (Process_End_Label): Deal with bad end label for.
42934 2001-10-25 Ed Schonberg <schonber@gnat.com>
42936 * sem_elab.adb (Check_A_Call): refine message when call is in an
42937 instance but callee is not declared in the generic unit.
42939 2001-10-25 Ed Schonberg <schonber@gnat.com>
42941 * sem_elab.adb (Check_A_Call): check for renaming before finding the
42942 enclosing unit, which may already be different from the calling unit.
42944 2001-10-25 Geert Bosch <bosch@gnat.com>
42946 * 4gintnam.ads: fix header format.
42948 2001-10-25 Ed Schonberg <schonber@gnat.com>
42950 * sem_res.adb (Resolve_Call): if the call is actually an indexing
42951 operation on the result of a parameterless call, perform elaboration
42952 check after the node has been properly rewritten.
42954 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42955 inlined within the generic tree, the defining identifier is not a
42958 2001-10-25 Ed Schonberg <schonber@gnat.com>
42960 * sem_res.adb (Resolve): special-case resolution of Null in an
42961 instance or an inlined body to avoid view conflicts.
42963 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42964 compatibility by retrieving the access type of the generic copy.
42966 2001-10-25 Robert Dewar <dewar@gnat.com>
42969 (Analyze_Number_Declaration): Handle error expression.
42970 (Signed_Integer_Type_Declaration): Handle error bound.
42971 (Analyze_Subtype_Indication): Handle error range.
42973 * sem_util.adb (Get_Index_Bounds): Check for Error.
42975 2001-10-25 Robert Dewar <dewar@gnat.com>
42977 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42978 in no run time mode.
42980 2001-10-25 Pascal Obry <obry@gnat.com>
42982 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42983 mode case for ALLOC case.
42985 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42986 all platforms. Improvement of last change.
42988 2001-10-25 Robert Dewar <dewar@gnat.com>
42990 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42992 2001-10-25 Geert Bosch <bosch@gnat.com>
42994 * osint.adb (Is_Relative): Remove duplicate.
42996 2001-10-25 Pascal Obry <obry@gnat.com>
42998 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42999 pathnames in UNIX and DOS style with drive letter.
43000 (Is_Relative): new routine.
43002 * osint.adb: Minor reformatting
43004 * osint.adb (Is_Relative): implementation using
43005 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
43007 2001-10-25 Pascal Obry <obry@gnat.com>
43009 * g-dirope.adb (Basename): correctly compute offset between the
43010 original Path and the translated one.
43012 * g-dirope.adb: (Base_Name): add some comments.
43014 2001-10-25 Robert Dewar <dewar@gnat.com>
43016 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
43017 in HIE mode, avoids compilation abandoned message
43019 * exp_imgv.adb: Correct typo in previous change
43021 * exp_imgv.adb: Correct typo in previous change (not my day!)
43023 2001-10-25 Robert Dewar <dewar@gnat.com>
43025 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
43027 2001-10-25 Pascal Obry <obry@gnat.com>
43029 * g-awk.ads: Move all pragma inlines next to the routine
43030 declarations. This is more uniform with other GNAT spec.
43032 2001-10-22 Geert Bosch <bosch@gnat.com>
43034 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
43036 2001-10-19 Geert Bosch <bosch@gnat.com>
43038 * Makefile.in (tools, gnattools): Remove gnatmem.
43040 2001-10-17 Richard Henderson <rth@redhat.com>
43042 * Makefile.in (misc.o): Depend on langhooks.h.
43043 * misc.c: Include it.
43044 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43045 (LANG_HOOKS_DECODE_OPTION): New.
43046 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43048 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
43050 * trans.c (tree_transform): Adjust to recent change in
43051 expand_asm_operands to implement named asm operands.
43053 2001-10-11 Ed Schonberg <schonber@gnat.com>
43055 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43056 renaming of discriminant for mutable record type.
43058 2001-10-11 Robert Dewar <dewar@gnat.com>
43060 * validsw.adb: Properly save -gnatVn status.
43062 2001-10-11 Robert Dewar <dewar@gnat.com>
43064 * usage.adb: Add lines for V switch.
43066 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43067 (/VALIDITY_CHECKING).
43069 2001-10-11 Ed Schonberg <schonber@gnat.com>
43071 * sem_type.adb (Add_One_Interp): an operator for a type declared in
43072 an extension of System is known to be visible.
43074 2001-10-11 Ed Schonberg <schonber@gnat.com>
43076 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43077 properly. Fixes regression on ACATS C34005G.
43079 2001-10-11 Robert Dewar <dewar@gnat.com>
43081 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43082 loop in generic instance, since this is likely not very useful.
43084 2001-10-11 Robert Dewar <dewar@gnat.com>
43086 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43087 the error message for high integrity mode.
43089 * rtsfind.adb (RTE): Give message if we try to find an entity that
43090 is not available in high integrity mode.
43093 (OK_To_Use_In_HIE_Mode): New array.
43094 (RTE): May return Empty in high integrity mode.
43096 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43097 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43099 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43100 unit if not inlined always and in no runtime mode. Fixes problem
43101 caused by new Rtsfind changes.
43103 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43106 * rtsfind.adb (RTE): Make sure we do not try to load unit after
43107 giving message for entity not available in high integrity mode.
43109 2001-10-11 Pascal Obry <obry@gnat.com>
43111 * impunit.adb: Add GNAT.CRC32.
43113 2001-10-11 Ed Schonberg <schonber@gnat.com>
43115 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43116 properly the case where one universal operand in a non-static
43117 exponentiation of a real literal.
43119 2001-10-11 Ed Schonberg <schonber@gnat.com>
43121 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43122 clause, return the gobal finalization list, for lack of anthing else.
43124 2001-10-11 Ed Schonberg <schonber@gnat.com>
43126 * exp_ch7.adb (Make_Transient_Block): if statement is within
43127 exception handler, always use new transient scope to place Clean
43130 2001-10-11 Pascal Obry <obry@gnat.com>
43133 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43134 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43135 (GNATLS_RTL_OBJS): add g-crc32.o
43136 (GNATMAKE_RTL_OBJS): add g-crc32.o
43139 (CRC_Match): new function.
43140 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43141 instead of the previous simple checksum algorithm.
43142 (Time_Stamp_Mismatch): use CRC_Match for comparison.
43143 (Set_Source_Table): idem.
43146 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43147 instead of simple checksum.
43148 (CRC_Match): new function.
43149 (CRC_Error): new constant.
43151 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43152 a CRC now and not a simple checksum. A CRC uses lower-case hex
43153 letters, fixes ambiguity in parsing.
43155 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43156 is what this variable will store.
43158 * bcheck.adb: Change reference to chechsum in comments by CRC.
43159 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43160 rename All_Checksum_Match to All_CRC_Match. Change due to API
43161 renaming since now GNAT does not use a simple checksum but a
43162 CRC using GNAT.CRC32.
43164 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43165 now and not anymore a simple checksum.
43167 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43170 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43173 (Restore_Scan_State): rename Checksum to CRC.
43174 (Save_Scan_State): idem.
43178 (Checksum): rename to CRC.
43179 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43181 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43182 GNAT.CRC32). Update copyright notice.
43184 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43185 GNAT.CRC32). Update copyright notice.
43188 (Accumulate_Checksum): removed.
43189 (Update): new procedure. Add a wide-character into the CRC.
43192 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43193 (Load_File): fix initialization of S (change Source_Checksum to
43196 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43197 Source_CRC in S initialization.
43199 * sinput.adb (Source_Checksum): renamed to Source_CRC.
43201 * sinput.ads (Source_Checksum): renamed to Source_CRC.
43202 Update comments for the CRC.
43204 * types.adb (Hex): Use lowercase for the letter part.
43206 * types.ads (Get_Hex_String): Returns the hexadecimal representation
43207 for a word. This is currently used only for CRC. In previous version,
43208 the checksum was using a representation with all letter being
43209 upper-case. With the new implementation (using CRC) we do not remove
43210 the 32th bit of the CRC, so we can have an upper-case starting letter
43211 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43212 It is ambigous since the CRC was optional and could be followed by
43213 options like EB, EE. So now this routines uses lower-case letter for
43214 the hexadecimal representation. Strange enough only lower case letters
43215 where checked in Scan_ALI (even if this was not a possible case).
43217 * gnatvsn.ads (Library_Version): changed to 3.15a.
43219 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43222 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43225 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43226 Add 2001 to copyright notice
43227 (Accumulate_Checksum): Modify to use System.CRC32.
43229 * ali-util.ads: Redo changes of previous revision to continue to use
43230 the word Checksum. Add 2001 to copyright notice.
43232 * ali.adb: Undo some of previous changes, not needed.
43233 Keep the change for lower case letters in the checksum.
43235 * ali.ads: Undo previous change not needed.
43237 * bcheck.adb: Undo most of previous change, not needed.
43238 But do use Checksums_Match for checksum comparison.
43240 * gnatls.adb: Undo most of previous change, not needed.
43241 But do use Checksums_Match for comparing checksums.
43243 * lib-load.adb: Undo previous change, not needed.
43245 * lib-writ.adb: Undo previous change, not needed.
43247 * lib-writ.ads: Document that checksums use lower case,
43248 not upper case letters.
43250 * scans.adb: Undo previous change, not needed
43252 * scans.ads: Undo previous change, not needed.
43254 * scn-nlit.adb: Undo previous changes, not needed.
43256 * scn-slit.adb: Undo previous change, not needed. Fix header format.
43259 (Accumulate_Checksum): Use System.CRC32.
43260 (Initialize_Checksum): New procedure.
43261 Remove other changes of previous revision.
43263 * sinput-p.adb: Undo previous change, not needed.
43265 * sinput.adb: Undo previous change, not needed.
43267 * sinput-l.adb: Undo previous change, not needed.
43269 * sinput.ads: Undo previous change, not needed. Keep only comment
43270 on new checksum algorithm
43272 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43273 Also remove a-tags and a-stream from GNAT sources.
43275 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43277 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43279 2001-10-11 Geert Bosch <bosch@gnat.com>
43281 * einfo.h: Regenerate.
43283 * nmake.ads: Regenerate.
43285 * nmake.adb: Regenerate.
43287 * sinfo.h: Regenerate.
43289 * treeprs.adb: Regenerate.
43291 2001-10-10 Geert Bosch <bosch@gnat.com>
43293 * gnat-style.texi: New file describing coding guidelines for Ada.
43295 2001-10-10 Ed Schonberg <schonber@gnat.com>
43297 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43300 2001-10-10 Geert Bosch <bosch@gnat.com>
43302 * snames.ads: Add new names for project facility.
43304 * snames.adb: Update to reflect snames.ads changes.
43306 * snames.h: Update to reflect snames.ads changes.
43308 2001-10-10 Vincent Celier <celier@gnat.com>
43311 (Add_Switches): reflect the changes for the switches attributes
43312 Default_Switches indexed by the programming language,
43313 Switches indexed by the file name.
43314 (Collect_Arguments_And_Compile): Idem.
43315 Reflect the attribute name changes.
43318 (Initialisation_Data): Change the names of some packages and
43320 (Initialize): process case insensitive associative arrays.
43323 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43326 (Parse_Attribute_Declaration): For case insensitive associative
43327 arrays, set the index string to lower case.
43330 Reflect the changes of the project attributes.
43333 Replace Check_Naming_Scheme by Ada_Check and
43334 Language_Independent_Check.
43337 Replaced Check_Naming_Scheme by 2 procedures:
43338 Ada_Check and Language_Independent_Check.
43341 (Process_Declarative_Items): For case-insensitive associative
43342 arrays, set the index string to lower case.
43343 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43344 Prj.Nmsc.Check_Naming_Scheme.
43347 (Case_Insensitive): New function
43348 (Set_Case_Insensitive): New procedure
43351 (Case_Insensitive): New function
43352 (Set_Case_Insensitive): New procedure
43353 (Project_Node_Record): New flag Case_Insensitive.
43356 (Value_Of): new function to get the string value of a single
43357 string variable or attribute.
43360 (Value_Of): new function to get the string value of a single
43361 string variable or attribute.
43364 (Ada_Default_Spec_Suffix): New function
43365 (Ada_Default_Impl_Suffix): New function
43366 Change definitions of several constants to reflect
43367 new components of record types.
43370 (Naming_Data): Change several components to reflect new
43371 elements of naming schemes.
43372 (Project_Data): New flags Sources_Present and
43373 Language_Independent_Checked.
43374 (Ada_Default_Spec_Suffix): New function.
43375 (Ada_Default_Impl_Suffix): New function.
43378 Modification of predefined names for project manager: added
43379 Implementation, Specification_Exceptions, Implementation_Exceptions,
43380 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43381 Default_Switches, _Languages, Builder, Cross_Reference,
43382 Finder. Removed Body_Part, Specification_Append, Body_Append,
43383 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43386 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43389 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43390 not that it is Nil_Variable_Value.
43392 * prj.ads: Add ??? for uncommented declarations
43394 2001-10-10 Ed Schonberg <schonber@gnat.com>
43396 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43397 constant, do not indicate possible modification, so that gigi can
43398 treat it as a bona fide constant.
43400 2001-10-10 Robert Dewar <dewar@gnat.com>
43402 * sem_prag.adb: Add processing for pragma External.
43404 * snames.ads: Add entry for pragma External.
43406 * par-prag.adb: Add pragma External.
43408 * snames.adb: Updated to match snames.ads.
43410 2001-10-10 Ed Schonberg <schonber@gnat.com>
43412 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43413 a dynamic task if the allocator appears in an indexed assignment
43414 or selected component assignment.
43416 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43417 For a dynamic task in an assignment statement, use target of
43418 assignment to generate meaningful name.
43420 2001-10-10 Ed Schonberg <schonber@gnat.com>
43422 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43425 * einfo.ads: Body_Entity is also defined for generic package.
43426 Documentation change only
43428 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43429 others_choice for a discriminated component initialization,
43430 convert discriminant references into the corresponding discriminals.
43432 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43433 only if original type is private and expression has to be wrapped
43437 (Apply_Constraint_Check): Do not perform length check
43438 if expression is an aggregate with only an others_choice.
43439 (Length_N_Cond): two references to the same in_parameter
43440 (typically the discriminal in an init_proc) denote the same value.
43441 Two useful optimization uncovered by bugfixes above.
43443 2001-10-10 Robert Dewar <dewar@gnat.com>
43445 * xeinfo.adb: Change int to char in translation of enumeration types.
43446 This fixes a problem in the C representation of component alignment.
43447 Add 2001 to copyright notice
43449 2001-10-10 Richard Kenner <kenner@gnat.com>
43451 * decl.c: (validate_size): Do check size of object of integral type
43452 if it is a packed array type.
43454 2001-10-10 Richard Kenner <kenner@gnat.com>
43456 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43457 VAR_DECL for constant if not Is_Public but -O0.
43459 2001-10-10 Richard Kenner <kenner@gnat.com>
43461 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43463 2001-10-10 Geert Bosch <bosch@gnat.com>
43465 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
43466 use '/' as switch character, allowing for absolute file names.
43468 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
43470 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43473 2001-10-08 Geert Bosch <bosch@gnat.com>
43475 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43476 Automatically build utilities when files need to be regenerated.
43478 2001-10-08 Geert Bosch <bosch@gnat.com>
43480 * xsnames.adb: New utility for updating snames.ads and snames.adb
43482 2001-10-08 Zack Weinberg <zack@codesourcery.com>
43484 * Make-lang.in (ADAFLAGS): Add -W -Wall.
43485 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43486 (gnat1): Also depend on attribs.o.
43487 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43488 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43489 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43490 (ADAFLAGS): Add -W -Wall.
43491 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43494 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43495 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43496 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43497 Use $(ADAC), not $(CC), as compilation command.
43499 (gnattools): Depend directly on tools to build, don't use
43501 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43503 * einfo.h, sinfo.h: New files (autogenerated).
43505 2001-10-08 Richard Henderson <rth@redhat.com>
43507 * comperr.adb (Abort_In_Progress): New.
43508 (Compiler_Abort): Use it to prevent recursion.
43510 2001-10-08 Robert Dewar <dewar@gnat.com>
43512 * atree.adb: Set Error_Posted in Error node, helps error recovery.
43514 * par-endh.adb (Output_End_Expected): We should also not test
43515 Error_Posted on the Error node, since now it is always set.
43517 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43518 to help error recovery. Part of general work on 9407-004.
43520 * par.adb: Add ??? for misuse of error
43523 (Resolve): Defend against Error, fixes 9407-003.
43524 (Resolve_Discrete_Subtype_Indication): Defend against Error.
43526 * sinfo.ads (N_Error): Now has Etype field (which will be set
43527 to Any_Type to help error recovery).
43529 2001-10-08 Richard Kenner <kenner@gnat.com>
43531 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43532 Consistently set MEM attributes from expression; fixes
43533 bootstrap failure on x86.
43535 2001-10-08 Geert Bosch <bosch@gnat.com>
43537 * 5oosinte.adb: Add 2001 to copyright notice.
43539 2001-10-08 Geert Bosch <bosch@gnat.com>
43541 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43543 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43545 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
43547 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43549 2001-10-05 Geert Bosch <bosch@gnat.com>
43551 * adaint.h: Small formatting fix.
43553 2001-10-04 Geert Bosch <bosch@gnat.com>
43555 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43556 Arg is int, not FILE *, in dummy version of functions.
43558 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43559 Arg is int, not FILE *.
43561 2001-10-04 Geert Bosch <bosch@gnat.com>
43563 * 3lsoccon.ads: Added file, missed with initial check ins.
43565 * 4lintnam.ads: Fix header format.
43566 Change Linux to GNU/Linux.
43568 * 5iosinte.adb: Change Linux to GNU/Linux.
43570 * 5iosinte.ads: Change Linux to GNU/Linux.
43572 * 5itaprop.adb: Change Linux to GNU/Linux.
43574 * 5itaspri.ads: Change Linux to GNU/Linux.
43575 Update copyright notice.
43577 * 5lintman.adb: Change Linux to GNU/Linux.
43579 * 5lml-tgt.adb: Change Linux to GNU/Linux.
43581 * 5losinte.ads: Change Linux to GNU/Linux.
43583 * 5lsystem.ads: Change Linux to GNU/Linux.
43585 * 5qosinte.adb: Change Linux to GNU/Linux.
43587 * 5qosinte.ads: Change Linux to GNU/Linux.
43589 * 5qparame.ads: Change Linux to GNU/Linux.
43591 * 5qtaprop.adb: Change Linux to GNU/Linux.
43593 * 5qtaspri.ads: Change Linux to GNU/Linux.
43594 Add 2001 to copyright notice.
43596 * 5vintman.ads: Change Linux to GNU/Linux.
43597 Fix header format. Add 2001 to copyright notice.
43599 * g-soccon.ads: Change Linux to GNU/Linux.
43601 * g-trasym.ads: Change Linux to GNU/Linux.
43602 Add 2001 to copyright notice.
43604 * memtrack.adb: Change Linux to GNU/Linux.
43606 * s-intman.ads: Change Linux to GNU/Linux.
43607 Add 2001 to copyright notice. Fix header format.
43609 * s-stache.adb: Change Linux to GNU/Linux.
43611 * adaint.c: Change Linux to GNU/Linux.
43613 * cio.c: Change Linux to GNU/Linux.
43615 * cstreams.c: Change Linux to GNU/Linux.
43617 * init.c: Change Linux to GNU/Linux.
43619 * gmem.c: Change Linux to GNU/Linux.
43621 * tracebak.c: Change Linux to GNU/Linux.
43624 2001-10-02 Geert Bosch <bosch@gnat.com>
43626 * misc.c (insert_default_attributes): Add dummy version.